diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-09-13 17:08:05 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-06 11:03:02 +0300 |
commit | 45dacf07fb1c308df3e95154f427f6ae49b56705 (patch) | |
tree | e66c98ce699bb3270c2f020323562ee84f8a83bf /arch | |
parent | 6156086e554cd9837b81e77a06451b811da2216e (diff) | |
download | linux-45dacf07fb1c308df3e95154f427f6ae49b56705.tar.xz |
m68k: emu: Mark version[] __maybe_unused
When building with W=1:
arch/m68k/emu/nfeth.c:42:19: warning: ‘version’ defined but not used [-Wunused-const-variable=]
42 | static const char version[] =
| ^~~~~~~
Fix this while obeying the wishes of the original copyright holders by
marking version[] with __maybe_unused.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/051731639b4c8e296ec4017595051885cc551c23.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/emu/nfeth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/emu/nfeth.c b/arch/m68k/emu/nfeth.c index 1a5d1e8eb4c8..26e68813f351 100644 --- a/arch/m68k/emu/nfeth.c +++ b/arch/m68k/emu/nfeth.c @@ -39,7 +39,7 @@ enum { #define MAX_UNIT 8 /* These identify the driver base version and may not be removed. */ -static const char version[] = +static const char version[] __maybe_unused = KERN_INFO KBUILD_MODNAME ".c:v" DRV_VERSION " " DRV_RELDATE " S.Opichal, M.Jurik, P.Stehlik\n" KERN_INFO " http://aranym.org/\n"; |