* [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>
@ 2026-12-01 12:04 Uwe Kleine-König
2026-12-01 23:49 ` kernel test robot
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2026-12-01 12:04 UTC (permalink / raw)
To: Stephen Boyd, Abel Vesa
Cc: linux-kernel, Jonathan Cameron, Lee Jones, Arnd Bergmann,
Greg Kroah-Hartman, Srinivas Kandagatla, Vinod Koul,
Linus Walleij, Sebastian Reichel, Liam Girdwood, Mark Brown
<linux/mod_devicetable.h> provides many *_device_id structs, the
consumers of <linux/spmi.h> and the header itself however only need
of_device_id and platform_device_id (
$ git grep -Eo "\<(acpi_device_id|amba_id|ap_device_id|apr_device_id|auxiliary_device_id|bcma_device_id|ccw_device_id|cdx_device_id|coreboot_device_id|css_device_id|dfl_device_id|dmi_(device|system)_id|eisa_device_id|fsl_mc_device_id|hda_device_id|hid_device_id|hv_vmbus_device_id|i2c_device_id|i3c_device_id|ieee1394_device_id|input_device_id|ipack_device_id|isapnp_device_id|ishtp_device_id|mcb_device_id|mdio_device_id|mei_cl_device_id|mhi_device_id|mips_cdmm_device_id|of_device_id|parisc_device_id|pci_device_id|pci_epf_device_id|pcmcia_device_id|platform_device_id|pnp_(card_)?device_id|rio_device_id|rpmsg_device_id|sdio_device_id|sdw_device_id|serio_device_id|slim_device_id|spi_device_id|spmi_device_id|ssam_device_id|ssb_device_id|tb_service_id|tee_client_device_id|typec_device_id|ulpi_device_id|usb_device_id|vchiq_device_id|vio_device_id|virtio_device_id|wmi_device_id|x86_(cpu|device)_id|zorro_device_id|cpu_feature)\>" $(git grep -l linux/spmi.h) include/linux/spmi.h
drivers/iio/adc/qcom-spmi-iadc.c:of_device_id
drivers/iio/adc/qcom-spmi-rradc.c:of_device_id
drivers/mfd/hi6421-spmi-pmic.c:of_device_id
drivers/mfd/qcom-spmi-pmic.c:of_device_id
drivers/misc/qcom-coincell.c:of_device_id
drivers/nvmem/apple-spmi-nvmem.c:of_device_id
drivers/nvmem/qcom-spmi-sdam.c:of_device_id
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c:of_device_id
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c:of_device_id
drivers/power/reset/qcom-pon.c:of_device_id
drivers/regulator/hi6421v600-regulator.c:platform_device_id
drivers/regulator/mt6315-regulator.c:of_device_id
drivers/regulator/mt6316-regulator.c:of_device_id
drivers/regulator/mt6363-regulator.c:of_device_id
drivers/soc/qcom/qcom-pbs.c:of_device_id
drivers/spmi/hisi-spmi-controller.c:of_device_id
drivers/spmi/spmi-apple-controller.c:of_device_id
drivers/spmi/spmi-mtk-pmif.c:of_device_id
drivers/spmi/spmi-pmic-arb.c:of_device_id
).
struct of_device_id is already provided by <linux/device.h> and
drivers/regulator/hi6421v600-regulator.c includes
<linux/platform_device.h> itself to get struct platform_device_id.
So the include of <linux/mod_devicetable.h> can just be dropped from
<linux/spmi.h> bringing us one step closer to remove
<linux/mod_devicetable.h>.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
include/linux/spmi.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/spmi.h b/include/linux/spmi.h
index 4daebc980501..57d5a29c80f1 100644
--- a/include/linux/spmi.h
+++ b/include/linux/spmi.h
@@ -6,7 +6,6 @@
#include <linux/types.h>
#include <linux/device.h>
-#include <linux/mod_devicetable.h>
/* Maximum slave identifier */
#define SPMI_MAX_SLAVE_ID 16
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
--
2.56.0.rc1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h>
2026-12-01 12:04 [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h> Uwe Kleine-König
@ 2026-12-01 23:49 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-12-01 23:49 UTC (permalink / raw)
To: Uwe Kleine-König, Stephen Boyd, Abel Vesa
Cc: oe-kbuild-all, linux-kernel, Jonathan Cameron, Lee Jones,
Arnd Bergmann, Greg Kroah-Hartman, Srinivas Kandagatla,
Vinod Koul, Linus Walleij, Sebastian Reichel, Liam Girdwood,
Mark Brown
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@intel.com/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@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/20261202074637.oWbgMqCi-lkp@intel.com/
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 12:04 [PATCH] spmi: Drop <linux/mod_devicetable.h> from <linux/spmi.h> Uwe Kleine-König
2026-12-01 23:49 ` kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®