[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210724210644.GA47550@0dc1ce3d6077>
Date: Sun, 25 Jul 2021 05:06:44 +0800
From: kernel test robot <lkp@...el.com>
To: Tudor Ambarus <tudor.ambarus@...rochip.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [RFC PATCH ambarus] mtd: spi-nor: spi_nor_set_mtd_info() can be
static
drivers/mtd/spi-nor/core.c:3126:6: warning: symbol 'spi_nor_set_mtd_info' was not declared. Should it be static?
Fixes: 1db04a902d57 ("mtd: spi-nor: Introduce spi_nor_set_mtd_info()")
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: kernel test robot <lkp@...el.com>
---
core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
index 3a71d1358a38f..f43a6b3860545 100644
--- a/drivers/mtd/spi-nor/core.c
+++ b/drivers/mtd/spi-nor/core.c
@@ -3123,7 +3123,7 @@ static const struct flash_info *spi_nor_get_flash_info(struct spi_nor *nor,
return info;
}
-void spi_nor_set_mtd_info(struct spi_nor *nor)
+static void spi_nor_set_mtd_info(struct spi_nor *nor)
{
struct mtd_info *mtd = &nor->mtd;
struct device *dev = nor->dev;
Powered by blists - more mailing lists