All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel/bpf/arraymap.c:273:16: warning: cast from pointer to integer of different size
@ 2026-06-09  7:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-09  7:27 UTC (permalink / raw)
  To: Leon Hwang; +Cc: oe-kbuild-all, 0day robot

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-09  7:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09  7:27 kernel/bpf/arraymap.c:273:16: warning: cast from pointer to integer of different size kernel test robot

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.