]> Git Repo - linux.git/commitdiff
HSI: fix ssi_waketest() declaration
authorArnd Bergmann <[email protected]>
Tue, 16 May 2023 20:22:07 +0000 (22:22 +0200)
committerSebastian Reichel <[email protected]>
Sat, 20 May 2023 17:20:30 +0000 (19:20 +0200)
The ssi_waketest() function definition causes a 'make W=1' warning
because the declaration is hidden away in ssi_protocol.c:

drivers/hsi/controllers/omap_ssi_core.c:147:6: error: no previous prototype for 'ssi_waketest'

Move it into a header file instead.

Fixes: dc7bf5d71868 ("HSI: Introduce driver for SSI Protocol")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
drivers/hsi/clients/ssi_protocol.c
drivers/hsi/controllers/omap_ssi_core.c
include/linux/hsi/ssi_protocol.h

index 38e572faff4357808d80df9cf25571651337deb6..da6a7abd584f7fb51c11c7fc75f03a832d363935 100644 (file)
@@ -32,8 +32,6 @@
 #include <linux/hsi/hsi.h>
 #include <linux/hsi/ssi_protocol.h>
 
-void ssi_waketest(struct hsi_client *cl, unsigned int enable);
-
 #define SSIP_TXQUEUE_LEN       100
 #define SSIP_MAX_MTU           65535
 #define SSIP_DEFAULT_MTU       4000
index 26f2c3c0129783e045e7d26243a9a1493e81d976..84ba8b875199617111d30256972ba1e5b06c2829 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/dmaengine.h>
 #include <linux/delay.h>
+#include <linux/hsi/ssi_protocol.h>
 #include <linux/seq_file.h>
 #include <linux/scatterlist.h>
 #include <linux/interrupt.h>
index 2d6f3cfa7deaa927bf4d3f3a3c92a72c2813ffe6..972434daa0003fd9d5f229f6ac724cda11d3d886 100644 (file)
@@ -24,6 +24,7 @@ int ssip_slave_stop_tx(struct hsi_client *master);
 void ssip_reset_event(struct hsi_client *master);
 
 int ssip_slave_running(struct hsi_client *master);
+void ssi_waketest(struct hsi_client *cl, unsigned int enable);
 
 #endif /* __LINUX_SSIP_SLAVE_H__ */
 
This page took 0.069673 seconds and 4 git commands to generate.