lkml.org 
[lkml]   [2021]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[ambarus:spi-nor/next-id-collisions-v2 20/27] drivers/mtd/spi-nor/core.c:3126:6: warning: no previous prototype for function 'spi_nor_set_mtd_info'
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: arm64-randconfig-r023-20210724 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 3f2c1e99e44d028d5e9dd685f3c568f2661f2f68)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# 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=clang make.cross ARCH=arm64

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 function 'spi_nor_set_mtd_info' [-Wmissing-prototypes]
void spi_nor_set_mtd_info(struct spi_nor *nor)
^
drivers/mtd/spi-nor/core.c:3126:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void spi_nor_set_mtd_info(struct spi_nor *nor)
^
static
1 warning generated.


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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-24 22:33    [W:0.037 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site