]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: samples: exclude asm/sysreg.h for arm64
authorYang Shi <yang.shi@linaro.org>
Thu, 12 Nov 2015 22:07:46 +0000 (14:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 19:40:49 +0000 (14:40 -0500)
commit5376f6dfbaa8aa8ced36d460fedd0285cdd563c5
tree23fc6c9f27fdb079a5d81cb505c9a1c787d29b68
parent0aae7b1d7021ffe9393113092661daafa4465d00
bpf: samples: exclude asm/sysreg.h for arm64

commit 6bfdc2859e1642c84361372388c3abae74edf7cc
("arm64: kernel: Add support for Privileged Access Never") includes sysreg.h
into futex.h and uaccess.h. But, the inline assembly used by asm/sysreg.h is
incompatible with llvm so it will cause BPF samples build failure for ARM64.
Since sysreg.h is useless for BPF samples, just exclude it from Makefile via
defining __ASM_SYSREG_H.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile