From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 0DDF420FE; Sun, 2 Jul 2023 13:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688304462; x=1719840462; h=date:from:to:cc:subject:message-id:mime-version; bh=I4RGcFfF+g/0roxDgi4+b7sM5Rv7gJ8tRkl8SFre26g=; b=gXQFROIXl854xt+DGAxJagmEyw5wGYIVR7LEN80/91Yt3Al3h0Zjuym9 1kTPg635CbA3ZZfJacz2l7tnCxxpP5CpUxcmvPTcSjDpuhPYbm9tAJv2W PfFYF2z1v36hkkBLDNFr7P7zauJessuRYhplIR88G04tWrv9sA46XvLrf fE7uy8oHHh11cLKEXw+QQQLQgkQ/tk6Yaixoe9BRN770gljVrMbBcjPq6 Ocnn/h9XAz7UyjLNbyywfGgHfAG24GIe5zWPnMPla5FL+fAxfCSkHXFBX Poi/CIFczgPM23wz7RDef18+sNXnA0iiPKdv40RvBlZg+wFNLqOUGfSEQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="393440000" X-IronPort-AV: E=Sophos;i="6.01,176,1684825200"; d="scan'208";a="393440000" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2023 06:27:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10759"; a="964886598" X-IronPort-AV: E=Sophos;i="6.01,176,1684825200"; d="scan'208";a="964886598" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 02 Jul 2023 06:27:39 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qFx75-000GfT-0h; Sun, 02 Jul 2023 13:27:39 +0000 Date: Sun, 2 Jul 2023 21:26:51 +0800 From: kernel test robot To: Yunsheng Lin Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [linyunsheng:vhost-page-frag 1/2] include/linux/mm.h:1169:28: error: static declaration of 'virt_to_head_page' follows non-static declaration Message-ID: <202307022101.wW0u489f-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/gestionlin/linux.git vhost-page-frag head: 43d9a865a0a23c03923aae2db7a33d78be36c595 commit: 53f6f24c5ff57ba7933cab95bb643d725484ea38 [1/2] net: introduce page_frag_cache_drain() config: arm-randconfig-r046-20230702 (https://download.01.org/0day-ci/archive/20230702/202307022101.wW0u489f-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230702/202307022101.wW0u489f-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307022101.wW0u489f-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:162:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 162 | _SIG_SET_BINOP(sigandnsets, _sig_andn) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:139:3: note: expanded from macro '_SIG_SET_BINOP' 139 | r->sig[3] = op(a3, b3); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:976: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:162:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 162 | _SIG_SET_BINOP(sigandnsets, _sig_andn) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP' 140 | r->sig[2] = op(a2, b2); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:976: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:186:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 186 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:173:27: note: expanded from macro '_SIG_SET_OP' 173 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ include/linux/signal.h:185:24: note: expanded from macro '_sig_not' 185 | #define _sig_not(x) (~(x)) | ^ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:976: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:186:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 186 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:173:10: note: expanded from macro '_SIG_SET_OP' 173 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:976: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:186:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 186 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:20: note: expanded from macro '_SIG_SET_OP' 174 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/linux/signal.h:185:24: note: expanded from macro '_sig_not' 185 | #define _sig_not(x) (~(x)) | ^ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:976: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:186:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 186 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:3: note: expanded from macro '_SIG_SET_OP' 174 | set->sig[2] = op(set->sig[2]); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: >> include/linux/mm.h:1169:28: error: static declaration of 'virt_to_head_page' follows non-static declaration 1169 | static inline struct page *virt_to_head_page(const void *x) | ^ include/linux/gfp.h:316:26: note: previous implicit declaration is here 316 | __page_frag_cache_drain(virt_to_head_page(nc->va), nc->pagecnt_bias); | ^ 28 warnings and 3 errors generated. make[2]: *** [scripts/Makefile.build:114: arch/arm/kernel/asm-offsets.s] Error 1 shuffle=1564733078 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:1287: prepare0] Error 2 shuffle=1564733078 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:226: __sub-make] Error 2 shuffle=1564733078 make: Target 'prepare' not remade because of errors. vim +/virt_to_head_page +1169 include/linux/mm.h 70b50f94f1644e Andrea Arcangeli 2011-11-02 1168 b49af68ff9fc5d Christoph Lameter 2007-05-06 @1169 static inline struct page *virt_to_head_page(const void *x) b49af68ff9fc5d Christoph Lameter 2007-05-06 1170 { b49af68ff9fc5d Christoph Lameter 2007-05-06 1171 struct page *page = virt_to_page(x); ccaafd7fd039ae Joonsoo Kim 2015-02-10 1172 1d798ca3f16437 Kirill A. Shutemov 2015-11-06 1173 return compound_head(page); b49af68ff9fc5d Christoph Lameter 2007-05-06 1174 } b49af68ff9fc5d Christoph Lameter 2007-05-06 1175 :::::: The code at line 1169 was first introduced by commit :::::: b49af68ff9fc5d6e0d96704a1843968b91cc73c6 Add virt_to_head_page and consolidate code in slab and slub :::::: TO: Christoph Lameter :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki