public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tudor Ambarus <tudor.ambarus@microchip.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [RFC PATCH ambarus] mtd: spi-nor: spi_nor_set_mtd_info() can be static
Date: Sun, 25 Jul 2021 05:06:44 +0800	[thread overview]
Message-ID: <20210724210644.GA47550@0dc1ce3d6077> (raw)
In-Reply-To: <202107250549.TfKWkD6F-lkp@intel.com>

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@intel.com>
Signed-off-by: kernel test robot <lkp@intel.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;

      reply	other threads:[~2021-07-24 21:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-24 21:06 [ambarus:spi-nor/next-id-collisions-v2 20/27] drivers/mtd/spi-nor/core.c:3126:6: sparse: sparse: symbol 'spi_nor_set_mtd_info' was not declared. Should it be static? kernel test robot
2021-07-24 21:06 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210724210644.GA47550@0dc1ce3d6077 \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tudor.ambarus@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox