WSL2-Linux-Kernel/samples
Alexander Lobakin 1a51d9d603 samples: bpf: Fix 'unknown warning group' build warning on Clang
[ Upstream commit 6f670d06e4 ]

Clang doesn't have 'stringop-truncation' group like GCC does, and
complains about it when building samples which use xdp_sample_user
infra:

 samples/bpf/xdp_sample_user.h:48:32: warning: unknown warning group '-Wstringop-truncation', ignored [-Wunknown-warning-option]
 #pragma GCC diagnostic ignored "-Wstringop-truncation"
                                ^
[ repeat ]

Those are harmless, but avoidable when guarding it with ifdef.
I could guard push/pop as well, but this would require one more
ifdef cruft around a single line which I don't think is reasonable.

Fixes: 156f886cf6 ("samples: bpf: Add basic infrastructure for XDP samples")
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/20211203195004.5803-3-alexandr.lobakin@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:29 +01:00
..
acrn
auxdisplay
binderfs
bpf samples: bpf: Fix 'unknown warning group' build warning on Clang 2022-01-27 11:03:29 +01:00
configfs
connector
ftrace ftrace/samples: Add missing prototypes direct functions 2022-01-11 15:35:13 +01:00
hidraw
hw_breakpoint
kdb
kfifo
kmemleak
kobject
kprobes samples/kretprobes: Fix return value if register_kretprobe() failed 2021-11-18 19:16:42 +01:00
landlock
livepatch
mei
nitro_enclaves
pidfd
pktgen
qmi
rpmsg
seccomp
timers
trace_events
trace_printk
uhid
v4l
vfio-mdev
vfs
watch_queue
watchdog
Kconfig
Makefile