[arm-integrator:kernel-in-vmalloc-v5.18-rc1 18/34] mm/filemap.c:1071:25: sparse: sparse: Using plain integer as NULL pointer
From: kernel test robot
Date: Sun Jun 05 2022 - 04:16:04 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.18-rc1
head: 1aafd4ba7b78b4ac0013a48a35252654852cb7ab
commit: 2516f41917ea4e10dce7e308dd9d1b2e31b65ad5 [18/34] ARM: mm: Make virt_to_pfn() a static inline
config: arm-randconfig-s031-20220605 (https://download.01.org/0day-ci/archive/20220605/202206051647.vDYWTWQF-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-18-g56afb504-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=2516f41917ea4e10dce7e308dd9d1b2e31b65ad5
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.18-rc1
git checkout 2516f41917ea4e10dce7e308dd9d1b2e31b65ad5
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
>> mm/filemap.c:1071:25: sparse: sparse: Using plain integer as NULL pointer
--
>> fs/crypto/bio.c:69:41: sparse: sparse: Using plain integer as NULL pointer
fs/crypto/bio.c:161:51: sparse: sparse: Using plain integer as NULL pointer
--
>> fs/iomap/direct-io.c:184:29: sparse: sparse: Using plain integer as NULL pointer
--
>> security/keys/encrypted-keys/encrypted.c:475:32: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/md/dm-crypt.c:758:27: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/md/dm-kcopyd.c:396:31: sparse: sparse: Using plain integer as NULL pointer
--
>> block/blk-lib.c:203:53: sparse: sparse: Using plain integer as NULL pointer
vim +1071 mm/filemap.c
^1da177e4c3f415 Linus Torvalds 2005-04-16 1057
62906027091f1d0 Nicholas Piggin 2016-12-25 1058 void __init pagecache_init(void)
^1da177e4c3f415 Linus Torvalds 2005-04-16 1059 {
62906027091f1d0 Nicholas Piggin 2016-12-25 1060 int i;
62906027091f1d0 Nicholas Piggin 2016-12-25 1061
62906027091f1d0 Nicholas Piggin 2016-12-25 1062 for (i = 0; i < PAGE_WAIT_TABLE_SIZE; i++)
df4d4f127394953 Matthew Wilcox (Oracle 2021-01-16 1063) init_waitqueue_head(&folio_wait_table[i]);
^1da177e4c3f415 Linus Torvalds 2005-04-16 1064
62906027091f1d0 Nicholas Piggin 2016-12-25 1065 page_writeback_init();
56a8c8eb1eaf212 Hugh Dickins 2022-03-22 1066
56a8c8eb1eaf212 Hugh Dickins 2022-03-22 1067 /*
56a8c8eb1eaf212 Hugh Dickins 2022-03-22 1068 * tmpfs uses the ZERO_PAGE for reading holes: it is up-to-date,
56a8c8eb1eaf212 Hugh Dickins 2022-03-22 1069 * and splice's page_cache_pipe_buf_confirm() needs to see that.
56a8c8eb1eaf212 Hugh Dickins 2022-03-22 1070 */
56a8c8eb1eaf212 Hugh Dickins 2022-03-22 @1071 SetPageUptodate(ZERO_PAGE(0));
^1da177e4c3f415 Linus Torvalds 2005-04-16 1072 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 1073
:::::: The code at line 1071 was first introduced by commit
:::::: 56a8c8eb1eaf21261be8cdc4e3715239ac087342 tmpfs: do not allocate pages on read
:::::: TO: Hugh Dickins <hughd@xxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://01.org/lkp