]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
memstick r592: make memstick_debug_get_tpc_name() static
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 20:27:04 +0000 (22:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:29 +0000 (19:39 +0200)
commit38b5c35088546b92449caa840293a09a3828efe7
tree35cd93fddc34a6b3f459b4960858bc021eda1c0e
parent34258564905d1a2d9d0f4081c05042f65bb91865
memstick r592: make memstick_debug_get_tpc_name() static

[ Upstream commit 434587df9f7fd68575f99a889cc5f2efc2eaee5e ]

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: 926341250102 ("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>
drivers/memstick/host/r592.c