android_kernel_motorola_sm6375/kernel/bpf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alan Maguire c4425a256e
UPSTREAM: bpf: Eliminate remaining "make W=1" warnings in kernel/bpf/btf.o
[ Upstream commit 2454075f8e2915cebbe52a1195631bc7efe2b7e1 ]

As reported by Mirsad [1] we still see format warnings in kernel/bpf/btf.o
at W=1 warning level:

  CC      kernel/bpf/btf.o
./kernel/bpf/btf.c: In function ‘btf_type_seq_show_flags’:
./kernel/bpf/btf.c:7553:21: warning: assignment left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
 7553 |         sseq.showfn = btf_seq_show;
      |                     ^
./kernel/bpf/btf.c: In function ‘btf_type_snprintf_show’:
./kernel/bpf/btf.c:7604:31: warning: assignment left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
 7604 |         ssnprintf.show.showfn = btf_snprintf_show;
      |                               ^

Combined with CONFIG_WERROR=y these can halt the build.

The fix (annotating the structure field with __printf())
suggested by Mirsad resolves these. Apologies I missed this last time.
No other W=1 warnings were observed in kernel/bpf after this fix.

[1] https://lore.kernel.org/bpf/92c9d047-f058-400c-9c7d-81d4dc1ef71b@gmail.com/

Fixes: b3470da314fd ("bpf: annotate BTF show functions with __printf")
Reported-by: Mirsad Todorovac <mtodorovac69@gmail.com>
Suggested-by: Mirsad Todorovac <mtodorovac69@gmail.com>
Change-Id: I57f76a232044d486052102bb0de1e797855c7c67
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240712092859.1390960-1-alan.maguire@oracle.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-01-14 18:13:10 -08:00
..
preload UPSTREAM: bpf: Fix umd memory leak in copy_process() 2026-01-14 18:12:50 -08:00
arraymap.c UPSTREAM: bpf: Acquire map uref in .init_seq_private for array map iterator 2026-01-14 18:13:02 -08:00
bpf_inode_storage.c UPSTREAM: bpf: Change inode_storage's lookup_elem return value from NULL to -EBADF 2026-01-14 18:12:50 -08:00
bpf_iter.c UPSTREAM: bpf: Fix an unitialized value in bpf_iter 2026-01-14 18:12:49 -08:00
bpf_local_storage.c UPSTREAM: bpf: Annotate data races in bpf_local_storage 2026-01-14 18:13:06 -08:00
bpf_lru_list.c
bpf_lru_list.h
bpf_lsm.c UPSTREAM: bpf: Update verification logic for LSM programs 2026-01-14 18:12:46 -08:00
bpf_struct_ops.c UPSTREAM: bpf: Handle return value of BPF_PROG_TYPE_STRUCT_OPS prog 2026-01-14 18:12:57 -08:00
bpf_struct_ops_types.h
btf.c UPSTREAM: bpf: Eliminate remaining "make W=1" warnings in kernel/bpf/btf.o 2026-01-14 18:13:10 -08:00
cgroup.c UPSTREAM: bpf, cgroup: Fix kernel BUG in purge_effective_progs 2026-01-14 18:13:03 -08:00
core.c UPSTREAM: bpf: Detect IP == ksym.end as part of BPF program 2026-01-14 18:13:08 -08:00
cpumap.c UPSTREAM: cpumap: Zero-initialise xdp_rxq_info struct before running XDP program 2026-01-14 18:13:09 -08:00
devmap.c UPSTREAM: bpf, devmap: Use GFP_KERNEL for xdp bulk queue allocation 2026-01-14 18:12:49 -08:00
disasm.c
disasm.h
dispatcher.c
hashtab.c UPSTREAM: bpf: Acquire map uref in .init_seq_private for hash map iterator 2026-01-14 18:13:02 -08:00
helpers.c UPSTREAM: bpf: Fix potentially incorrect results with bpf_get_local_storage() 2026-01-14 18:12:57 -08:00
inode.c UPSTREAM: bpf: link: Refuse non-O_RDWR flags in BPF_OBJ_GET 2026-01-14 18:12:51 -08:00
local_storage.c UPSTREAM: bpf: Fix NULL pointer dereference in bpf_get_local_storage() helper 2026-01-14 18:12:57 -08:00
lpm_trie.c
Makefile
map_in_map.c
map_in_map.h
map_iter.c
net_namespace.c
offload.c
percpu_freelist.c UPSTREAM: bpf: Initialize same number of free nodes for each pcpu_freelist 2026-01-14 18:13:03 -08:00
percpu_freelist.h UPSTREAM: bpf: Use raw_spin_trylock() for pcpu_freelist_push/pop in NMI 2026-01-14 18:12:40 -08:00
prog_iter.c
queue_stack_maps.c
reuseport_array.c
ringbuf.c UPSTREAM: bpf: Fix overrunning reservations in ringbuf 2026-01-14 18:13:10 -08:00
stackmap.c UPSTREAM: bpf: Add crosstask check to __bpf_get_stack 2026-01-14 18:13:08 -08:00
syscall.c UPSTREAM: bpf: Set uattr->batch.count as zero before batched update or deletion 2026-01-14 18:13:09 -08:00
sysfs_btf.c
task_iter.c UPSTREAM: bpf: Save correct stopping point in file seq iteration 2026-01-14 18:12:47 -08:00
tnum.c
trampoline.c UPSTREAM: bpf: Fix potential array overflow in bpf_trampoline_get_progs() 2026-01-14 18:13:01 -08:00
verifier.c BACKPORT: bpf: Allow reads from uninit stack 2026-01-14 18:13:10 -08:00