]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: arm64: Fix sparse warnings
authorPuranjay Mohan <puranjay@kernel.org>
Fri, 19 Dec 2025 19:13:08 +0000 (11:13 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 22 Dec 2025 00:57:23 +0000 (16:57 -0800)
commitf785a31395d9cafb8b2c42c7358fad72a6463142
tree92eaa7424779e944a63c837ec72cd218c858575c
parentd2749ae85aec685e52e0474f445f6a8552363eb0
bpf: arm64: Fix sparse warnings

ctx->image is declared as __le32 because arm64 instructions are LE
regardless of CPU's runtime endianness. emit_u32_data() emits raw data
and not instructions so cast the value to __le32 to fix the sparse
warning.

Cast function pointer to void * before doing arithmetic.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20251219191310.3204425-1-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/net/bpf_jit_comp.c