Skip to content
Commit bc2dc440 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Linus Torvalds
Browse files

compiler-clang: remove version check for BPF Tracing



bpftrace parses the kernel headers and uses Clang under the hood.

Remove the version check when __BPF_TRACING__ is defined (as bpftrace
does) so that this tool can continue to parse kernel headers, even with
older clang sources.

Fixes: commit 1f7a44f6 ("compiler-clang: add build check for clang 10.0.1")
Reported-by: default avatarChen Yu <yu.chen.surf@gmail.com>
Reported-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Tested-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Acked-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Acked-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Acked-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://lkml.kernel.org/r/20201104191052.390657-1-ndesaulniers@google.com


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 450677dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment