Merge tag 'perf-tools-for-v6.4-3-2023-05-06' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / asm-generic / kprobes.h
index 4a982089c95cc523fa137462d4e853ce134df6f2..060eab094e5a2284a2a3a8b5c5492a13d8656423 100644 (file)
  */
 # define __NOKPROBE_SYMBOL(fname)                              \
 static unsigned long __used                                    \
-       __attribute__((__section__("_kprobe_blacklist")))       \
+       __section("_kprobe_blacklist")                          \
        _kbl_addr_##fname = (unsigned long)fname;
 # define NOKPROBE_SYMBOL(fname)        __NOKPROBE_SYMBOL(fname)
 /* Use this to forbid a kprobes attach on very low level functions */
-# define __kprobes     __attribute__((__section__(".kprobes.text")))
+# define __kprobes     __section(".kprobes.text")
 # define nokprobe_inline       __always_inline
 #else
 # define NOKPROBE_SYMBOL(fname)