diff options
| author | Nick Desaulniers <[email protected]> | 2023-08-08 17:31:45 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2023-08-26 20:44:37 +0000 |
| commit | 4b038701e3dd02091e1086bdd89e31e16ceb8e04 (patch) | |
| tree | e7bc29918e2235e0f5c68c55dd04cbaa33cbc936 /drivers/net/xen-netback/interface.c | |
| parent | uml: audio: fix -Wmissing-variable-declarations (diff) | |
| download | kernel-4b038701e3dd02091e1086bdd89e31e16ceb8e04.tar.gz kernel-4b038701e3dd02091e1086bdd89e31e16ceb8e04.zip | |
um: port_kern: fix -Wmissing-variable-declarations
I'm looking to enable -Wmissing-variable-declarations behind W=1. 0day
bot spotted the following instance:
arch/um/drivers/port_kern.c:147:14: warning: no previous extern
declaration for non-static variable 'port_work'
[-Wmissing-variable-declarations]
DECLARE_WORK(port_work, port_work_proc);
^
arch/um/drivers/port_kern.c:147:1: note: declare 'static' if the
variable is not intended to be used outside of this translation unit
DECLARE_WORK(port_work, port_work_proc);
^
This symbol is not referenced by more than one translation unit, so give
it static storage.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/llvm/[email protected]/
Signed-off-by: Nick Desaulniers <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
