diff options
author | Nick Desaulniers <[email protected]> | 2019-08-28 15:55:23 -0700 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2019-09-08 14:53:58 +0200 |
commit | bfafddd8de426d894fcf3e062370b1efaa195ebc (patch) | |
tree | 097599d8d0e1fa813a0f6f590cf6be56b4cb32df /tools/perf/util/scripting-engines | |
parent | 089cf7f6ecb266b6a4164919a2e69bd2f938374a (diff) |
include/linux/compiler.h: fix Oops for Clang-compiled kernels
GCC unescapes escaped string section names while Clang does not. Because
__section uses the `#` stringification operator for the section name, it
doesn't need to be escaped.
This fixes an Oops observed in distro's that use systemd and not
net.core.bpf_jit_enable=1, when their kernels are compiled with Clang.
Link: https://github.com/ClangBuiltLinux/linux/issues/619
Link: https://bugs.llvm.org/show_bug.cgi?id=42950
Link: https://marc.info/?l=linux-netdev&m=156412960619946&w=2
Link: https://lore.kernel.org/lkml/[email protected]/
Acked-by: Will Deacon <[email protected]>
Reported-by: Sedat Dilek <[email protected]>
Suggested-by: Josh Poimboeuf <[email protected]>
Tested-by: Sedat Dilek <[email protected]>
Signed-off-by: Nick Desaulniers <[email protected]>
[Cherry-picked from the __section cleanup series for 5.3]
[Adjusted commit message]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions