WSL2-Linux-Kernel/tools
Daniel Müller 6cb9430be1 libbpf: Ignore warnings about "inefficient alignment"
Some consumers of libbpf compile the code base with different warnings
enabled. In a report for perf, for example, -Wpacked was set which
caused warnings about "inefficient alignment" to be emitted on a subset
of supported architectures.

With this change we silence specifically those warnings, as we intentionally
worked with packed structs.

This is a similar resolution as in b2f10cd4e8 ("perf cpumap: Fix alignment
for masks in event encoding").

Fixes: 1eebcb6063 ("libbpf: Implement basic zip archive parsing support")
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/bpf/CA+G9fYtBnwxAWXi2+GyNByApxnf_DtP1-6+_zOKAdJKnJBexjg@mail.gmail.com/
Link: https://lore.kernel.org/bpf/20230315171550.1551603-1-deso@posteo.net
2023-03-16 18:20:08 +01:00
..
accounting
arch bpf-next-for-netdev 2023-03-06 20:36:39 -08:00
bootconfig
bpf tools/resolve_btfids: Add /libsubcmd to .gitignore 2023-03-06 16:23:01 +01:00
build
certs
cgroup
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include bpf: use canonical ftrace path 2023-03-13 21:51:30 -07:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Ignore warnings about "inefficient alignment" 2023-03-16 18:20:08 +01:00
memory-model
mm
net/ynl
objtool
pci
pcmcia
perf
power
rcu
scripts
spi
testing selftests/bpf: Fix a fd leak in an error path in network_helpers.c 2023-03-16 18:12:59 +01:00
thermal
time
tracing
usb
verification
virtio
wmi
Makefile