diff options
author | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2018-09-03 13:22:13 -0400 |
---|---|---|
committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2018-09-30 14:14:03 -0400 |
commit | 06e3727e02f9ee9cf571692cd5c74fc5a8a2af52 (patch) | |
tree | bcfbf47be6a9f577621f41fadd37dbbf420603a7 /include/linux/compiler.h | |
parent | a3f8a30f3f0079c7edfc72e329eee8594fb3e3cb (diff) |
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>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r-- | include/linux/compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 4030a2940d6b..17ee9165ca51 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, | |||
146 | extern typeof(sym) sym; \ | 146 | extern typeof(sym) sym; \ |
147 | static const unsigned long __kentry_##sym \ | 147 | static const unsigned long __kentry_##sym \ |
148 | __used \ | 148 | __used \ |
149 | __attribute__((__section__("___kentry" "+" #sym ), used)) \ | 149 | __attribute__((__section__("___kentry" "+" #sym ))) \ |
150 | = (unsigned long)&sym; | 150 | = (unsigned long)&sym; |
151 | #endif | 151 | #endif |
152 | 152 | ||