From: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
To: "Takashi Sakamoto" <o-takashi@sakamocchi.jp>,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Mark Brown" <broonie@kernel.org>,
"Nathan Chancellor" <nathan@kernel.org>,
"Nick Desaulniers" <nick.desaulniers+lkml@gmail.com>,
"Bill Wendling" <morbo@google.com>,
"Justin Stitt" <justinstitt@google.com>,
"Raag Jadav" <raag.jadav@intel.com>,
"Sohil Mehta" <sohil.mehta@intel.com>,
"Dave Hansen" <dave.hansen@linux.intel.com>,
"Rob Herring" <robh@kernel.org>,
"Saravana Kannan" <saravanak@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Len Brown" <lenb@kernel.org>,
"Andi Shyti" <andi.shyti@kernel.org>,
linux-kernel@vger.kernel.org,
"Yemike Abhilash Chandra" <y-abhilashchandra@ti.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
linux-media@vger.kernel.org,
"Nicolas Frattaroli" <nicolas.frattaroli@collabora.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Heiko Stuebner" <heiko@sntech.de>,
linux-rockchip@lists.infradead.org, linux-sound@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Danilo Krummrich" <dakr@kernel.org>,
driver-core@lists.linux.dev,
"Jonathan Cameron" <jic23@kernel.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>,
"Pei Xiao" <xiaopei01@kylinos.cn>,
"Shashank Balaji" <shashank.mahadasyam@sony.com>,
"Ben Horgan" <ben.horgan@arm.com>,
"Johan Hovold" <johan@kernel.org>,
linux-usb@vger.kernel.org, "Nikita Kravets" <teackot@gmail.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
platform-driver-x86@vger.kernel.org, devicetree@vger.kernel.org,
linux-i2c@vger.kernel.org,
"Daniel Scally" <dan.scally@ideasonboard.com>,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Tianrui Zhao" <zhaotianrui@loongson.cn>,
"Bibo Mao" <maobibo@loongson.cn>,
"Huacai Chen" <chenhuacai@kernel.org>,
"WANG Xuerui" <kernel@xen0n.name>,
kvm@vger.kernel.org, loongarch@lists.linux.dev
Subject: Re: [PATCH v3 00/16] mod_devicetable.h: Split into per subsystem headers
Date: Tue, 30 Jun 2026 08:04:26 +0200 [thread overview]
Message-ID: <akNYUdAS3sbEdRqC@monoceros> (raw)
In-Reply-To: <20260629235804.GA414914@sakamocchi.jp>
[-- Attachment #1: Type: text/plain, Size: 3447 bytes --]
Hello Takashi,
On Tue, Jun 30, 2026 at 08:58:04AM +0900, Takashi Sakamoto wrote:
> On Sun, Jun 28, 2026 at 11:58:35PM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> > ...
> > drivers/firewire/core-device.c | 1 -
> > drivers/firewire/net.c | 1 -
> > drivers/firewire/sbp2.c | 1 -
> > ...
> > drivers/media/firewire/firedtv-fw.c | 1 -
> > ...
> > include/linux/firewire.h | 3 +-
> > ...
> > sound/firewire/isight.c | 1 -
> > ...
> > 1649 files changed, 1575 insertions(+), 2544 deletions(-)
> > ...
> > create mode 100644 include/linux/device-id/ieee1394.h
>
> I have no objection to the above changes relevant to firewire subsystem.
>
> Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Thanks! Added to my tree.
> Consequently, unit drivers just include include/linux/firewire.h to refer
> to 'struct ieee1394_device_id'. After merging the changes, I'll post more
> patches to modify the following unit drivers, since they are left from the
> patchset.
>
> * drivers/media/firewire/firedtv.h
> * sound/firewire/bebob/bebob.h
> * sound/firewire/dice/dice.h
> * sound/firewire/digi00x/digi00x.h
> * sound/firewire/fireface/ff.h
> * sound/firewire/fireworks/fireworks.h
> * sound/firewire/motu/motu.h
> * sound/firewire/oxfw/oxfw.h
> * sound/firewire/tascam/tascam.h
>
> By the way, the changes touch so many files. If it takes more time to
> apply, I think it better to make steps to modify across several kernel
> generation.
Touching so many files is the motivation to do all the high-impact
changes in a single go. As of v7.2-rc1 <linux/mod_devicetable.h> is
included (transitively) in ~18000 of 21500 .o files below drivers/ for a
x86_64 allmodconfig[1]. So touching that file requires a near complete
rebuild. If we spread the changes over several trees/kernel releases the
need to recompile the whole tree repeats more often than necessary. Note
this bites not only during the merge window when building the
development tree, but also during bisection.
> For example, getting rid of direct reference of
> mod_devicetable.h from drivers at first (in the case of firewire
> subsystem, for 'Replace <linux/mod_devicetable.h> by more specific
> <linux/device-id/*.h> (headers))', then adding these per-subsystem
> headers and applying relevant changes.
The impact of these firewire changes is limited to the firewire
subsystem. So doing these later is a smaller issue. I plan to tackle
these when this series is in. (But if you want to care about the
firewire bits, that's fine, too.)
> Of course, I don't mind to apply the v3 patchset as is in upstream.
There are a few changes that I collected (Added SPDX markers, a few less
#includes added as my script evolved, a new patch to fix a hppa
fallout), so I will send a v4 later today.
Best regards
Uwe
[1] I did in my build tree (with the series applied)
$ find drivers -name \*.o.cmd -not -name \*.mod.o.cmd | xargs grep -l /device-id/ | wc -l
19221
$ find drivers -name \*.o.cmd -not -name \*.mod.o.cmd | wc -l
21597
That's a bit wrong as my series changes the numbers, but the ballpark
should be right. In
https://lore.kernel.org/all/20260622210733.1743063-2-u.kleine-koenig@baylibre.com/
I found similar numbers for 7.1 (17038/21330).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-06-30 6:04 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-28 21:58 [PATCH v3 00/16] mod_devicetable.h: Split into per subsystem headers Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 01/16] " Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 02/16] media: ti: vpe: #include <linux/platform_device.h> explicitly Uwe Kleine-König (The Capable Hub)
2026-06-29 5:42 ` Yemike Abhilash Chandra
2026-06-28 21:58 ` [PATCH v3 03/16] driver: core: Include headers for acpi_device_id and of_device_id for struct device_driver Uwe Kleine-König (The Capable Hub)
2026-06-29 13:43 ` Rafael J. Wysocki (Intel)
2026-06-28 21:58 ` [PATCH v3 04/16] driver core: platform: Include header for struct platform_device_id Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 05/16] usb: serial: Include <linux/usb.h> in <linux/usb/serial.h> Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 06/16] platform/x86: msi-ec: Ensure dmi_system_id is defined Uwe Kleine-König (The Capable Hub)
2026-06-29 11:39 ` Ilpo Järvinen
2026-06-28 21:58 ` [PATCH v3 07/16] of: Explicitly include <linux/types.h> and <linux/err.h> Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 08/16] i2c: Let i2c-core.h include <linux/i2c.h> Uwe Kleine-König (The Capable Hub)
2026-06-29 6:31 ` Wolfram Sang
2026-06-29 10:09 ` Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 09/16] platform/x86: x86-android-tablets: Add include defining struct dmi_system_id Uwe Kleine-König (The Capable Hub)
2026-06-29 11:38 ` Ilpo Järvinen
2026-06-29 13:36 ` Uwe Kleine-König (The Capable Hub)
2026-06-30 14:58 ` Ilpo Järvinen
2026-06-28 21:58 ` [PATCH v3 10/16] platform/x86: int3472: " Uwe Kleine-König (The Capable Hub)
2026-06-29 12:18 ` Ilpo Järvinen
2026-06-28 21:58 ` [PATCH v3 11/16] usb: dwc2: Add include defining struct pci_device_id Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 12/16] ALSA: hda/core: Add include defining struct hda_device_id Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 13/16] LoongArch: KVM: Add include defining struct cpu_feature Uwe Kleine-König (The Capable Hub)
2026-06-29 2:20 ` Bibo Mao
2026-06-28 21:58 ` [PATCH v3 14/16] media: em28xx: Add include for struct usb_device_id Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 15/16] Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (headers) Uwe Kleine-König (The Capable Hub)
2026-06-28 21:58 ` [PATCH v3 16/16] Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) Uwe Kleine-König (The Capable Hub)
2026-06-29 23:58 ` [PATCH v3 00/16] mod_devicetable.h: Split into per subsystem headers Takashi Sakamoto
2026-06-30 6:04 ` Uwe Kleine-König (The Capable Hub) [this message]
2026-06-30 13:11 ` Takashi Sakamoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=akNYUdAS3sbEdRqC@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=andi.shyti@kernel.org \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=ben.horgan@arm.com \
--cc=bhelgaas@google.com \
--cc=broonie@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=dakr@kernel.org \
--cc=dan.scally@ideasonboard.com \
--cc=dave.hansen@linux.intel.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=heiko@sntech.de \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jic23@kernel.org \
--cc=johan@kernel.org \
--cc=justinstitt@google.com \
--cc=kernel@xen0n.name \
--cc=kvm@vger.kernel.org \
--cc=lenb@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=mchehab@kernel.org \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=nick.desaulniers+lkml@gmail.com \
--cc=nicolas.frattaroli@collabora.com \
--cc=o-takashi@sakamocchi.jp \
--cc=perex@perex.cz \
--cc=platform-driver-x86@vger.kernel.org \
--cc=raag.jadav@intel.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=saravanak@kernel.org \
--cc=shashank.mahadasyam@sony.com \
--cc=sohil.mehta@intel.com \
--cc=teackot@gmail.com \
--cc=tiwai@suse.com \
--cc=torvalds@linux-foundation.org \
--cc=xiaopei01@kylinos.cn \
--cc=y-abhilashchandra@ti.com \
--cc=zhaotianrui@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox