Re: [PATCH bpf-next 05/11] samples: bpf: makefile: use D vars from KBUILD_CFLAGS to handle headers

2019-09-13 Thread Ivan Khoronzhuk
On Fri, Sep 13, 2019 at 09:12:01PM +, Yonghong Song wrote: On 9/10/19 11:38 AM, Ivan Khoronzhuk wrote: The kernel headers are reused from samples bpf, and autoconf.h is not enough to reflect complete arch configuration for clang. But CLANG-bpf cmds are sensitive for assembler part taken fr

Re: [PATCH bpf-next 05/11] samples: bpf: makefile: use D vars from KBUILD_CFLAGS to handle headers

2019-09-13 Thread Yonghong Song
On 9/10/19 11:38 AM, Ivan Khoronzhuk wrote: > The kernel headers are reused from samples bpf, and autoconf.h is not > enough to reflect complete arch configuration for clang. But CLANG-bpf > cmds are sensitive for assembler part taken from linux headers and -D > vars, usually used in CFLAGS, shou

[PATCH bpf-next 05/11] samples: bpf: makefile: use D vars from KBUILD_CFLAGS to handle headers

2019-09-10 Thread Ivan Khoronzhuk
The kernel headers are reused from samples bpf, and autoconf.h is not enough to reflect complete arch configuration for clang. But CLANG-bpf cmds are sensitive for assembler part taken from linux headers and -D vars, usually used in CFLAGS, should be carefully added for each arch. For that, for CLA