linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [xilinx-xlnx:xlnx_rebase_v6.1 914/1065] drivers/spi/spi-zynq-qspi.c:167:6: warning: no previous prototype for 'zynq_qspi_update_stripe'
@ 2023-04-13 19:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-13 19:58 UTC (permalink / raw)
  To: Amit Kumar Mahapatra; +Cc: oe-kbuild-all, linux-arm-kernel, Michal Simek

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1
head:   bbf25ceb15a43c9047e14ab46a1d25c8ae6b67b4
commit: 2ac69c74ecee73f42f83efc33828cce52d831cfa [914/1065] spi: spi-zynq-qspi: Add multi-cs support in Zynq QSPI driver
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230414/202304140342.HGAB2WHR-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.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/2ac69c74ecee73f42f83efc33828cce52d831cfa
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v6.1
        git checkout 2ac69c74ecee73f42f83efc33828cce52d831cfa
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/spi/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304140342.HGAB2WHR-lkp@intel.com/

All warnings (new ones prefixed by >>):

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


vim +/zynq_qspi_update_stripe +167 drivers/spi/spi-zynq-qspi.c

   159	
   160	/**
   161	 * zynq_qspi_update_stripe - For Zynq QSPI controller data stripe capabilities
   162	 * @op: Pointer to mem ops
   163	 * Return:      Status of the data stripe
   164	 *
   165	 * Returns true if data stripe need to be enabled, else returns false
   166	 */
 > 167	bool zynq_qspi_update_stripe(const struct spi_mem_op *op)
   168	{
   169		if (op->cmd.opcode ==  SPINOR_OP_BE_4K ||
   170		    op->cmd.opcode ==  SPINOR_OP_BE_32K ||
   171		    op->cmd.opcode ==  SPINOR_OP_CHIP_ERASE ||
   172		    op->cmd.opcode ==  SPINOR_OP_SE ||
   173		    op->cmd.opcode ==  SPINOR_OP_BE_32K_4B ||
   174		    op->cmd.opcode ==  SPINOR_OP_SE_4B ||
   175		    op->cmd.opcode == SPINOR_OP_BE_4K_4B ||
   176		    op->cmd.opcode ==  SPINOR_OP_WRSR ||
   177		    op->cmd.opcode ==  SPINOR_OP_WREAR ||
   178		    op->cmd.opcode ==  SPINOR_OP_BRWR ||
   179		    (op->cmd.opcode ==  SPINOR_OP_WRSR2 && !op->addr.nbytes))
   180			return false;
   181	
   182		return true;
   183	}
   184	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

only message in thread, other threads:[~2023-04-13 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-13 19:58 [xilinx-xlnx:xlnx_rebase_v6.1 914/1065] drivers/spi/spi-zynq-qspi.c:167:6: warning: no previous prototype for 'zynq_qspi_update_stripe' 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).