All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 linux-kernel@vger.kernel.org, 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>,
	 Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH] mod_devicetable.h: Split into per subsystem headers
Date: Tue, 23 Jun 2026 18:13:27 +0200	[thread overview]
Message-ID: <ajqutplLwHdECDfd@monoceros> (raw)
In-Reply-To: <CAHk-=whaBKGupBPU_DhBHMdSCCEgM5ATNnOvzV6ZQcSTLN3gKQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]

Hello Linus,

On Tue, Jun 23, 2026 at 07:54:12AM -0700, Linus Torvalds wrote:
> On Tue, 23 Jun 2026 at 07:47, Uwe Kleine-König (The Capable Hub)
> <u.kleine-koenig@baylibre.com> 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

These are mostly .c files. Currently I'm concentrating on the header
files only:

$ find -name \*.h | xargs grep linux/mod_devicetable.h | wc -l
91

For these the effort-impact ratio is much better. Agreed that for .c
files your script approach sounds right. Up to now I wasn't aware that
there are that many .c files including <linux/mod_devicetable.h>
directly.

Assuming I create such a script, what would be the approach to apply the
resulting patch? Do you want to run and commit after -rc1? The
alternative would be to submit a patch per subsystem.

> 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".

Ack.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2026-06-23 16:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-22 21:07 [PATCH] mod_devicetable.h: Split into per subsystem headers Uwe Kleine-König (The Capable Hub)
2026-06-22 21:49 ` Linus Torvalds
2026-06-23  5:24   ` Greg Kroah-Hartman
2026-06-23  6:40   ` for next: ukleinek/linux.git:device-id-rework [Was: Re: [PATCH] mod_devicetable.h: Split into per subsystem headers] Uwe Kleine-König (The Capable Hub)
2026-06-23 11:12     ` Mark Brown
2026-06-22 22:06 ` [PATCH] mod_devicetable.h: Split into per subsystem headers Linus Torvalds
2026-06-23 14:47   ` Uwe Kleine-König (The Capable Hub)
2026-06-23 14:54     ` Linus Torvalds
2026-06-23 16:13       ` Uwe Kleine-König (The Capable Hub) [this message]

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=ajqutplLwHdECDfd@monoceros \
    --to=u.kleine-koenig@baylibre.com \
    --cc=andi.shyti@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=broonie@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=saravanak@kernel.org \
    --cc=torvalds@linux-foundation.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.