Re: [PATCH v1] spmi: Drop struct spmi_device_id
From: kernel test robot
Date: Wed Nov 25 2026 - 19:55:30 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: arm-defconfig (https://download.01.org/0day-ci/archive/20261126/20261126085245.HG2kUp4p-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 2012344e5da8e03ea4b8283ecd6fad6e13f09d64)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/20261126085245.HG2kUp4p-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/20261126085245.HG2kUp4p-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> drivers/spmi/spmi.c:68:11: error: use of undeclared identifier 'SPMI_NAME_SIZE'
68 | SPMI_NAME_SIZE) == 0;
| ^~~~~~~~~~~~~~
1 error generated.
vim +/SPMI_NAME_SIZE +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