Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HSI: fix ssi_waketest() declaration

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 <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Arnd Bergmann and committed by
Sebastian Reichel
32a31bd4 ac9a7868

+2 -2
-2
drivers/hsi/clients/ssi_protocol.c
··· 32 32 #include <linux/hsi/hsi.h> 33 33 #include <linux/hsi/ssi_protocol.h> 34 34 35 - void ssi_waketest(struct hsi_client *cl, unsigned int enable); 36 - 37 35 #define SSIP_TXQUEUE_LEN 100 38 36 #define SSIP_MAX_MTU 65535 39 37 #define SSIP_DEFAULT_MTU 4000
+1
drivers/hsi/controllers/omap_ssi_core.c
··· 17 17 #include <linux/dma-mapping.h> 18 18 #include <linux/dmaengine.h> 19 19 #include <linux/delay.h> 20 + #include <linux/hsi/ssi_protocol.h> 20 21 #include <linux/seq_file.h> 21 22 #include <linux/scatterlist.h> 22 23 #include <linux/interrupt.h>
+1
include/linux/hsi/ssi_protocol.h
··· 24 24 void ssip_reset_event(struct hsi_client *master); 25 25 26 26 int ssip_slave_running(struct hsi_client *master); 27 + void ssi_waketest(struct hsi_client *cl, unsigned int enable); 27 28 28 29 #endif /* __LINUX_SSIP_SLAVE_H__ */ 29 30