From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzk@kernel.org>
Subject: Re: [PATCH net-next v1 1/1] nfc: mrvl: Don't use "proxy" headers
Date: Mon, 4 Nov 2024 10:15:02 +0200 [thread overview]
Message-ID: <ZyiChsS_zrHlet3E@smile.fi.intel.com> (raw)
In-Reply-To: <20241103081740.7bc006c1@kernel.org>
On Sun, Nov 03, 2024 at 08:17:40AM -0800, Jakub Kicinski wrote:
> On Fri, 1 Nov 2024 10:39:10 +0200 Andy Shevchenko wrote:
> > Subject: [PATCH net-next v1 1/1] nfc: mrvl: Don't use "proxy" headers
>
> What is a "proxy" header?
The "proxy" header is any header that the code rely on to include other(s)
*not related* to that header headers. Hopefully, despite too many words
"header" you got the idea.
> Guessing by the two patches you posted - are you trying to get rid of
> of_gpio.h?
In this particular case:
1) I want to get rid of deprecated of_gpio.h;
2) but at the same time it *is* a "proxy" header in this case.
> > Update header inclusions to follow IWYU (Include What You Use)
> > principle.
>
> I'm definitely on board with cleaning this up, but would prefer
> to make sure we can validate new patches against introducing
> regressions.
0-day LKP quite likely will notice any issues with this (it's quite good
at it), and so far it reported A-OK.
> Otherwise the stream of patches will be never ending.
I know, and this is pity. And there was an attempt to make clang based tool
for that, but no move forward as far as I can see. So, you are welcome to help
developing such a tool.
> What tooling do you use?
My brains and my expertise in Linux Kernel project for the dependency hell
we have in the headers.
> Is it easy to integrate into a CI system?
I don't think so.
Can we have this being applied meanwhile, please? It's a showstopper for
getting rid of of_gpio.h rather sooner than later.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2024-11-04 8:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-01 8:39 [PATCH net-next v1 1/1] nfc: mrvl: Don't use "proxy" headers Andy Shevchenko
2024-11-02 8:00 ` Krzysztof Kozlowski
2024-11-04 8:07 ` Andy Shevchenko
2024-11-04 9:09 ` Krzysztof Kozlowski
2024-11-03 16:17 ` Jakub Kicinski
2024-11-04 8:15 ` Andy Shevchenko [this message]
2024-11-05 2:29 ` Jakub Kicinski
2024-11-05 14:15 ` Andy Shevchenko
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=ZyiChsS_zrHlet3E@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=krzk@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).