Re: [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>
From: kernel test robot
Date: Tue Dec 01 2026 - 18:51:26 EST
Hi Uwe,
kernel test robot noticed the following build errors:
[auto build test ERROR on 253f86660c1f882fbf554db5eaa34bc5d66dc7e8]
url: https://github.com/intel-lab-lkp/linux/commits/Uwe-Kleine-K-nig/spmi-Drop-linux-mod_devicetable-h-from-linux-spmi-h/20261201-130410
base: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
patch link: https://lore.kernel.org/r/20261201120410.687584-2-u.kleine-koenig%40baylibre.com
patch subject: [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>
config: arm64-randconfig-1003-20261202 (https://download.01.org/0day-ci/archive/20261202/20261202074637.oWbgMqCi-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261202/20261202074637.oWbgMqCi-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/20261202074637.oWbgMqCi-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
drivers/spmi/spmi.c: In function 'spmi_device_match':
>> drivers/spmi/spmi.c:68:11: error: 'SPMI_NAME_SIZE' undeclared (first use in this function); did you mean 'SI_MAX_SIZE'?
SPMI_NAME_SIZE) == 0;
^~~~~~~~~~~~~~
SI_MAX_SIZE
drivers/spmi/spmi.c:68:11: 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