linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ambarus:spi-nor/next-id-collisions-v2 20/27] drivers/mtd/spi-nor/core.c:3126:6: warning: no previous prototype for 'spi_nor_set_mtd_info'
@ 2021-07-24 20:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-24 20:11 UTC (permalink / raw)
  To: Tudor Ambarus; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2482 bytes --]

tree:   https://github.com/ambarus/linux-0day spi-nor/next-id-collisions-v2
head:   b4bf25c4aeb0e9be35b688a2eaa4e9b902dff4f4
commit: 1db04a902d5710228c3172ac7113a78857a3695f [20/27] mtd: spi-nor: Introduce spi_nor_set_mtd_info()
config: sparc-randconfig-r024-20210724 (attached as .config)
compiler: sparc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/ambarus/linux-0day/commit/1db04a902d5710228c3172ac7113a78857a3695f
        git remote add ambarus https://github.com/ambarus/linux-0day
        git fetch --no-tags ambarus spi-nor/next-id-collisions-v2
        git checkout 1db04a902d5710228c3172ac7113a78857a3695f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/mtd/spi-nor/core.c:3126:6: warning: no previous prototype for 'spi_nor_set_mtd_info' [-Wmissing-prototypes]
    3126 | void spi_nor_set_mtd_info(struct spi_nor *nor)
         |      ^~~~~~~~~~~~~~~~~~~~


vim +/spi_nor_set_mtd_info +3126 drivers/mtd/spi-nor/core.c

  3125	
> 3126	void spi_nor_set_mtd_info(struct spi_nor *nor)
  3127	{
  3128		struct mtd_info *mtd = &nor->mtd;
  3129		struct device *dev = nor->dev;
  3130	
  3131		spi_nor_register_locking_ops(nor);
  3132	
  3133		/* Configure OTP parameters and ops */
  3134		spi_nor_otp_init(nor);
  3135	
  3136		mtd->dev.parent = dev;
  3137		if (!mtd->name)
  3138			mtd->name = dev_name(dev);
  3139		mtd->priv = nor;
  3140		mtd->type = MTD_NORFLASH;
  3141		mtd->flags = MTD_CAP_NORFLASH;
  3142		if (nor->info->flags & SPI_NOR_NO_ERASE)
  3143			mtd->flags |= MTD_NO_ERASE;
  3144		mtd->writesize = nor->params->writesize;
  3145		mtd->writebufsize = nor->page_size;
  3146		mtd->size = nor->params->size;
  3147		mtd->_erase = spi_nor_erase;
  3148		mtd->_read = spi_nor_read;
  3149		mtd->_write = spi_nor_write;
  3150		mtd->_suspend = spi_nor_suspend;
  3151		mtd->_resume = spi_nor_resume;
  3152		mtd->_get_device = spi_nor_get_device;
  3153		mtd->_put_device = spi_nor_put_device;
  3154	}
  3155	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32498 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-24 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-24 20:11 [ambarus:spi-nor/next-id-collisions-v2 20/27] drivers/mtd/spi-nor/core.c:3126:6: warning: no previous prototype for 'spi_nor_set_mtd_info' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).