OSDN Git Service

Compiler Attributes: KENTRY used twice the "used" attribute
authorMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Mon, 3 Sep 2018 17:22:13 +0000 (19:22 +0200)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Sun, 30 Sep 2018 18:14:03 +0000 (20:14 +0200)
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # on top of v4.19-rc5, clang 7
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
include/linux/compiler.h

index 4030a29..17ee916 100644 (file)
@@ -146,7 +146,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val,
        extern typeof(sym) sym;                                 \
        static const unsigned long __kentry_##sym               \
        __used                                                  \
-       __attribute__((__section__("___kentry" "+" #sym ), used))       \
+       __attribute__((__section__("___kentry" "+" #sym )))     \
        = (unsigned long)&sym;
 #endif