hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
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)