...to avoid sparse warnings: | warning: symbol '...' was not declared. Should it be static? Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> --- drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.c | 1 + drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_debugfs.c | 2 ++ drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c | 1 + drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_int.c | 1 + drivers/net/can/spi/mcp25xxfd/mcp25xxfd_clock.c | 1 + drivers/net/can/spi/mcp25xxfd/mcp25xxfd_gpio.c | 1 + 6 files changed, 7 insertions(+) diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.c index 8b81811abd9a..56f5dbdef43f 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can.c @@ -49,6 +49,7 @@ #include <linux/spi/spi.h> #include "mcp25xxfd_base.h" +#include "mcp25xxfd_can.h" #include "mcp25xxfd_can_debugfs.h" #include "mcp25xxfd_can_fifo.h" #include "mcp25xxfd_can_int.h" diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_debugfs.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_debugfs.c index d2caf82a6b3e..312656867e82 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_debugfs.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_debugfs.c @@ -9,6 +9,8 @@ #include <linux/dcache.h> #include <linux/debugfs.h> + +#include "mcp25xxfd_can_debugfs.h" #include "mcp25xxfd_can_priv.h" #include "mcp25xxfd_can_tx.h" diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c index 7204864ee07e..63e687a01b24 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c @@ -12,6 +12,7 @@ #include <linux/spi/spi.h> #include "mcp25xxfd_can.h" +#include "mcp25xxfd_can_fifo.h" #include "mcp25xxfd_can_priv.h" #include "mcp25xxfd_can_tx.h" #include "mcp25xxfd_cmd.h" diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_int.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_int.c index 446716d38c10..c8baf42e3c11 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_int.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_int.c @@ -20,6 +20,7 @@ #include "mcp25xxfd_can.h" #include "mcp25xxfd_can_debugfs.h" +#include "mcp25xxfd_can_int.h" #include "mcp25xxfd_can_priv.h" #include "mcp25xxfd_can_rx.h" #include "mcp25xxfd_can_tx.h" diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_clock.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_clock.c index aee482e7c02a..a2935b784edd 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_clock.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_clock.c @@ -76,6 +76,7 @@ #include <linux/spi/spi.h> #include "mcp25xxfd_can.h" +#include "mcp25xxfd_clock.h" #include "mcp25xxfd_cmd.h" #include "mcp25xxfd_priv.h" diff --git a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_gpio.c b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_gpio.c index 69eb9c6ef176..dfa914666f6d 100644 --- a/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_gpio.c +++ b/drivers/net/can/spi/mcp25xxfd/mcp25xxfd_gpio.c @@ -15,6 +15,7 @@ #include "mcp25xxfd_clock.h" #include "mcp25xxfd_cmd.h" +#include "mcp25xxfd_gpio.h" #include "mcp25xxfd_priv.h" /* GPIO component */ -- 2.20.1