浏览代码

Compiler Attributes: KENTRY used twice the "used" attribute

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>
Miguel Ojeda 7 年之前
父节点
当前提交
06e3727e02
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/compiler.h

+ 1 - 1
include/linux/compiler.h

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