From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
Thorsten Blum <thorsten.blum@linux.dev>,
Andrew Morton <akpm@linux-foundation.org>,
David Hildenbrand <david@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>,
Andy Lutomirski <luto@kernel.org>,
Thomas Gleixner <tglx@kernel.org>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Kees Cook <kees@kernel.org>, Andy Shevchenko <andy@kernel.org>,
Yury Norov <yury.norov@gmail.com>,
David Laight <david.laight.linux@gmail.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] vdso: move offset_in_page() from linux/mm.h to vdso/page.h
Date: Tue, 18 Aug 2026 10:07:57 +0100 [thread overview]
Message-ID: <aoQgN0IJ9WuQWY7o@lucifer> (raw)
In-Reply-To: <aoNbHbfZyNfA8QKT@ashevche-desk.local>
On Mon, Aug 17, 2026 at 10:03:57PM +0300, Andy Shevchenko wrote:
> On Fri, May 22, 2026 at 11:52:58AM +0100, Lorenzo Stoakes wrote:
> > On Thu, May 21, 2026 at 09:34:57PM +0300, Andy Shevchenko wrote:
> > > On Thu, May 21, 2026 at 4:56 PM Lorenzo Stoakes <ljs@kernel.org> wrote:
> > > > On Thu, May 21, 2026 at 12:16:00PM +0100, Lorenzo Stoakes wrote:
> > > > > On Thu, May 21, 2026 at 11:06:57AM +0200, Thorsten Blum wrote:
>
> ...
>
> > > > Unless a series can be put forwards that sensibly justifies this, not some
> > > > random change somewhere, I'd rather we not take it.
> > >
> > > The problem is not only a compile time but more generic - the mess in
> > > the Linux headers. People who want to use this match need to include
> > > mm.h which is a bloated header with *tons* of unneeded dependencies
> > > (for those pure users) and increases chaos in how the headers are
> > > split.
> >
> > No question the headers are a bit of a mess, and I've had absolute headaches
> > with dependency chain stuff there.
> >
> > > If we don't care about it, then provide an "INCLUDE EVERYTHING" header
> >
> > That's a false dichotomy - the series isn't upstreamable as-is. I've provided
> > feedback that's not been addressed so we won't take it.
> >
> > > and let the driver just include that. But of course, we don't do that,
> > > we do modular headers for a reason. Currently I see no reason to have
> > > that simple helper to be mm.h as its use is much wider in the cases
> > > where the whole hell of mm.h is not needed.
> >
> > We also don't want to have wildly divergent overly-specific individual headers,
> > and series have to be upstreamable.
>
> No objections on this.
Yeah I think in this case this was the main issue.
>
> > > So, the best course of actions I see now is leave mm people alone and
> > > simply duplicate what we need in the headers we want to see
> > > (util_macros.h as a rough approximation, but maybe something better).
> >
> > I mean I feel engaging civilly and constructively with people who have taken
> > their time out to provide feedback is a better approach, but obviously what you
> > do elsewhere in the kernel is up to you.
>
> Yes, but it's may be due to my blindness to see how the whole mm.h machinery
> is useful for just simple macros that use PAGE_* ones beneath. I'm for whatever
> (much) smaller and that has much lesser dependencies, so people can use it.
Yup agreed, but it's all very catch-22
>
> > > > Also vdso/page.h is a VDSO-specific header by MAINTAINERS, offset_in_page() is
> > > > really an mm thing so that's another reason not to move it.
> > > >
> > > > (A justifying change would show actually build time/binary bloat/etc. numbers +
> > > > involve actual substantive changes).
> >
> > Overall this all feels like a storm in a teapot, this is a very trivial macro
> > and the use case seems nebulous at best.
>
> It might be more users found, if we start looking into that with tools like
> coccinelle. But I don't know.
>
> > A series actually addressing header issues with _a justifying reason provided_
> > (I am astonished that it still hasn't!), would be more useful, as long as it was
> > upstreamable and didn't cause other issues.
>
> Sure, justifying reason (one of?) is a very baby step to clean up the header
> dependency hell we have. I know that some people want the problem to be solved
> once for all, but it's impossible to achieve (remember Ingo's 2000+ patch series).
I know Matthew is looking at doing some work in this area actually!
But yeah it's horrendous and I'm not sure we're going to make all that much
headway, esp. as it's all very bikesheddable (perhaps I was demonstrating that
here ;)
I hate headers in general as a concept they invite the kind of horrific insanity
we have in the kernel.
Have made some small contribution myself too:
https://lore.kernel.org/all/20260804-fix-some-local-headers-v1-1-a7beb173c116@kernel.org/
But that's just symptomatic of the mess we have in general :)
>
> > We in mm are friendly and accepting of good series, engaging positively will get
> > a positive reception :)
>
> I believe this is a standard for maintainers in the kernel independently on the
> subsystem. But thanks for confirming!
:>)
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
--
Cheers, Lorenzo
next prev parent reply other threads:[~2026-08-18 9:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-21 9:06 [PATCH v2 0/2] mm/vdso: make offset_in_page() usable without linux/mm.h Thorsten Blum
2026-05-21 9:06 ` [PATCH v2 1/2] vdso: move offset_in_page() from linux/mm.h to vdso/page.h Thorsten Blum
2026-05-21 9:30 ` David Laight
2026-05-21 11:45 ` Thomas Gleixner
2026-05-21 11:15 ` Lorenzo Stoakes
2026-05-21 14:56 ` Lorenzo Stoakes
2026-05-21 18:34 ` Andy Shevchenko
2026-05-22 10:52 ` Lorenzo Stoakes
2026-08-17 19:03 ` Andy Shevchenko
2026-08-18 9:07 ` Lorenzo Stoakes (ARM) [this message]
2026-05-22 12:18 ` Thorsten Blum
2026-05-21 14:03 ` Yury Norov
2026-05-21 9:06 ` [PATCH v2 2/2] string: use offset_in_page() in sized_strscpy() Thorsten Blum
2026-05-21 11:31 ` Lorenzo Stoakes
2026-05-21 13:47 ` Thorsten Blum
2026-05-21 14:53 ` Lorenzo Stoakes
2026-05-21 11:33 ` [PATCH v2 0/2] mm/vdso: make offset_in_page() usable without linux/mm.h Lorenzo Stoakes
2026-05-21 13:59 ` Yury Norov
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=aoQgN0IJ9WuQWY7o@lucifer \
--to=ljs@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=david.laight.linux@gmail.com \
--cc=david@kernel.org \
--cc=kees@kernel.org \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@kernel.org \
--cc=mhocko@suse.com \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=tglx@kernel.org \
--cc=thorsten.blum@linux.dev \
--cc=vbabka@kernel.org \
--cc=vincenzo.frascino@arm.com \
--cc=yury.norov@gmail.com \
/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