From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC2DFC83F03 for ; Fri, 4 Jul 2025 21:19:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 72B206B8070; Fri, 4 Jul 2025 17:19:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 701916B8067; Fri, 4 Jul 2025 17:19:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 63EEB6B8070; Fri, 4 Jul 2025 17:19:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 546D26B8067 for ; Fri, 4 Jul 2025 17:19:49 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C7BF4C025F for ; Fri, 4 Jul 2025 21:19:48 +0000 (UTC) X-FDA: 83627849256.18.2084E17 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by imf19.hostedemail.com (Postfix) with ESMTP id F3EF41A000B for ; Fri, 4 Jul 2025 21:19:45 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IULZuAsw; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1751663986; a=rsa-sha256; cv=none; b=WmqQJ1eL2jLK9/nqiACBFXkLnWNT49UXCXp+McwD/Coy774ixD8Q0BFcLZfQ/PhHx/fYHX 1pbgcxO7gPHzK3XmM0W3bTY7/qq69VQJMp+a2Kvda2kq3gwFPBhofZTVUspLjdwoDguBoe vz/+KrhlgzosVE14ikI3hWOEM2yF7C0= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IULZuAsw; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1751663986; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=anQUoWJguTcUsvNQFIsF3slUClGvlDuWjDnr0v/JDGY=; b=ez0GoEm1MdnKZoxBbJVYbfxzrwVkbINmx5NvPRQQyRpA/0TbjdiiUG66kLDqIapqkQIKWM vMazfuu+1+CBN8wqHszatDEq6tRK1tHjOwvhFTWnUkZS54MW+kGwOnf0whnMxuWmO4gFpa y9NvDnctCWYBQ8A84mlE/aTOMy0tLpU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751663986; x=1783199986; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DQL5r67Qu/34vn2qT6B5dU9fn3aC9sM/wv7oTD4DDII=; b=IULZuAswpX3hhUn194tJF811QQbFnJb6aAGeyc3IQbUzipQJX4p2WwDQ BVTFz/a1FNMOozd5u+qDBQbQrDwywmRpEk0FlsHaWoatFQDDf0jUCC6gV EKUyeG0nz4nFyqK3W0P+4TVN4WvtuFOnrbl9yNRwMHByNo5+06Y0WBQYY TNE4qpl/nKoa89lMBVlurrJ+fVOm7MhV6ioagOYwfw6YQ+KSFQSoz6Sa0 h2STM6ES1HrgdKzGJGlTU3YrlOwqSMNitQKmnMLpq/Ecw9G/33d8OeLzK r98ycE81RjSd8H6jG1qto/hlWMnGvXAWt48+F61PGLSA3rLjKDHAwx5+e g==; X-CSE-ConnectionGUID: t42QhdjTQoSnuSYGG1T57Q== X-CSE-MsgGUID: cMGGuxCHSi+c1ROJv/NjCw== X-IronPort-AV: E=McAfee;i="6800,10657,11484"; a="65444661" X-IronPort-AV: E=Sophos;i="6.16,288,1744095600"; d="scan'208";a="65444661" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 14:19:44 -0700 X-CSE-ConnectionGUID: dWI3YPAcRp+t0kOr0cMeOg== X-CSE-MsgGUID: l41/JSsfSMeigNYlw4sxeA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,288,1744095600"; d="scan'208";a="159265596" Received: from lkp-server01.sh.intel.com (HELO 0b2900756c14) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 04 Jul 2025 14:19:41 -0700 Received: from kbuild by 0b2900756c14 with local (Exim 4.96) (envelope-from ) id 1uXnop-000459-15; Fri, 04 Jul 2025 21:19:39 +0000 Date: Sat, 5 Jul 2025 05:19:34 +0800 From: kernel test robot To: lizhe.67@bytedance.com, alex.williamson@redhat.com, akpm@linux-foundation.org, david@redhat.com, peterx@redhat.com, jgg@ziepe.ca Cc: oe-kbuild-all@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, lizhe.67@bytedance.com Subject: Re: [PATCH v2 1/5] mm: introduce num_pages_contiguous() Message-ID: <202507050529.EoMuEtd8-lkp@intel.com> References: <20250704062602.33500-2-lizhe.67@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250704062602.33500-2-lizhe.67@bytedance.com> X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: F3EF41A000B X-Stat-Signature: imy7eayxtcaypuw657rqkawwfjhen5ry X-R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iPWDB5/77APbzXq8gcxOjr5THOCylx2OvFYlAhtyONRA34iHcHdY9kHnScSkS0QBS6mmrhrBSL9iXFASYRdeiHIAJ3fTwuRqiPk3evlue+srVW4Wu0gk1QDYN548OXWKExfdDlBF08bSVJezp4dkCZAHWW86tS38mlKQ9r5vku83Y9R6kdaxmbSAkg0NQzGohTKkD9yYlUMJXprqSNNZpjKWjaL4PlYHFd3/OwfJfBrnxQoAm64Y2wnEjD4YIzoXDYCzVOEyFuR2w1Qc75Et2GQ1eEfbswyl63b1kexH908+IzOF/IyGVAzGaN/BzaPzWrUBA/N1oqRi5vkyQROOUHga/lVU44G9hW0NZ42tEpwIrS0yN2lK80UEkPHbZhFyW5a5MtUA8+n8jAEK9kKM= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi, kernel test robot noticed the following build errors: [auto build test ERROR on awilliam-vfio/next] [also build test ERROR on awilliam-vfio/for-linus akpm-mm/mm-everything linus/master v6.16-rc4 next-20250704] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/lizhe-67-bytedance-com/mm-introduce-num_pages_contiguous/20250704-142948 base: https://github.com/awilliam/linux-vfio.git next patch link: https://lore.kernel.org/r/20250704062602.33500-2-lizhe.67%40bytedance.com patch subject: [PATCH v2 1/5] mm: introduce num_pages_contiguous() config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250705/202507050529.EoMuEtd8-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250705/202507050529.EoMuEtd8-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/202507050529.EoMuEtd8-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/sh/include/asm/page.h:160, from arch/sh/include/asm/thread_info.h:13, from include/linux/thread_info.h:60, from include/asm-generic/preempt.h:5, from ./arch/sh/include/generated/asm/preempt.h:1, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/mm.h:7, from arch/sh/kernel/asm-offsets.c:14: include/linux/mm.h: In function 'num_pages_contiguous': >> include/asm-generic/memory_model.h:48:21: error: implicit declaration of function 'page_to_section'; did you mean 'present_section'? [-Wimplicit-function-declaration] 48 | int __sec = page_to_section(__pg); \ | ^~~~~~~~~~~~~~~ include/asm-generic/memory_model.h:53:32: note: in definition of macro '__pfn_to_page' 53 | ({ unsigned long __pfn = (pfn); \ | ^~~ include/asm-generic/memory_model.h:65:21: note: in expansion of macro '__page_to_pfn' 65 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/mm.h:200:38: note: in expansion of macro 'page_to_pfn' 200 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) | ^~~~~~~~~~~ include/linux/mm.h:221:33: note: in expansion of macro 'nth_page' 221 | if (pages[i] != nth_page(first_page, i)) | ^~~~~~~~ include/linux/mm.h: At top level: >> include/linux/mm.h:2002:29: error: conflicting types for 'page_to_section'; have 'long unsigned int(const struct page *)' 2002 | static inline unsigned long page_to_section(const struct page *page) | ^~~~~~~~~~~~~~~ include/asm-generic/memory_model.h:48:21: note: previous implicit declaration of 'page_to_section' with type 'int()' 48 | int __sec = page_to_section(__pg); \ | ^~~~~~~~~~~~~~~ include/asm-generic/memory_model.h:53:32: note: in definition of macro '__pfn_to_page' 53 | ({ unsigned long __pfn = (pfn); \ | ^~~ include/asm-generic/memory_model.h:65:21: note: in expansion of macro '__page_to_pfn' 65 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/mm.h:200:38: note: in expansion of macro 'page_to_pfn' 200 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) | ^~~~~~~~~~~ include/linux/mm.h:221:33: note: in expansion of macro 'nth_page' 221 | if (pages[i] != nth_page(first_page, i)) | ^~~~~~~~ make[3]: *** [scripts/Makefile.build:98: arch/sh/kernel/asm-offsets.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1274: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:248: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +2002 include/linux/mm.h bf4e8902ee5080 Daniel Kiper 2011-05-24 2001 aa462abe8aaf21 Ian Campbell 2011-08-17 @2002 static inline unsigned long page_to_section(const struct page *page) d41dee369bff3b Andy Whitcroft 2005-06-23 2003 { d41dee369bff3b Andy Whitcroft 2005-06-23 2004 return (page->flags >> SECTIONS_PGSHIFT) & SECTIONS_MASK; d41dee369bff3b Andy Whitcroft 2005-06-23 2005 } 308c05e35e3517 Christoph Lameter 2008-04-28 2006 #endif d41dee369bff3b Andy Whitcroft 2005-06-23 2007 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki