hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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)