[PATCH v2 1/1] PCI: stm32: Don't use "proxy" headers
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Tue Nov 18 04:42:25 PST 2025
On Mon, Nov 17, 2025 at 02:43:48PM -0600, Bjorn Helgaas wrote:
> On Fri, Nov 14, 2025 at 07:52:01PM +0100, Andy Shevchenko wrote:
> > Update header inclusions to follow IWYU (Include What You Use)
> > principle.
> >
> > In particular, replace of_gpio.h, which is subject to remove by the GPIOLIB
> > subsystem, with the respective headers that are being used by the driver.
>
> Thanks, Andy! It looks like a lot of work to figure this out by hand.
True.
> Is there a tool to figure this out? Maybe something I could run when
> reviewing patches?
I have a déjà vu answering this question. Was it you last time who asked
the same?
The tool is iwyu which is heavily tuned for the kernel use by Jonathan (Cc'ed).
But I do it manually.
> IWYU seems like a nice principle but I couldn't find any mention in
> Documentation/. Should it be covered there somehow?
Perhaps. Maybe we can start with IIO, where it's a highly recommended thing
for the new code submissions.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list