All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark:arm64/fixmap/cleanup 1/2] arch/arm64/mm/fixmap.c:199:24: warning: variable 'bm_pudp' set but not used
@ 2023-03-21 23:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-21 23:20 UTC (permalink / raw)
  To: Mark Rutland; +Cc: oe-kbuild-all

Hi Mark,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/fixmap/cleanup
head:   fcd13b4affdf2ed9d27efcf97edb97ad3a708bfc
commit: c8b639d4c72d33cd15c5a9d97fbc9eee29edb874 [1/2] arm64: mm: move fixmap code to its own file
config: arm64-randconfig-c023-20230319 (https://download.01.org/0day-ci/archive/20230322/202303220723.YWDuOSbu-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=c8b639d4c72d33cd15c5a9d97fbc9eee29edb874
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/fixmap/cleanup
        git checkout c8b639d4c72d33cd15c5a9d97fbc9eee29edb874
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/mm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303220723.YWDuOSbu-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/arm64/mm/fixmap.c: In function 'fixmap_copy':
>> arch/arm64/mm/fixmap.c:199:24: warning: variable 'bm_pudp' set but not used [-Wunused-but-set-variable]
     199 |                 pud_t *bm_pudp;
         |                        ^~~~~~~


vim +/bm_pudp +199 arch/arm64/mm/fixmap.c

   182	
   183	/*
   184	 * Copy the fixmap region into a new pgdir.
   185	 */
   186	void __init fixmap_copy(pgd_t *pgdir)
   187	{
   188		if (!READ_ONCE(pgd_val(*pgd_offset_pgd(pgdir, FIXADDR_START)))) {
   189			/*
   190			 * The fixmap falls in a separate pgd to the kernel, and doesn't
   191			 * live in the carveout for the swapper_pg_dir. We can simply
   192			 * re-use the existing dir for the fixmap.
   193			 */
   194			set_pgd(pgd_offset_pgd(pgdir, FIXADDR_START),
   195				READ_ONCE(*pgd_offset_k(FIXADDR_START)));
   196		} else if (CONFIG_PGTABLE_LEVELS > 3) {
   197			pgd_t *bm_pgdp;
   198			p4d_t *bm_p4dp;
 > 199			pud_t *bm_pudp;

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-03-21 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-21 23:20 [mark:arm64/fixmap/cleanup 1/2] arch/arm64/mm/fixmap.c:199:24: warning: variable 'bm_pudp' 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.