mdwe_test.c:166:19: warning: variable 'p2' set but not used

From: kernel test robot
Date: Wed Apr 05 2023 - 02:26:09 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 76f598ba7d8e2bfb4855b5298caedd5af0c374a8
commit: 4cf1fe34fd18b752ae2403927277715d4444f331 kselftest: vm: add tests for memory-deny-write-execute
date: 9 weeks ago
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4cf1fe34fd18b752ae2403927277715d4444f331
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4cf1fe34fd18b752ae2403927277715d4444f331
make O=/tmp/kselftest headers
make O=/tmp/kselftest -C tools/testing/selftests

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

All warnings (new ones prefixed by >>):

mdwe_test.c: In function 'mdwe_mmap_FIXED':
>> mdwe_test.c:166:19: warning: variable 'p2' set but not used [-Wunused-but-set-variable]
166 | void *p, *p2;
| ^~

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