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 C564CC3DA7F for ; Thu, 15 Aug 2024 04:09:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 23C776B007B; Thu, 15 Aug 2024 00:09:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1ECE66B0082; Thu, 15 Aug 2024 00:09:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B4706B0083; Thu, 15 Aug 2024 00:09:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E1EB16B007B for ; Thu, 15 Aug 2024 00:09:01 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 40D8740E7C for ; Thu, 15 Aug 2024 04:09:01 +0000 (UTC) X-FDA: 82453149282.03.C8431D9 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf19.hostedemail.com (Postfix) with ESMTP id 8E39A1A000E for ; Thu, 15 Aug 2024 04:08:58 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ZIJE00PY; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723694842; 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=NVDP1udvJo79ygBjuGCpYKk0L2EXPUaNPmwey8xY4J8=; b=GfnmbxMr51DE+p7cy4tK0xRJ5l5OD9+wL2fXppmP0Ygiy4CNaHEZWahPQgEK+6KIkfexUw USj7CZeMh2alh4UM5um6lNrOYMpX4fBsR0y8qzr+ZI8fn+mrh8HO2YwKaP6DCo5YhfKHnh gOgJk5yvlXGKVWfrifA8h0YmIP66Sqw= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ZIJE00PY; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723694843; a=rsa-sha256; cv=none; b=B5MUaoYS+40Dv559gYT0jePpSuW+xoRi44JF7MU9h+/wJarvQkiY434LOe0O+qqlBFL4ZE ljbBQmf6MRFoejg1aigf9CnX26XUMGb9nWF35p4fffC536JbXD9oPyp1cyMZsKmqPqcjM4 zkqls4PLFg9G8au/Pnne4WNt8JjEqyA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723694938; x=1755230938; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9z4AfTVcoGr13kMqfy68br6N15Zt4R0Ze/WP37ZrMSw=; b=ZIJE00PYAU76QT5I+K9vflTMqj761wDFYJ61jJD2F0PeSYpb3EkZ7yjK YvQGIBAQ0mnK9MELqbzLiIieVrdoIhC3LtCGC1V/+7/rzpLn+nFABMP33 VQatvcrRNLqcMBdc60cW7STDdN75BkjcZKDHZNGyESjZJfGMdeTpjK8tJ k+tAlyUYz24LZQIsWUUgx4YlwimJwANKl0pQ0iQ2A8DzBvA0pEDYPObpT Aayme+3npEtShy09dcrUOQirZ+e6nHbaVmD/V1pWCEpgyp7S87MHn+VdI 96BtHWzyO41NQYbwJNvuB/g4+zqo5MqhfL3TVbOFIYUoTvdFQlZdUajcw A==; X-CSE-ConnectionGUID: WTCxrbmTSu+ulZg7uP9PPg== X-CSE-MsgGUID: FsKrThn6R162a0nk+aAUzg== X-IronPort-AV: E=McAfee;i="6700,10204,11164"; a="47344020" X-IronPort-AV: E=Sophos;i="6.10,147,1719903600"; d="scan'208";a="47344020" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2024 21:08:57 -0700 X-CSE-ConnectionGUID: GN/Tr+wuRC2pLnQX3oZfVQ== X-CSE-MsgGUID: PeZUkHPzRwGOa+UQ1jnVog== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,147,1719903600"; d="scan'208";a="96751066" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 21:08:55 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1seRnA-0003Ak-17; Thu, 15 Aug 2024 04:08:52 +0000 Date: Thu, 15 Aug 2024 12:08:51 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, linux-arch@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, "Matthew Wilcox (Oracle)" , linux-s390@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org Subject: Re: [PATCH 2/5] x86: Remove custom definition of mk_pte() Message-ID: <202408151133.BaOdxDkR-lkp@intel.com> References: <20240814154427.162475-3-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240814154427.162475-3-willy@infradead.org> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8E39A1A000E X-Stat-Signature: nchwshynx44s65s4mgjazxkwc79s3yg3 X-Rspam-User: X-HE-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esfJ+XBMnnZBuLnP/JZQAU4g4nJVKNHpunE/Y93/Bs8y7R/i19N4hmbA4Q86D3jpL4BaqhqtnsUKUt52yuq5oDOD5+4i3rb7T6xdufpvmEGvViL6J9qsvW/38z5VgSWE29p1lJY/LF8UjIsFOWWRq7PV1H0rmG+dTu61SUYUV2MnUVQtSSRe/g7IyUG9tz5AFCSDa1TW3HpWZUGZ4xzKwjMD42rl06CO3usZzi9MQV8oQrw21jq2cLkJSMYKvY9vja81fG5OGk45DJAOiCO+AKSAftq5NShTfxaRBki0vknnXo0pRuqFyPN0eyZ0odYM9Y5saVupXRffpafwbWdqTgQsNZENAz+SITrzoNoX+T8+9vP4MHNAUDrtvd4JyCytS/3q4FbzjUNXQbe2wy37Nhrn2f3fS/TMYVtjvK3Vy/DdRIV1azodXfrpHvJQN2xIJDNmSWd5rKgTyZK3zPZ95P7yame2Q4VkunrFRfnA= 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 Matthew, kernel test robot noticed the following build errors: [auto build test ERROR on geert-m68k/for-next] [also build test ERROR on geert-m68k/for-linus uml/next linus/master v6.11-rc3 next-20240814] [cannot apply to uml/fixes] [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/Matthew-Wilcox-Oracle/mm-Introduce-a-common-definition-of-mk_pte/20240815-001852 base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next patch link: https://lore.kernel.org/r/20240814154427.162475-3-willy%40infradead.org patch subject: [PATCH 2/5] x86: Remove custom definition of mk_pte() config: x86_64-buildonly-randconfig-003-20240815 (https://download.01.org/0day-ci/archive/20240815/202408151133.BaOdxDkR-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240815/202408151133.BaOdxDkR-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/202408151133.BaOdxDkR-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:21: In file included from include/linux/mm.h:30: >> include/linux/pgtable.h:47:17: error: call to undeclared function 'page_to_section'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | return pfn_pte(page_to_pfn(page), pgprot); | ^ include/asm-generic/memory_model.h:64:21: note: expanded from macro 'page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^ include/asm-generic/memory_model.h:47:14: note: expanded from macro '__page_to_pfn' 47 | int __sec = page_to_section(__pg); \ | ^ include/linux/pgtable.h:47:17: note: did you mean '__nr_to_section'? include/asm-generic/memory_model.h:64:21: note: expanded from macro 'page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^ include/asm-generic/memory_model.h:47:14: note: expanded from macro '__page_to_pfn' 47 | int __sec = page_to_section(__pg); \ | ^ include/linux/mmzone.h:1853:35: note: '__nr_to_section' declared here 1853 | static inline struct mem_section *__nr_to_section(unsigned long nr) | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:21: >> include/linux/mm.h:1904:29: error: static declaration of 'page_to_section' follows non-static declaration 1904 | static inline unsigned long page_to_section(const struct page *page) | ^ include/linux/pgtable.h:47:17: note: previous implicit declaration is here 47 | return pfn_pte(page_to_pfn(page), pgprot); | ^ include/asm-generic/memory_model.h:64:21: note: expanded from macro 'page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^ include/asm-generic/memory_model.h:47:14: note: expanded from macro '__page_to_pfn' 47 | int __sec = page_to_section(__pg); \ | ^ 2 errors generated. make[3]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1 shuffle=262036656 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1208: prepare0] Error 2 shuffle=262036656 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:240: __sub-make] Error 2 shuffle=262036656 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:240: __sub-make] Error 2 shuffle=262036656 make: Target 'prepare' not remade because of errors. vim +/page_to_section +47 include/linux/pgtable.h 1c2f7d14d84f767 Anshuman Khandual 2021-06-30 43 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 44) #ifndef mk_pte 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 45) static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 46) { 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 @47) return pfn_pte(page_to_pfn(page), pgprot); 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 48) } 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 49) #endif 9353c36cfa235ae Matthew Wilcox (Oracle 2024-08-14 50) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki