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.

alpha: Replace __ASSEMBLY__ with __ASSEMBLER__ in the alpha headers

While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembly code, __ASSEMBLY__ is a
macro that only gets defined by the Makefiles in the kernel.
This can be very confusing when switching between userspace
and kernelspace coding, or when dealing with uapi headers that
rather should use __ASSEMBLER__ instead. So let's standardize now
on the __ASSEMBLER__ macro that is provided by the compilers.

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

Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Magnus Lindholm <linmag7@gmail.com>
Link: https://lore.kernel.org/r/20251121100044.282684-2-thuth@redhat.com
Signed-off-by: Magnus Lindholm <linmag7@gmail.com>

authored by

Thomas Huth and committed by
Magnus Lindholm
3cec82b4 3a866087

+10 -10
+2 -2
arch/alpha/include/asm/console.h
··· 4 4 5 5 #include <uapi/asm/console.h> 6 6 7 - #ifndef __ASSEMBLY__ 7 + #ifndef __ASSEMBLER__ 8 8 extern long callback_puts(long unit, const char *s, long length); 9 9 extern long callback_getc(long unit); 10 10 extern long callback_open_console(void); ··· 26 26 struct hwrpb_struct; 27 27 extern int callback_init_done; 28 28 extern void * callback_init(void *); 29 - #endif /* __ASSEMBLY__ */ 29 + #endif /* __ASSEMBLER__ */ 30 30 #endif /* __AXP_CONSOLE_H */
+2 -2
arch/alpha/include/asm/page.h
··· 6 6 #include <asm/pal.h> 7 7 #include <vdso/page.h> 8 8 9 - #ifndef __ASSEMBLY__ 9 + #ifndef __ASSEMBLER__ 10 10 11 11 #define STRICT_MM_TYPECHECKS 12 12 ··· 74 74 #define PAGE_OFFSET 0xfffffc0000000000 75 75 #endif 76 76 77 - #endif /* !__ASSEMBLY__ */ 77 + #endif /* !__ASSEMBLER__ */ 78 78 79 79 #define __pa(x) ((unsigned long) (x) - PAGE_OFFSET) 80 80 #define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
+2 -2
arch/alpha/include/asm/pal.h
··· 4 4 5 5 #include <uapi/asm/pal.h> 6 6 7 - #ifndef __ASSEMBLY__ 7 + #ifndef __ASSEMBLER__ 8 8 9 9 extern void halt(void) __attribute__((noreturn)); 10 10 #define __halt() __asm__ __volatile__ ("call_pal %0 #halt" : : "i" (PAL_halt)) ··· 183 183 return v0; 184 184 } 185 185 186 - #endif /* !__ASSEMBLY__ */ 186 + #endif /* !__ASSEMBLER__ */ 187 187 #endif /* __ALPHA_PAL_H */
+4 -4
arch/alpha/include/asm/thread_info.h
··· 4 4 5 5 #ifdef __KERNEL__ 6 6 7 - #ifndef __ASSEMBLY__ 7 + #ifndef __ASSEMBLER__ 8 8 #include <asm/processor.h> 9 9 #include <asm/types.h> 10 10 #include <asm/hwrpb.h> 11 11 #include <asm/sysinfo.h> 12 12 #endif 13 13 14 - #ifndef __ASSEMBLY__ 14 + #ifndef __ASSEMBLER__ 15 15 struct thread_info { 16 16 struct pcb_struct pcb; /* palcode state */ 17 17 ··· 44 44 45 45 register unsigned long *current_stack_pointer __asm__ ("$30"); 46 46 47 - #endif /* __ASSEMBLY__ */ 47 + #endif /* __ASSEMBLER__ */ 48 48 49 49 /* Thread information allocation. */ 50 50 #define THREAD_SIZE_ORDER 1 ··· 110 110 put_user(res, (int __user *)(value)); \ 111 111 }) 112 112 113 - #ifndef __ASSEMBLY__ 113 + #ifndef __ASSEMBLER__ 114 114 extern void __save_fpu(void); 115 115 116 116 static inline void save_fpu(void)