mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
Merge branch 'bpf-avoid-attribute-ignored-warnings-in-gcc'
Jose E. Marchesi says: ==================== bpf: avoid `attribute ignored' warnings in GCC These two patches avoid warnings (turned into errors) when building the BPF selftests with GCC. [Changes from V1: - As requested by reviewer, an additional patch has been added in order to remove __hidden from the `private' macro in cpumask_common.h. - Typo bening -> benign fixed in the commit message of the second patch.] ==================== Link: https://lore.kernel.org/r/20240507074227.4523-1-jose.marchesi@oracle.com Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
This commit is contained in:
commit
eda80aacd0
|
|
@ -431,7 +431,7 @@ endef
|
|||
# Build BPF object using GCC
|
||||
define GCC_BPF_BUILD_RULE
|
||||
$(call msg,GCC-BPF,$(TRUNNER_BINARY),$2)
|
||||
$(Q)$(BPF_GCC) $3 -O2 -c $1 -o $2
|
||||
$(Q)$(BPF_GCC) $3 -Wno-attributes -O2 -c $1 -o $2
|
||||
endef
|
||||
|
||||
SKEL_BLACKLIST := btf__% test_pinning_invalid.c test_sk_assign.c
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
int err;
|
||||
|
||||
#define private(name) SEC(".bss." #name) __hidden __attribute__((aligned(8)))
|
||||
#define private(name) SEC(".bss." #name) __attribute__((aligned(8)))
|
||||
private(MASK) static struct bpf_cpumask __kptr * global_mask;
|
||||
|
||||
struct __cpumask_map_value {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user