]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
samples/bpf: fix a build problem
authorYonghong Song <yhs@fb.com>
Wed, 21 Jun 2017 20:48:27 +0000 (13:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:35:19 +0000 (11:35 -0400)
commit00a3855d68bd1ae633c94b13b8b404a5a238b135
tree57c1526b14b6fb2260d4daaaa249ae7eaee0995e
parent2de18105a8219bde0cc4947729d5f00ecb39179f
samples/bpf: fix a build problem

tracex5_kern.c build failed with the following error message:
  ../samples/bpf/tracex5_kern.c:12:10: fatal error: 'syscall_nrs.h' file not found
  #include "syscall_nrs.h"
The generated file syscall_nrs.h is put in build/samples/bpf directory,
but this directory is not in include path, hence build failed.

The fix is to add $(obj) into the clang compilation path.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile