hc
2023-12-09 958e46acc8e900e8569dd467c1af9b8d2d019394
kernel/include/asm-generic/kprobes.h
....@@ -10,11 +10,11 @@
1010 */
1111 # define __NOKPROBE_SYMBOL(fname) \
1212 static unsigned long __used \
13
- __attribute__((__section__("_kprobe_blacklist"))) \
13
+ __section("_kprobe_blacklist") \
1414 _kbl_addr_##fname = (unsigned long)fname;
1515 # define NOKPROBE_SYMBOL(fname) __NOKPROBE_SYMBOL(fname)
1616 /* Use this to forbid a kprobes attach on very low level functions */
17
-# define __kprobes __attribute__((__section__(".kprobes.text")))
17
+# define __kprobes __section(".kprobes.text")
1818 # define nokprobe_inline __always_inline
1919 #else
2020 # define NOKPROBE_SYMBOL(fname)