mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.18-rc1 18/34] mm/filemap.c:1071:25: sparse: sparse: Using plain integer as NULL pointer
Date: Sun, 5 Jun 2022 16:06:41 +0800	[thread overview]
Message-ID: <202206051647.vDYWTWQF-lkp@intel.com> (raw)

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@intel.com/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@intel.com>


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@google.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-06-05  8:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202206051647.vDYWTWQF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®