[xlnx:xlnx_rebase_v5.4 1296/1697] drivers/spi/spi-mem.c:18:6: warning: no previous prototype for 'update_stripe'

kernel test robot lkp at intel.com
Tue Jan 12 13:04:09 EST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   629150468791671b5fde21363e643e87c5815b17
commit: 0b197959bbbdb68e1da974bd013339f08704b178 [1296/1697] staging: xlnxsync: Fix the uapi header license
config: m68k-randconfig-p001-20210112 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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/Xilinx/linux-xlnx/commit/0b197959bbbdb68e1da974bd013339f08704b178
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 0b197959bbbdb68e1da974bd013339f08704b178
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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

All warnings (new ones prefixed by >>):

>> drivers/spi/spi-mem.c:18:6: warning: no previous prototype for 'update_stripe' [-Wmissing-prototypes]
      18 | bool update_stripe(const struct spi_mem_op *op)
         |      ^~~~~~~~~~~~~


vim +/update_stripe +18 drivers/spi/spi-mem.c

380583227c0c7f52 Boris Brezillon      2018-09-20  17  
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02 @18  bool update_stripe(const struct spi_mem_op *op)
3780469dd372e934 Amit Kumar Mahapatra 2020-01-19  19  {
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  20  	if (op->cmd.opcode ==  SPINOR_OP_BE_4K ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  21  	    op->cmd.opcode ==  SPINOR_OP_BE_32K ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  22  	    op->cmd.opcode ==  SPINOR_OP_CHIP_ERASE ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  23  	    op->cmd.opcode ==  SPINOR_OP_SE ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  24  	    op->cmd.opcode ==  SPINOR_OP_BE_32K_4B ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  25  	    op->cmd.opcode ==  SPINOR_OP_SE_4B ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  26  	    op->cmd.opcode == SPINOR_OP_BE_4K_4B ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  27  	    op->cmd.opcode ==  SPINOR_OP_WRSR ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  28  	    op->cmd.opcode ==  SPINOR_OP_WREAR ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  29  	    op->cmd.opcode ==  SPINOR_OP_BRWR ||
3d2ef6611abe859f Amit Kumar Mahapatra 2020-04-02  30  	    (op->cmd.opcode ==  SPINOR_OP_WRSR2 && !op->addr.nbytes))
3780469dd372e934 Amit Kumar Mahapatra 2020-01-19  31  		return false;
3780469dd372e934 Amit Kumar Mahapatra 2020-01-19  32  
3780469dd372e934 Amit Kumar Mahapatra 2020-01-19  33  	return true;
3780469dd372e934 Amit Kumar Mahapatra 2020-01-19  34  }
3780469dd372e934 Amit Kumar Mahapatra 2020-01-19  35  

:::::: The code at line 18 was first introduced by commit
:::::: 3d2ef6611abe859faf9080d1b6d2811ec9a581f2 spi: spi-mem: Modify update_stripe api to handle different commands with same opcode value

:::::: TO: Amit Kumar Mahapatra <amit.kumar-mahapatra at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 20804 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210113/dad58297/attachment-0001.gz>


More information about the linux-arm-kernel mailing list