All of lore.kernel.org
 help / color / mirror / Atom feed
* [soc:board-remove-7.3 226/294] drivers/mtd/spi-nor/spansion.c:100:9: error: call to undeclared function 'spi_nor_controller_ops_write_reg'; ISO C99 and later do not support implicit function declarations
@ 2026-09-10 15:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-10 15:42 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-arm-kernel, arm

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git board-remove-7.3
head:   3ac93c1e700558259ea604f7d4f37e26820fba15
commit: 62e3b560c8fdcab6be5dce819f3b76df95cd95dc [226/294] mtd: spi-nor: remove controller_ops support
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20260910/202609101458.dCAUeSAA-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260910/202609101458.dCAUeSAA-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609101458.dCAUeSAA-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/mtd/spi-nor/spansion.c:100:9: error: call to undeclared function 'spi_nor_controller_ops_write_reg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     100 |                 ret = spi_nor_controller_ops_write_reg(nor, SPINOR_OP_CLSR,
         |                       ^
   1 error generated.
--
>> drivers/mtd/spi-nor/winbond.c:122:9: error: call to undeclared function 'spi_nor_controller_ops_write_reg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     122 |                 ret = spi_nor_controller_ops_write_reg(nor,
         |                       ^
   drivers/mtd/spi-nor/winbond.c:424:9: error: call to undeclared function 'spi_nor_controller_ops_write_reg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     424 |                 ret = spi_nor_controller_ops_write_reg(nor,
         |                       ^
   2 errors generated.


vim +/spi_nor_controller_ops_write_reg +100 drivers/mtd/spi-nor/spansion.c

d534fd9787d592 Takahiro Kuwano 2023-07-26   83  
91f3c430f622be Takahiro Kuwano 2023-04-07   84  /**
91f3c430f622be Takahiro Kuwano 2023-04-07   85   * spansion_nor_clear_sr() - Clear the Status Register.
91f3c430f622be Takahiro Kuwano 2023-04-07   86   * @nor:	pointer to 'struct spi_nor'.
91f3c430f622be Takahiro Kuwano 2023-04-07   87   */
91f3c430f622be Takahiro Kuwano 2023-04-07   88  static void spansion_nor_clear_sr(struct spi_nor *nor)
91f3c430f622be Takahiro Kuwano 2023-04-07   89  {
d534fd9787d592 Takahiro Kuwano 2023-07-26   90  	const struct spansion_nor_params *priv_params = nor->params->priv;
91f3c430f622be Takahiro Kuwano 2023-04-07   91  	int ret;
91f3c430f622be Takahiro Kuwano 2023-04-07   92  
91f3c430f622be Takahiro Kuwano 2023-04-07   93  	if (nor->spimem) {
d534fd9787d592 Takahiro Kuwano 2023-07-26   94  		struct spi_mem_op op = SPANSION_OP(priv_params->clsr);
91f3c430f622be Takahiro Kuwano 2023-04-07   95  
91f3c430f622be Takahiro Kuwano 2023-04-07   96  		spi_nor_spimem_setup_op(nor, &op, nor->reg_proto);
91f3c430f622be Takahiro Kuwano 2023-04-07   97  
91f3c430f622be Takahiro Kuwano 2023-04-07   98  		ret = spi_mem_exec_op(nor->spimem, &op);
91f3c430f622be Takahiro Kuwano 2023-04-07   99  	} else {
91f3c430f622be Takahiro Kuwano 2023-04-07 @100  		ret = spi_nor_controller_ops_write_reg(nor, SPINOR_OP_CLSR,
91f3c430f622be Takahiro Kuwano 2023-04-07  101  						       NULL, 0);
91f3c430f622be Takahiro Kuwano 2023-04-07  102  	}
91f3c430f622be Takahiro Kuwano 2023-04-07  103  
91f3c430f622be Takahiro Kuwano 2023-04-07  104  	if (ret)
91f3c430f622be Takahiro Kuwano 2023-04-07  105  		dev_dbg(nor->dev, "error %d clearing SR\n", ret);
91f3c430f622be Takahiro Kuwano 2023-04-07  106  }
91f3c430f622be Takahiro Kuwano 2023-04-07  107  

:::::: The code at line 100 was first introduced by commit
:::::: 91f3c430f622befb1b11f07df3bf7163f46adda6 mtd: spi-nor: spansion: Add a new ->ready() hook for multi-chip device

:::::: TO: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
:::::: CC: Tudor Ambarus <tudor.ambarus@linaro.org>

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

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

only message in thread, other threads:[~2026-09-10 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 15:42 [soc:board-remove-7.3 226/294] drivers/mtd/spi-nor/spansion.c:100:9: error: call to undeclared function 'spi_nor_controller_ops_write_reg'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.