]> www.infradead.org Git - users/dwmw2/linux.git/commit
staging: gpib: avoid unused const variables
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Oct 2024 11:15:16 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2024 07:57:03 +0000 (09:57 +0200)
commitb8989f45d1ec0b5e1aac5da2a915f8002015eb39
tree0bcddf1a4d39537922f5301da82c05aec71bea4f
parentad59cf382cd5c0548b3aeb80cb1e34ebac40ade6
staging: gpib: avoid unused const variables

Variables that are 'static const' but not used anywhere cause a warning
with "gcc -Wunused-const-variable", which we may want to enable by default
in the future.

The gpib code already has a mix of 'enum' and 'static const' variables
for named constants, so convert the ones that are causing problems to
enums as well, or move them closer to the only users where possible.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241016111521.1143191-3-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/common/gpib_os.c
drivers/staging/gpib/eastwood/fluke_gpib.h
drivers/staging/gpib/include/nec7210_registers.h
drivers/staging/gpib/include/tms9914.h
drivers/staging/gpib/include/tnt4882_registers.h
drivers/staging/gpib/ines/ines.h
drivers/staging/gpib/ines/ines_gpib.c
drivers/staging/gpib/tms9914/tms9914.c
drivers/staging/gpib/tnt4882/tnt4882_gpib.c
drivers/staging/gpib/uapi/gpib_user.h