[deller-parisc:5.17-vdso-mini-3 1/1] arch/parisc/kernel/vdso.c:58:38: warning: variable 'vdso_mapping_len' set but not used

From: kernel test robot
Date: Fri Jan 28 2022 - 16:35:06 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git 5.17-vdso-mini-3
head: 8d7e3770fb1fb6c01147f8ebf2914cd2037fac16
commit: 8d7e3770fb1fb6c01147f8ebf2914cd2037fac16 [1/1] parisc: Add vDSO support
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220129/202201290517.FYpZzkIz-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 11.2.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/deller/parisc-linux.git/commit/?id=8d7e3770fb1fb6c01147f8ebf2914cd2037fac16
git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
git fetch --no-tags deller-parisc 5.17-vdso-mini-3
git checkout 8d7e3770fb1fb6c01147f8ebf2914cd2037fac16
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

arch/parisc/kernel/vdso.c: In function 'arch_setup_additional_pages':
>> arch/parisc/kernel/vdso.c:58:38: warning: variable 'vdso_mapping_len' set but not used [-Wunused-but-set-variable]
58 | unsigned long vdso_text_len, vdso_mapping_len;
| ^~~~~~~~~~~~~~~~


vim +/vdso_mapping_len +58 arch/parisc/kernel/vdso.c

57
> 58 unsigned long vdso_text_len, vdso_mapping_len;
59 unsigned long vdso_text_start;
60 struct vm_special_mapping *vdso_mapping;
61 struct mm_struct *mm = current->mm;
62 struct vm_area_struct *vma;
63 int rc;
64
65 if (mmap_write_lock_killable(mm))
66 return -EINTR;
67

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx