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 00ACCC433EF for ; Sat, 18 Jun 2022 07:01:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16C246B0071; Sat, 18 Jun 2022 03:01:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 11BEA6B0072; Sat, 18 Jun 2022 03:01:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F259E6B0073; Sat, 18 Jun 2022 03:01:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id DFFBD6B0071 for ; Sat, 18 Jun 2022 03:01:14 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A73DF3561A for ; Sat, 18 Jun 2022 07:01:14 +0000 (UTC) X-FDA: 79590460068.06.781CE15 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf28.hostedemail.com (Postfix) with ESMTP id CE1C4C00B2 for ; Sat, 18 Jun 2022 07:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655535672; x=1687071672; h=date:from:to:cc:subject:message-id:mime-version; bh=a5KWv3E6CKzwzMbDpwTVKKaSpCmfaOdt+jeW0HaBjB4=; b=fGPWXNCCHzG+A8rEeZrF2nnKoiYAbuFsl5WKW8mp9xQxWpWk2NhcX5Hq W61Ft8RZvbQKwBehlLZFnN10Hpmp7m0GgD7wfNhgtfmgD4RFjrVGwBZXi ipa7J2LlNwCbt4rNiWPyi4yB3FZ45WNWwhtHhHm7GHZJr+mcNGrnSXtEh rTmaJH2zIl0iEKUEwBqC4Pmn20bEKud+VcYT07VairOeOJcfr6Ih4de/9 lR1Qd25rLieDXrxLjeFssr9l5AbesLYky8NeK1z2MeJ5I+XmGcxrTDVvN Fin2n3snJNwWBf9z9nUlKtbqKhk9+MPrCsKCG9xudbjFPo+UQRxxzmBJC w==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="268352098" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="268352098" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2022 00:01:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="714014498" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 18 Jun 2022 00:01:08 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o2SSB-000Q6p-C5; Sat, 18 Jun 2022 07:01:07 +0000 Date: Sat, 18 Jun 2022 15:00:58 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 255/261] include/linux/mm.h:1556:29: error: conflicting types for 'page_to_section'; have 'long unsigned int(const struct page *)' Message-ID: <202206181437.AwvGIkuq-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655535674; 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: references:dkim-signature; bh=ZgLO4q6+gi95GhK0Da1fBAuHfeQKNXmFa7YyZlHyRw4=; b=KSanwrJGOqb/i0Cd+B1a31wDj7c4VD4lqMGTvHvdpsmVKWkDgA5YmX5zOcCaxBv697Lx6v Bs0Aau6cDIrUV2GnKU6iCRz5w1QorlzGPL2YjFs/a/tgXfjTrrRq/ZsthEWPE5/O0MKCH/ H9Y6B/cMVkMwzwcYovOHtUPBcf5CWOE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655535674; a=rsa-sha256; cv=none; b=Y8/rRVV0rHE761ElX3U4UtbrmTRittZr6oOGwLZBc/6zSJKOMoG0tzJ2e9frdeEykC0Kdp sHffysngr9/rf6cMZTcxYOkfkCC3/WsK6z0t7BajA433IO9JQE1swbTfBEdr4JPqhubjxP Pl5Ell7DzYnoenJmV+UArqFLMSjGvM0= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fGPWXNCC; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fGPWXNCC; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam12 X-Rspam-User: X-Stat-Signature: b8cymwm5gbk8jj7apbfrfu5u4t35o1bh X-Rspamd-Queue-Id: CE1C4C00B2 X-HE-Tag: 1655535672-282108 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: 882be1ed6b1b5073fc88552181b99bd2b9c0031f commit: d3b90b76e1013bb7e201bcccf5f5433f322f2123 [255/261] mm: convert destroy_compound_page() to destroy_large_folio() config: parisc64-defconfig (https://download.01.org/0day-ci/archive/20220618/202206181437.AwvGIkuq-lkp@intel.com/config) compiler: hppa64-linux-gcc (GCC) 11.3.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d3b90b76e1013bb7e201bcccf5f5433f322f2123 git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout d3b90b76e1013bb7e201bcccf5f5433f322f2123 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc64 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/parisc/include/asm/page.h:185, from include/linux/shm.h:6, from include/linux/sched.h:16, from arch/parisc/kernel/asm-offsets.c:18: include/linux/mm.h: In function 'destroy_large_folio': >> include/asm-generic/memory_model.h:35:21: error: implicit declaration of function 'page_to_section'; did you mean 'present_section'? [-Werror=implicit-function-declaration] 35 | int __sec = page_to_section(__pg); \ | ^~~~~~~~~~~~~~~ include/asm-generic/memory_model.h:40:32: note: in definition of macro '__pfn_to_page' 40 | ({ unsigned long __pfn = (pfn); \ | ^~~ include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn' 52 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/mm.h:214:38: note: in expansion of macro 'page_to_pfn' 214 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) | ^~~~~~~~~~~ include/linux/page-flags.h:307:33: note: in expansion of macro 'nth_page' 307 | #define folio_page(folio, n) nth_page(&(folio)->page, n) | ^~~~~~~~ include/linux/mm.h:928:38: note: in expansion of macro 'folio_page' 928 | enum compound_dtor_id dtor = folio_page(folio, 1)->compound_dtor; | ^~~~~~~~~~ In file included from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from arch/parisc/kernel/asm-offsets.c:20: include/linux/mm.h: At top level: >> include/linux/mm.h:1556:29: error: conflicting types for 'page_to_section'; have 'long unsigned int(const struct page *)' 1556 | static inline unsigned long page_to_section(const struct page *page) | ^~~~~~~~~~~~~~~ In file included from arch/parisc/include/asm/page.h:185, from include/linux/shm.h:6, from include/linux/sched.h:16, from arch/parisc/kernel/asm-offsets.c:18: include/asm-generic/memory_model.h:35:21: note: previous implicit declaration of 'page_to_section' with type 'int()' 35 | int __sec = page_to_section(__pg); \ | ^~~~~~~~~~~~~~~ include/asm-generic/memory_model.h:40:32: note: in definition of macro '__pfn_to_page' 40 | ({ unsigned long __pfn = (pfn); \ | ^~~ include/asm-generic/memory_model.h:52:21: note: in expansion of macro '__page_to_pfn' 52 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ include/linux/mm.h:214:38: note: in expansion of macro 'page_to_pfn' 214 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) | ^~~~~~~~~~~ include/linux/page-flags.h:307:33: note: in expansion of macro 'nth_page' 307 | #define folio_page(folio, n) nth_page(&(folio)->page, n) | ^~~~~~~~ include/linux/mm.h:928:38: note: in expansion of macro 'folio_page' 928 | enum compound_dtor_id dtor = folio_page(folio, 1)->compound_dtor; | ^~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:117: arch/parisc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1200: 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 +1556 include/linux/mm.h bf4e8902ee5080 Daniel Kiper 2011-05-24 1555 aa462abe8aaf21 Ian Campbell 2011-08-17 @1556 static inline unsigned long page_to_section(const struct page *page) d41dee369bff3b Andy Whitcroft 2005-06-23 1557 { d41dee369bff3b Andy Whitcroft 2005-06-23 1558 return (page->flags >> SECTIONS_PGSHIFT) & SECTIONS_MASK; d41dee369bff3b Andy Whitcroft 2005-06-23 1559 } 308c05e35e3517 Christoph Lameter 2008-04-28 1560 #endif d41dee369bff3b Andy Whitcroft 2005-06-23 1561 :::::: The code at line 1556 was first introduced by commit :::::: aa462abe8aaf2198d6aef97da20c874ac694a39f mm: fix __page_to_pfn for a const struct page argument :::::: TO: Ian Campbell :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp