From: Miguel Ojeda Date: Mon, 3 Sep 2018 17:22:13 +0000 (+0200) Subject: Compiler Attributes: KENTRY used twice the "used" attribute X-Git-Tag: v4.20-rc1~28^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06e3727e02f9ee9cf571692cd5c74fc5a8a2af52;p=thirdparty%2Fkernel%2Flinux.git Compiler Attributes: KENTRY used twice the "used" attribute Tested-by: Sedat Dilek # on top of v4.19-rc5, clang 7 Reviewed-by: Nick Desaulniers Reviewed-by: Luc Van Oostenryck Signed-off-by: Miguel Ojeda --- diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 4030a2940d6bf..17ee9165ca513 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -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