kprobes: Replace __ASSEMBLY__ with __ASSEMBLER__ in header file

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.

Link: https://lore.kernel.org/all/[email protected]/

Signed-off-by: Thomas Huth <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
This commit is contained in:
Thomas Huth authored and Masami Hiramatsu (Google) committed 2026-07-02 21:12:40 +09:00
1 parent 823b378558
commit ffd9dada63
1 file changed
+2 -2
+2 -2
View File
@@ -2,7 +2,7 @@
#ifndef _ASM_GENERIC_KPROBES_H
#define _ASM_GENERIC_KPROBES_H
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
#if defined(__KERNEL__) && !defined(__ASSEMBLER__)
#ifdef CONFIG_KPROBES
/*
* Blacklist ganerating macro. Specify functions which is not probed
@@ -21,6 +21,6 @@ static unsigned long __used \
# define __kprobes
# define nokprobe_inline inline
#endif
#endif /* defined(__KERNEL__) && !defined(__ASSEMBLY__) */
#endif /* defined(__KERNEL__) && !defined(__ASSEMBLER__) */
#endif /* _ASM_GENERIC_KPROBES_H */