diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-12-02 03:31:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-03 22:01:14 +0100 |
commit | 69a9d09b2251aeb968e76f39f2b89774312daa3d (patch) | |
tree | 5f0f18269ce9086baa80f2842b6acb86cfd5d995 /samples | |
parent | netns: fix net_generic() "id - 1" bloat (diff) | |
download | linux-69a9d09b2251aeb968e76f39f2b89774312daa3d.tar.xz linux-69a9d09b2251aeb968e76f39f2b89774312daa3d.zip |
samples/bpf: silence compiler warnings
silence some of the clang compiler warnings like:
include/linux/fs.h:2693:9: warning: comparison of unsigned enum expression < 0 is always false
arch/x86/include/asm/processor.h:491:30: warning: taking address of packed member 'sp0' of class or structure 'x86_hw_tss' may result in an unaligned pointer value
include/linux/cgroup-defs.h:326:16: warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension
since they add too much noise to samples/bpf/ build.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/bpf/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index bfc2cb88a1f7..13c3e1869890 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -168,4 +168,6 @@ $(obj)/%.o: $(src)/%.c $(CLANG) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \ -D__KERNEL__ -D__ASM_SYSREG_H -Wno-unused-value -Wno-pointer-sign \ -Wno-compare-distinct-pointer-types \ + -Wno-gnu-variable-sized-type-not-at-end \ + -Wno-address-of-packed-member -Wno-tautological-compare \ -O2 -emit-llvm -c $< -o -| $(LLC) -march=bpf -filetype=obj -o $@ |