public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@zeniv.linux.org.uk>
To: Vineet Gupta <vgupta@kernel.org>
Cc: linux-arch@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-parisc@vger.kernel.org
Subject: Re: [PATCH 2/3] arc: get rid of private asm/unaligned.h
Date: Wed, 2 Oct 2024 22:24:37 +0100	[thread overview]
Message-ID: <20241002212437.GF4017910@ZenIV> (raw)
In-Reply-To: <374574a7-7060-48d5-b395-8a6d2c9f84a5@kernel.org>

On Wed, Oct 02, 2024 at 02:03:30PM -0700, Vineet Gupta wrote:
> On 10/1/24 12:53, Al Viro wrote:
> > Declarations local to arch/*/kernel/*.c are better off *not* in a public
> > header - arch/arc/kernel/unaligned.h is just fine for those
> > bits.
> >
> > Unlike the parisc case, here we have an extra twist - asm/mmu.h
> > has an implicit dependency on struct pt_regs, and in some users
> > that used to be satisfied by include of asm/ptrace.h from
> > asm/unaligned.h (note that asm/mmu.h itself did _not_ pull asm/unaligned.h
> > - it relied upon the users having pulled asm/unaligned.h before asm/mmu.h
> > got there).
> >
> > Seeing that asm/mmu.h only wants struct pt_regs * arguments in
> > an extern, just pre-declare it there - less brittle that way.
> >
> > With that done _all_ asm/unaligned.h instances are reduced to include
> > of asm-generic/unaligned.h and can be removed - unaligned.h is in
> > mandatory-y in include/asm-generic/Kbuild.
> >
> > What's more, we can move asm-generic/unaligned.h to linux/unaligned.h
> > and switch includes of <asm/unaligned.h> to <linux/unaligned.h>; that's
> > better off as an auto-generated commit, though, to be done by Linus
> > at -rc1 time next cycle.
> >
> > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> 
> Acked-by: Vineet Gupta <vgupta@kernel.org>
> 
> LGTM. And by your next tree is fine/preferred.

Done.  It's in #for-next, and if nobody introduces arch/*/include/asm/unaligned.h
this cycle, the pull request will be followed by request to run the conversion
script at -rc1...

  reply	other threads:[~2024-10-02 21:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-01 19:51 [RFC][PATCHES] asm/unaligned.h removal Al Viro
2024-10-01 19:51 ` [PATCH 1/3] parisc: get rid of private asm/unaligned.h Al Viro
2024-10-02  0:57   ` Helge Deller
2024-10-02  3:23     ` Al Viro
2024-10-02  8:10   ` Rolf Eike Beer
2024-10-01 19:53 ` [PATCH 2/3] arc: " Al Viro
2024-10-02 21:03   ` Vineet Gupta
2024-10-02 21:24     ` Al Viro [this message]
2024-10-01 19:54 ` [PATCH 3/3] move asm/unaligned.h to linux/unaligned.h Al Viro
2024-10-01 20:34 ` [RFC][PATCHES] asm/unaligned.h removal Al Viro
2024-10-02 18:33 ` Linus Torvalds
2024-10-02 22:17   ` Al Viro
2024-10-02 23:36     ` [git pull] " Al Viro
2024-10-03  0:04       ` pr-tracker-bot

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=20241002212437.GF4017910@ZenIV \
    --to=viro@zeniv.linux.org.uk \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=vgupta@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