* [rppt:mm_init/mem_init/v0.1 2/13] arch/um/kernel/physmem.c:27:41: warning: variable 'total_pages' set but not used
@ 2025-03-04 14:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-04 14:41 UTC (permalink / raw)
To: Mike Rapoport (Microsoft); +Cc: llvm, oe-kbuild-all, Mike Rapoport
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git mm_init/mem_init/v0.1
head: 55eb95380e481029d5e7b8b442b0fdfbe79a9d3e
commit: 6daa1f5d8ea5504c283f562a925f9b8b0d1602d2 [2/13] dev: arch, mm: set max_mapnr when allocating memory map
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20250304/202503042228.XJgKY4mi-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250304/202503042228.XJgKY4mi-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/202503042228.XJgKY4mi-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/um/kernel/physmem.c:27:41: warning: variable 'total_pages' set but not used [-Wunused-but-set-variable]
27 | unsigned long phys_pages, iomem_pages, total_pages;
| ^
1 warning generated.
vim +/total_pages +27 arch/um/kernel/physmem.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 24
cd05cbed42b731 Tiwei Bie 2024-09-16 25 void __init mem_total_pages(unsigned long physmem, unsigned long iomem)
^1da177e4c3f41 Linus Torvalds 2005-04-16 26 {
cd05cbed42b731 Tiwei Bie 2024-09-16 @27 unsigned long phys_pages, iomem_pages, total_pages;
^1da177e4c3f41 Linus Torvalds 2005-04-16 28
^1da177e4c3f41 Linus Torvalds 2005-04-16 29 phys_pages = physmem >> PAGE_SHIFT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 30 iomem_pages = iomem >> PAGE_SHIFT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 31
cd05cbed42b731 Tiwei Bie 2024-09-16 32 total_pages = phys_pages + iomem_pages;
^1da177e4c3f41 Linus Torvalds 2005-04-16 33 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 34
:::::: The code at line 27 was first introduced by commit
:::::: cd05cbed42b73168b0772b83bc24769fea3871bf um: Remove highmem leftovers
:::::: TO: Tiwei Bie <tiwei.btw@antgroup.com>
:::::: CC: Johannes Berg <johannes.berg@intel.com>
--
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:[~2025-03-04 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04 14:41 [rppt:mm_init/mem_init/v0.1 2/13] arch/um/kernel/physmem.c:27:41: warning: variable 'total_pages' set but not used 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.