Re: [PATCH] HID: sony: Fix unused function warning

From
Jiri Kosina <jikos@kernel.org>
Date
2022-12-20 14:38:16
Also in
lkml
Reply to
José Expósito, 2022-11-28
On Mon, 28 Nov 2022, José Expósito wrote:
Compiling this driver without setting "CONFIG_SONY_FF" generates the
following warning:

	drivers/hid/hid-sony.c:2358:20: warning: unused function
	'sony_send_output_report' [-Wunused-function]
	static inline void sony_send_output_report(struct sony_sc *sc)
	                   ^
	1 warning generated.

Add the missing preprocessor check to fix it.

Signed-off-by: José Expósito <redacted>
Thanks for fixing this, now applied.

-- 
Jiri Kosina
SUSE Labs
Thread (2 messages) 2 messages, 2 authors, last reply 2022-12-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help