[RFC PATCH] spi: spi-mem: cqspi_mem_caps can be static

kernel test robot lkp at intel.com
Thu Dec 16 12:14:26 PST 2021


drivers/spi/spi-cadence-quadspi.c:1592:38: warning: symbol 'cqspi_mem_caps' was not declared. Should it be static?

Reported-by: kernel test robot <lkp at intel.com>
Signed-off-by: kernel test robot <lkp at intel.com>
---
 spi-cadence-quadspi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index bc7ae56fe565fb..ca05ab4d0c5923 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -1589,7 +1589,7 @@ static const char *cqspi_get_name(struct spi_mem *mem)
 	return devm_kasprintf(dev, GFP_KERNEL, "%s.%d", dev_name(dev), mem->spi->chip_select);
 }
 
-const struct spi_controller_mem_caps cqspi_mem_caps = {
+static const struct spi_controller_mem_caps cqspi_mem_caps = {
 	.dtr = true,
 };
 



More information about the linux-mtd mailing list