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

nios2: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers

__ASSEMBLY__ is only defined by the Makefile of the kernel, so
this is not really useful for uapi headers (unless the userspace
Makefile defines it, too). Let's switch to __ASSEMBLER__ which
gets set automatically by the compiler when compiling assembly
code.

This is a completely mechanical patch (done with a simple "sed -i"
statement).

Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>

authored by

Thomas Huth and committed by
Dinh Nguyen
331b05b1 8f5ae30d

+2 -2
+2 -2
arch/nios2/include/uapi/asm/ptrace.h
··· 13 13 #ifndef _UAPI_ASM_NIOS2_PTRACE_H 14 14 #define _UAPI_ASM_NIOS2_PTRACE_H 15 15 16 - #ifndef __ASSEMBLY__ 16 + #ifndef __ASSEMBLER__ 17 17 18 18 #include <linux/types.h> 19 19 ··· 80 80 __u32 regs[49]; 81 81 }; 82 82 83 - #endif /* __ASSEMBLY__ */ 83 + #endif /* __ASSEMBLER__ */ 84 84 #endif /* _UAPI_ASM_NIOS2_PTRACE_H */