Skip to contentSkip to conversation

hsi: fix ssi_waketest() declaration

PATCH In review Arnd Bergmann 3 participants 3 messages May 16, 2023 – May 20, 2023 HSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hsi: fix ssi_waketest() declaration

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/hsi/clients/ssi_protocol.c      | 2 --
 drivers/hsi/controllers/omap_ssi_core.c | 1 +
 include/linux/hsi/ssi_protocol.h        | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)
drivers/hsi/clients/ssi_protocol.c +0 -2
index 38e572faff43..da6a7abd584f 100644
@@ -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
drivers/hsi/controllers/omap_ssi_core.c +1 -0
index 26f2c3c01297..84ba8b875199 100644
@@ -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>
include/linux/hsi/ssi_protocol.h +1 -0
index 2d6f3cfa7dea..972434daa000 100644
@@ -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__ */
 
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

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")
Signature · 1 line
Kees Cook
#2 lore raw

Hi,

Quoted 6 lines · Kees Cook
Quoted 5 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The ssi_waketest() function definition causes a 'make W=1' warning because the declaration is hidden away in ssi_protocol.c:

Quoted 8 lines
Quoted 6 lines

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")

Thanks, queued.

-- Sebastian