[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206111452.dJUSUYyl-lkp@intel.com>
Date: Sat, 11 Jun 2022 14:44:12 +0800
From: kernel test robot <lkp@...el.com>
To: David Howells <dhowells@...hat.com>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 29/57]
include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument
1 (different modifiers)
tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-linked-list
head: c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8
commit: f951c9604853872cf088bb3dbf7d49e3f96b090d [29/57] mm: Make some folio function arguments const
config: x86_64-randconfig-s022 (https://download.01.org/0day-ci/archive/20220611/202206111452.dJUSUYyl-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-30-g92122700-dirty
# https://github.com/ammarfaizi2/linux-block/commit/f951c9604853872cf088bb3dbf7d49e3f96b090d
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-linked-list
git checkout f951c9604853872cf088bb3dbf7d49e3f96b090d
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/netfs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
fs/netfs/direct_read.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
--
fs/netfs/misc.c: note: in included file (through include/linux/mmzone.h, include/linux/swap.h):
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
--
fs/netfs/buffered_read.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
--
fs/netfs/io.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/umh.h, include/linux/kmod.h, ...):
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
>> include/linux/page-flags.h:788:9: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct page *page @@ got struct page const *page @@
include/linux/page-flags.h:788:9: sparse: expected struct page *page
include/linux/page-flags.h:788:9: sparse: got struct page const *page
vim +788 include/linux/page-flags.h
e7d324850bfcb3 Muchun Song 2022-03-22 785
f951c960485387 David Howells 2022-06-08 786 static __always_inline int PageHead(const struct page *page)
e7d324850bfcb3 Muchun Song 2022-03-22 787 {
e7d324850bfcb3 Muchun Song 2022-03-22 @788 PF_POISONED_CHECK(page);
e7d324850bfcb3 Muchun Song 2022-03-22 789 return test_bit(PG_head, &page->flags) && !page_is_fake_head(page);
e7d324850bfcb3 Muchun Song 2022-03-22 790 }
e7d324850bfcb3 Muchun Song 2022-03-22 791
:::::: The code at line 788 was first introduced by commit
:::::: e7d324850bfcb30df563d144c0363cc44595277d mm: hugetlb: free the 2nd vmemmap page associated with each HugeTLB page
:::::: TO: Muchun Song <songmuchun@...edance.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists