Skip to content

Commit a5044ce

Browse files
huthGreg Ungerer
authored andcommitted
m68k: Avoid CONFIG_COLDFIRE switch in uapi header
We should not use any CONFIG switches in uapi headers since these only work during kernel compilation. They are not defined for userspace. Let's use the __mcoldfire__ switch from the compiler here instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
1 parent dd5a440 commit a5044ce

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/m68k/include/uapi/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct pt_regs {
3939
long d0;
4040
long orig_d0;
4141
long stkadj;
42-
#ifdef CONFIG_COLDFIRE
42+
#ifdef __mcoldfire__
4343
unsigned format : 4; /* frame format specifier */
4444
unsigned vector : 12; /* vector offset */
4545
unsigned short sr;

scripts/headers_install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ arch/arc/include/uapi/asm/page.h:CONFIG_ARC_PAGE_SIZE_16K
7474
arch/arc/include/uapi/asm/page.h:CONFIG_ARC_PAGE_SIZE_4K
7575
arch/arc/include/uapi/asm/swab.h:CONFIG_ARC_HAS_SWAPE
7676
arch/arm/include/uapi/asm/ptrace.h:CONFIG_CPU_ENDIAN_BE8
77-
arch/m68k/include/uapi/asm/ptrace.h:CONFIG_COLDFIRE
7877
arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_NO
7978
arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT
8079
arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION

0 commit comments

Comments
 (0)