Re: [PATCH] mod_devicetable.h: Split into per subsystem headers
From: Linus Torvalds
Date: Tue Jun 23 2026 - 10:54:42 EST
On Tue, 23 Jun 2026 at 07:47, Uwe Kleine-König (The Capable Hub)
<u.kleine-koenig@xxxxxxxxxxxx> wrote:
>
> So in the end I expect a handful of driver patches plus switching the
> the most important (or maybe all) <linux/$something.h>s from
> <linux/mod_devicetable.h> to <linux/mod_device_id/$something>.
>
> I guess that is ok then, too?
Sure, that sounds fine. I was expecting lots of files to include the
mod_device_id/xyz.h files by hand, since that's what currently happens
with that mod_devicetable.h file:
$ git grep linux/mod_devicetable.h | wc -l
1621
but if it turns out that 99% of those can be subsumed by just the
normal device header includes, then that's all the better.
Because what I _didn't_ want to see was some "manually fixed up 1600
files, followed by a month of build failure reports for random
configs".
Linus