All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android15-6.6 3/3] mm/memblock.c:2327:28: warning: cast to pointer from integer of different size
@ 2026-09-18  3:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-18  3:38 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

Hi Jaewon,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android15-6.6
head:   cdc3592a0ce26ec13098dd267d8c47b97aa03b49
commit: 3368d09174c6e8f3759bd201dbe6ca20ed0cd0e0 [3/3] FROMLIST: memblock: introduce memsize showing reserved memory
config: arm-randconfig-r1300-20260918 (https://download.01.org/0day-ci/archive/20260918/202609181052.UYPD9SXQ-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260918/202609181052.UYPD9SXQ-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/202609181052.UYPD9SXQ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   mm/memblock.c: In function 'memblock_memsize_show':
>> mm/memblock.c:2327:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2327 |                            (void *)base, (void *)end,
         |                            ^
   mm/memblock.c:2327:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    2327 |                            (void *)base, (void *)end,
         |                                          ^


vim +2327 mm/memblock.c

  2308	
  2309	static int memblock_memsize_show(struct seq_file *m, void *private)
  2310	{
  2311		int i;
  2312		struct memsize_rgn_struct *rgn;
  2313		unsigned long reserved = 0, reusable = 0;
  2314	
  2315		sort(memsize_rgn, memsize_rgn_count,
  2316		     sizeof(memsize_rgn[0]), memsize_rgn_cmp, NULL);
  2317		for (i = 0; i < memsize_rgn_count; i++) {
  2318			phys_addr_t base, end;
  2319			long size;
  2320	
  2321			rgn = &memsize_rgn[i];
  2322			base = rgn->base;
  2323			size = rgn->size;
  2324			end = base + size;
  2325	
  2326			seq_printf(m, "0x%pK-0x%pK 0x%08lx ( %7lu KB ) %s %s %s\n",
> 2327				   (void *)base, (void *)end,
  2328				   size, DIV_ROUND_UP(size, SZ_1K),
  2329				   rgn->nomap ? "nomap" : "  map",
  2330				   rgn->reusable ? "reusable" : "unusable",
  2331				   rgn->name);
  2332			if (rgn->reusable)
  2333				reusable += (unsigned long)rgn->size;
  2334			else
  2335				reserved += (unsigned long)rgn->size;
  2336		}
  2337	
  2338		seq_puts(m, "\n");
  2339		seq_printf(m, " .unusable  : %7lu KB\n",
  2340			   DIV_ROUND_UP(reserved, SZ_1K));
  2341		seq_printf(m, " .reusable  : %7lu KB\n",
  2342			   DIV_ROUND_UP(reusable, SZ_1K));
  2343		return 0;
  2344	}
  2345	

--
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-09-18  3:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18  3:38 [android-common:android15-6.6 3/3] mm/memblock.c:2327:28: warning: cast to pointer from 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.