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

kernel test robot lkp at intel.com
Tue Jul 20 14:21:09 PDT 2021


Hi Amit,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   2f686fa6c0bf7fa168dc45dd7ce1359217212911
commit: 3780469dd372e934445de2fbb5e8cf6e712b9b99 [842/1765] spi: Add Zynq QSPI controller driver
config: x86_64-randconfig-r013-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/Xilinx/linux-xlnx/commit/3780469dd372e934445de2fbb5e8cf6e712b9b99
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 3780469dd372e934445de2fbb5e8cf6e712b9b99
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 function 'update_stripe' [-Wmissing-prototypes]
   bool update_stripe(const u8 opcode)
        ^
   drivers/spi/spi-mem.c:18:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool update_stripe(const u8 opcode)
   ^
   static 
   1 warning generated.


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

    17	
  > 18	bool update_stripe(const u8 opcode)
    19	{
    20		if (opcode ==  SPINOR_OP_BE_4K ||
    21		    opcode ==  SPINOR_OP_BE_32K ||
    22		    opcode ==  SPINOR_OP_CHIP_ERASE ||
    23		    opcode ==  SPINOR_OP_SE ||
    24		    opcode ==  SPINOR_OP_BE_32K_4B ||
    25		    opcode ==  SPINOR_OP_SE_4B ||
    26		    opcode == SPINOR_OP_BE_4K_4B ||
    27		    opcode ==  SPINOR_OP_WRSR ||
    28		    opcode ==  SPINOR_OP_WREAR ||
    29		    opcode ==  SPINOR_OP_BRWR ||
    30		    opcode ==  SPINOR_OP_WRSR2)
    31			return false;
    32	
    33		return true;
    34	}
    35	

---
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: 34218 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210721/8593e770/attachment-0001.gz>


More information about the linux-arm-kernel mailing list