[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512191616.mTJdtOrm-lkp@intel.com>
Date: Fri, 19 Dec 2025 16:32:36 +0800
From: kernel test robot <lkp@...el.com>
To: Puranjay Mohan <puranjay12@...il.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Alexei Starovoitov <ast@...nel.org>,
Maxwell Bland <mbland@...orola.com>,
Sami Tolvanen <samitolvanen@...gle.com>
Subject: arch/arm64/net/bpf_jit_comp.c:121:38: sparse: sparse: incorrect type
in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dd9b004b7ff3289fb7bae35130c0a5c0537266af
commit: 710618c760c0a3267221517d78f4cfb65ca7b882 arm64/cfi,bpf: Support kCFI + BPF on arm64
date: 5 months ago
config: arm64-randconfig-r121-20251215 (https://download.01.org/0day-ci/archive/20251219/202512191616.mTJdtOrm-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251219/202512191616.mTJdtOrm-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512191616.mTJdtOrm-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/arm64/net/bpf_jit_comp.c:3071:32: sparse: sparse: arithmetics on pointers to functions
>> arch/arm64/net/bpf_jit_comp.c:121:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] data @@
arch/arm64/net/bpf_jit_comp.c:121:38: sparse: expected restricted __le32 [usertype]
arch/arm64/net/bpf_jit_comp.c:121:38: sparse: got unsigned int const [usertype] data
>> arch/arm64/net/bpf_jit_comp.c:121:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] @@ got unsigned int const [usertype] data @@
arch/arm64/net/bpf_jit_comp.c:121:38: sparse: expected restricted __le32 [usertype]
arch/arm64/net/bpf_jit_comp.c:121:38: sparse: got unsigned int const [usertype] data
>> arch/arm64/net/bpf_jit_comp.c:3071:17: sparse: sparse: non size-preserving pointer to integer cast
>> arch/arm64/net/bpf_jit_comp.c:3071:17: sparse: sparse: non size-preserving integer to pointer cast
vim +121 arch/arm64/net/bpf_jit_comp.c
117
118 static inline void emit_u32_data(const u32 data, struct jit_ctx *ctx)
119 {
120 if (ctx->image != NULL && ctx->write)
> 121 ctx->image[ctx->idx] = data;
122
123 ctx->idx++;
124 }
125
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists