From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB0E164F for ; Sat, 11 Jun 2022 03:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654918863; x=1686454863; h=date:from:to:cc:subject:message-id:mime-version; bh=agqgZT7RLJJ/GHDSQgEfAwn3LSYYH6TOzTJNHpRnA9s=; b=WzzOXZ9NzmzqLXuOzunVV061DrtXMFY+lXcWwBlVGGVOV+rgRBE3pcRB 9Jt//GWsk8rzp69KdwlfrSJgnMGuW9V8lB1d1MV2XtrOf3uOInUEloH/L U96BYU6hOJsOlzZFSdjZhBYLO9LFSDJGpigbJ5Am6sHYN4DeIZOBbLC7e GEwDD3nAfl96h9cxqVCY3n+tmk3R1z20QRcZlTvvcoFJZul6alO7vQ66c F273IvusiSWWTc3z9jVZwhoFBa6C+l3Ii/hg/iXOkddh1+cWrwPxSA7bu H78UfHhjxTwwMG9AoPur9SJlon4YBBwlWWJLB+iFqdTxrHs+HCt0jk7yv g==; X-IronPort-AV: E=McAfee;i="6400,9594,10374"; a="257650059" X-IronPort-AV: E=Sophos;i="5.91,292,1647327600"; d="scan'208";a="257650059" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2022 20:41:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,292,1647327600"; d="scan'208";a="611004674" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 10 Jun 2022 20:41:00 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nzrzg-000IVl-8y; Sat, 11 Jun 2022 03:41:00 +0000 Date: Sat, 11 Jun 2022 11:40:56 +0800 From: kernel test robot To: David Howells Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 29/57] include/linux/page-flags.h:788:20: error: passing 'const struct page *' to parameter of type 'struct page *' discards qualifiers Message-ID: <202206111140.r2gAQWTY-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: mips-randconfig-r033-20220610 (https://download.01.org/0day-ci/archive/20220611/202206111140.r2gAQWTY-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ff4abe755279a3a47cc416ef80dbc900d9a98a19) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mipsel-linux-gnu # 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 COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips prepare If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/mips/kernel/asm-offsets.c:12: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:13: In file included from include/linux/list_lru.h:14: In file included from include/linux/xarray.h:15: In file included from include/linux/gfp.h:6: In file included from include/linux/mmzone.h:22: >> include/linux/page-flags.h:788:20: error: passing 'const struct page *' to parameter of type 'struct page *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] PF_POISONED_CHECK(page); ^~~~ include/linux/page-flags.h:370:41: note: expanded from macro 'PF_POISONED_CHECK' VM_BUG_ON_PGFLAGS(PagePoisoned(page), page); \ ^~~~ include/linux/mmdebug.h:94:60: note: expanded from macro 'VM_BUG_ON_PGFLAGS' #define VM_BUG_ON_PGFLAGS(cond, page) VM_BUG_ON_PAGE(cond, page) ^~~~ include/linux/mmdebug.h:21:14: note: expanded from macro 'VM_BUG_ON_PAGE' dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\ ^~~~ include/linux/mmdebug.h:12:29: note: passing argument to parameter 'page' here void dump_page(struct page *page, const char *reason); ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes] void output_ptreg_defines(void) ^ arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_ptreg_defines(void) ^ static arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes] void output_task_defines(void) ^ arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_task_defines(void) ^ static arch/mips/kernel/asm-offsets.c:92:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes] void output_thread_info_defines(void) ^ arch/mips/kernel/asm-offsets.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_info_defines(void) ^ static arch/mips/kernel/asm-offsets.c:108:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes] void output_thread_defines(void) ^ arch/mips/kernel/asm-offsets.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_thread_defines(void) ^ static arch/mips/kernel/asm-offsets.c:179:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes] void output_mm_defines(void) ^ arch/mips/kernel/asm-offsets.c:179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_mm_defines(void) ^ static arch/mips/kernel/asm-offsets.c:218:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes] void output_sc_defines(void) ^ arch/mips/kernel/asm-offsets.c:218:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_sc_defines(void) ^ static arch/mips/kernel/asm-offsets.c:253:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes] void output_signal_defined(void) ^ arch/mips/kernel/asm-offsets.c:253:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_signal_defined(void) ^ static arch/mips/kernel/asm-offsets.c:332:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes] void output_pm_defines(void) ^ arch/mips/kernel/asm-offsets.c:332:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void output_pm_defines(void) ^ static 8 warnings and 1 error generated. make[2]: *** [scripts/Makefile.build:117: arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1196: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. 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 :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp