Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

parisc: get rid of private asm/unaligned.h

Declarations local to arch/*/kernel/*.c are better off *not* in a public
header - arch/parisc/kernel/unaligned.h is just fine for those
bits.

With that done parisc asm/unaligned.h is reduced to include
of asm-generic/unaligned.h and can be removed - unaligned.h is in
mandatory-y in include/asm-generic/Kbuild.

Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 134d9882 9852d85e

+6 -11
-11
arch/parisc/include/asm/unaligned.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef _ASM_PARISC_UNALIGNED_H 3 - #define _ASM_PARISC_UNALIGNED_H 4 - 5 - #include <asm-generic/unaligned.h> 6 - 7 - struct pt_regs; 8 - void handle_unaligned(struct pt_regs *regs); 9 - int check_unaligned(struct pt_regs *regs); 10 - 11 - #endif /* _ASM_PARISC_UNALIGNED_H */
+2
arch/parisc/kernel/traps.c
··· 47 47 #include <linux/kgdb.h> 48 48 #include <linux/kprobes.h> 49 49 50 + #include "unaligned.h" 51 + 50 52 #if defined(CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK) 51 53 #include <asm/spinlock.h> 52 54 #endif
+1
arch/parisc/kernel/unaligned.c
··· 15 15 #include <asm/unaligned.h> 16 16 #include <asm/hardirq.h> 17 17 #include <asm/traps.h> 18 + #include "unaligned.h" 18 19 19 20 /* #define DEBUG_UNALIGNED 1 */ 20 21
+3
arch/parisc/kernel/unaligned.h
··· 1 + struct pt_regs; 2 + void handle_unaligned(struct pt_regs *regs); 3 + int check_unaligned(struct pt_regs *regs);