]> Git Repo - linux.git/commit
arc: get rid of private asm/unaligned.h
authorAl Viro <[email protected]>
Wed, 6 Dec 2023 02:53:22 +0000 (21:53 -0500)
committerAl Viro <[email protected]>
Wed, 2 Oct 2024 21:22:47 +0000 (17:22 -0400)
commit00429083f404efe230fee577aa3dfbf2dea9b1f1
treeb5ad996ecba6d7fc6e436f3b98abde6b84ad422f
parent134d988208602ccae792e91475c05911c962798e
arc: get rid of private asm/unaligned.h

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.

Acked-by: Vineet Gupta <[email protected]>
Signed-off-by: Al Viro <[email protected]>
arch/arc/include/asm/mmu.h
arch/arc/include/asm/unaligned.h [deleted file]
arch/arc/kernel/traps.c
arch/arc/kernel/unaligned.c
arch/arc/kernel/unaligned.h [new file with mode: 0644]
This page took 0.060073 seconds and 4 git commands to generate.