From: kernel test robot <lkp@intel.com>
To: Leon Hwang <leon.hwang@linux.dev>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: kernel/bpf/arraymap.c:273:16: warning: cast from pointer to integer of different size
Date: Tue, 09 Jun 2026 09:27:07 +0200 [thread overview]
Message-ID: <202606090909.TMZDeRdW-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/Leon-Hwang/bpf-Drop-duplicate-blank-lines-in-verifier/20260608-233454
head: a7ef4d11654fb50cefd814ffd633716a81162cab
commit: 990c3b195b0558afe66bdad9d07d745e7cb588a9 bpf: Introduce global percpu data
date: 16 hours ago
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260609/202606090909.TMZDeRdW-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260609/202606090909.TMZDeRdW-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606090909.TMZDeRdW-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/bpf/arraymap.c: In function 'percpu_array_map_direct_value_addr':
>> kernel/bpf/arraymap.c:273:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
273 | *imm = (u64) array->pptrs[0];
| ^
kernel/bpf/arraymap.c: In function 'percpu_array_map_direct_value_meta':
kernel/bpf/arraymap.c:280:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
280 | u64 base = (u64) array->pptrs[0];
| ^
vim +273 kernel/bpf/arraymap.c
261
262 static int percpu_array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, u32 off)
263 {
264 struct bpf_array *array = container_of(map, struct bpf_array, map);
265
266 if (map->max_entries != 1)
267 return -EOPNOTSUPP;
268 if (off >= map->value_size)
269 return -EINVAL;
270 if (!bpf_jit_supports_percpu_insn())
271 return -EOPNOTSUPP;
272
> 273 *imm = (u64) array->pptrs[0];
274 return 0;
275 }
276
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-09 7:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606090909.TMZDeRdW-lkp@intel.com \
--to=lkp@intel.com \
--cc=leon.hwang@linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.