WSL2-Linux-Kernel/drivers/memstick/host
Arnd Bergmann 8c561a59c6 memstick r592: make memstick_debug_get_tpc_name() static
[ Upstream commit 434587df9f ]

There are no other files referencing this function, apparently
it was left global to avoid an 'unused function' warning when
the only caller is left out. With a 'W=1' build, it causes
a 'missing prototype' warning though:

drivers/memstick/host/r592.c:47:13: error: no previous prototype for 'memstick_debug_get_tpc_name' [-Werror=missing-prototypes]

Annotate the function as 'static __maybe_unused' to avoid both
problems.

Fixes: 9263412501 ("memstick: add driver for Ricoh R5C592 card reader")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230516202714.560929-1-arnd@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-23 13:46:52 +02:00
..
Kconfig
Makefile
jmb38x_ms.c memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-18 19:16:32 +01:00
r592.c memstick r592: make memstick_debug_get_tpc_name() static 2023-07-23 13:46:52 +02:00
r592.h
rtsx_pci_ms.c
rtsx_usb_ms.c
tifm_ms.c