Re: [PATCH v1] spmi: Drop struct spmi_device_id
From: kernel test robot
Date: Wed Nov 25 2026 - 15:45:38 EST
Hi Uwe,
kernel test robot noticed the following build errors:
[auto build test ERROR on 3dd8c790a7b7027abdd568e36db5e82ffaea7c77]
url: https://github.com/intel-lab-lkp/linux/commits/Uwe-Kleine-K-nig/spmi-Drop-struct-spmi_device_id/20261125-122152
base: 3dd8c790a7b7027abdd568e36db5e82ffaea7c77
patch link: https://lore.kernel.org/r/20261125112158.938835-2-u.kleine-koenig%40baylibre.com
patch subject: [PATCH v1] spmi: Drop struct spmi_device_id
config: nios2-randconfig-1000-20261126 (https://download.01.org/0day-ci/archive/20261126/20261126044125.DtFzBYQ9-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/20261126044125.DtFzBYQ9-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261126044125.DtFzBYQ9-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
drivers/spmi/spmi.c: In function 'spmi_device_match':
>> drivers/spmi/spmi.c:68:32: error: 'SPMI_NAME_SIZE' undeclared (first use in this function); did you mean 'SPI_NAME_SIZE'?
68 | SPMI_NAME_SIZE) == 0;
| ^~~~~~~~~~~~~~
| SPI_NAME_SIZE
drivers/spmi/spmi.c:68:32: note: each undeclared identifier is reported only once for each function it appears in
vim +68 drivers/spmi/spmi.c
5a86bf343976b9c Kenneth Heitke 2014-02-12 60
d69d804845985c2 Greg Kroah-Hartman 2024-07-01 61 static int spmi_device_match(struct device *dev, const struct device_driver *drv)
5a86bf343976b9c Kenneth Heitke 2014-02-12 62 {
5a86bf343976b9c Kenneth Heitke 2014-02-12 63 if (of_driver_match_device(dev, drv))
5a86bf343976b9c Kenneth Heitke 2014-02-12 64 return 1;
5a86bf343976b9c Kenneth Heitke 2014-02-12 65
5a86bf343976b9c Kenneth Heitke 2014-02-12 66 if (drv->name)
5a86bf343976b9c Kenneth Heitke 2014-02-12 67 return strncmp(dev_name(dev), drv->name,
5a86bf343976b9c Kenneth Heitke 2014-02-12 @68 SPMI_NAME_SIZE) == 0;
5a86bf343976b9c Kenneth Heitke 2014-02-12 69
5a86bf343976b9c Kenneth Heitke 2014-02-12 70 return 0;
5a86bf343976b9c Kenneth Heitke 2014-02-12 71 }
5a86bf343976b9c Kenneth Heitke 2014-02-12 72
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki