]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Fix build error due to -isystem removal
authorAlexander Lobakin <alexandr.lobakin@intel.com>
Mon, 15 Nov 2021 13:07:41 +0000 (14:07 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 16 Nov 2021 04:37:20 +0000 (20:37 -0800)
commite49f0779935795050d40b55668cea965276e1b7d
tree544609e1fb884fcefc9f4d9f7920f0fe4cd8634e
parent2d6576d1e9c3015d7f5190a87a3a42d161751173
samples/bpf: Fix build error due to -isystem removal

Since recent Kbuild updates we no longer include files from compiler
directories. However, samples/bpf/hbm_kern.h hasn't been tuned for
this (LLVM 13):

  CLANG-bpf  samples/bpf/hbm_out_kern.o
In file included from samples/bpf/hbm_out_kern.c:55:
samples/bpf/hbm_kern.h:12:10: fatal error: 'stddef.h' file not found
         ^~~~~~~~~~
1 error generated.
  CLANG-bpf  samples/bpf/hbm_edt_kern.o
In file included from samples/bpf/hbm_edt_kern.c:53:
samples/bpf/hbm_kern.h:12:10: fatal error: 'stddef.h' file not found
         ^~~~~~~~~~
1 error generated.

It is enough to just drop both stdbool.h and stddef.h from includes
to fix those.

Fixes: 536ba1ad8dea ("isystem: delete global -isystem compile option")
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://lore.kernel.org/bpf/20211115130741.3584-1-alexandr.lobakin@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/hbm_kern.h