[PATCH 2/3] mtd: spi-nor: Add a driver for the VIA/WonderMedia serial flash controller
kernel test robot
lkp at intel.com
Sun May 11 04:13:00 PDT 2025
Hi Alexey,
kernel test robot noticed the following build errors:
[auto build test ERROR on ed61cb3d78d585209ec775933078e268544fe9a4]
url: https://github.com/intel-lab-lkp/linux/commits/Alexey-Charkov/dt-bindings-spi-Add-VIA-WonderMedia-serial-flash-controller/20250511-034459
base: ed61cb3d78d585209ec775933078e268544fe9a4
patch link: https://lore.kernel.org/r/20250510-wmt-sflash-v1-2-02a1ac6adf12%40gmail.com
patch subject: [PATCH 2/3] mtd: spi-nor: Add a driver for the VIA/WonderMedia serial flash controller
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250511/202505111905.tlinDurh-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250511/202505111905.tlinDurh-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505111905.tlinDurh-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/mtd/spi-nor/controllers/wmt-sflash.c: In function 'wmt_sflash_pcmd_mode':
>> drivers/mtd/spi-nor/controllers/wmt-sflash.c:132:16: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
132 | reg |= FIELD_PREP(SF_PROG_CMD_MOD, enable);
| ^~~~~~~~~~
vim +/FIELD_PREP +132 drivers/mtd/spi-nor/controllers/wmt-sflash.c
126
127 static void wmt_sflash_pcmd_mode(struct wmt_sflash_host *host, bool enable)
128 {
129 u32 reg = readl(host->regbase + SF_SPI_INTF_CFG);
130
131 reg &= ~SF_PROG_CMD_MOD;
> 132 reg |= FIELD_PREP(SF_PROG_CMD_MOD, enable);
133 writel(reg, host->regbase + SF_SPI_INTF_CFG);
134 }
135
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list