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 DEA1EC3DA41 for ; Thu, 11 Jul 2024 14:31:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 441FA6B0083; Thu, 11 Jul 2024 10:31:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3C8886B009A; Thu, 11 Jul 2024 10:31:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1C73F6B008A; Thu, 11 Jul 2024 10:31:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id DE2A06B008C for ; Thu, 11 Jul 2024 10:31:34 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 81DF61C123B for ; Thu, 11 Jul 2024 14:31:34 +0000 (UTC) X-FDA: 82327710108.29.18CE518 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by imf10.hostedemail.com (Postfix) with ESMTP id EC888C000E for ; Thu, 11 Jul 2024 14:31:30 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k8hOce9C; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 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=1720708255; 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=6ofEAQM6sZ13lAO2QXOhA1VH5HwXgXTxaxLjVvpsivg=; b=NW3L/7UR7QQhtslOnN1sAbdqNwWMfRUY2qXQpdgR5YidsLSwwQpvgTgL6USv3iKZUrDde/ mD9DqUgOF4NKRhKw1Af17hpQM5blF9v9YqMwCY0Nhk5Bk3gt/TN32Rgub/GLd1MRtc8pt3 Wv9KieTz1axtNtqXQkhw2ZKZMwBYI0I= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720708255; a=rsa-sha256; cv=none; b=GPbIIbZfqOr6E3E1EmhA0G8PYNJLn+cs97cboNKwvjlhf4Xdmqw90qZRKPDqOUDqMQbH2i wibQ3bYHVvdIk6R00zHFRDk8XemGn5iW3sCMJloR6Fjl1aihQIMRx6VYiJFgvi0Sqs1wqj 0buSLaFKCM58dXuj34mqcEgfundVRDg= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k8hOce9C; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 as permitted sender) smtp.mailfrom=lkp@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720708292; x=1752244292; h=date:from:to:cc:subject:message-id:mime-version; bh=hrj7tVi+wNdx+SmfOhQWcBRwUV+/4wY0BROpAIsRvBw=; b=k8hOce9CJvMKQ8fMXVBBFC1KaoJNvwtV731+jDtaVAVLlFa7nwSG3ci9 J4rT2ADFwWSrXARHZWZO4UG03jeeZoFC2IDrydNGG0NDd5NGrawIFTmwx r0EZQebQz6VE3Pl4B7tBIzREnGtMhW/9/szEHdeNCQl2s9sNW11nHat5U u+ssgJpGdoloPkguRV7aWTMliGuyLB7s9Pu9pkh417OsWtc7yVXGGu9hf ztVVc25sICbE3R3bKomxoyemRob+BfdTKsKLx7WEC/9oU5zke0jDyFLlp akYymwbcJygXCbWmVMwcxCl39DJquvHCG2Zn4a0tocwYaWGVL7tqz/ags w==; X-CSE-ConnectionGUID: nMUlSAv0StSiEGACzH4yPA== X-CSE-MsgGUID: 7t1zDwtwRKOrN8lXylBXKg== X-IronPort-AV: E=McAfee;i="6700,10204,11130"; a="35523894" X-IronPort-AV: E=Sophos;i="6.09,200,1716274800"; d="scan'208";a="35523894" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2024 07:31:30 -0700 X-CSE-ConnectionGUID: WY9a4b2ZT3S7IuG48ItOCw== X-CSE-MsgGUID: TdBrXsYuRLyzoz2EYzPONg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,200,1716274800"; d="scan'208";a="48326629" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 11 Jul 2024 07:31:28 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sRupR-000ZO1-2y; Thu, 11 Jul 2024 14:31:25 +0000 Date: Thu, 11 Jul 2024 22:30:48 +0800 From: kernel test robot To: Christophe Leroy Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , Peter Xu Subject: [linux-next:master 12377/12643] arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined Message-ID: <202407112219.UMkURKb4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: EC888C000E X-Stat-Signature: 1yiwykyfwx7hoxiamowrsdm746if6t4w X-Rspam-User: X-HE-Tag: 1720708290-719935 X-HE-Meta: U2FsdGVkX18Oz9/g1nSbOL7PKF/fmuhFGvUEQWqvEhZfQKJyLQJdYPu9/LPjXoZrUqeTDtHZ9fUKGUFxjzhRXkOf/7wU80fFGAORbf6QQ6RDL1KKT5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nZQZmb+xkr20eQ2mhHNg6TofnYw/9z7DLF9odOCpK3GIp6bYkcEN1LK/r6YfPC92Kou+RXo+vsJHBiTFzleIBAvWkCQRC+axktfGL1MJW4yjhPdg+tPrTRFnj3XkgJ7lSgnY2GaGHm5pahdUffd2odNZuyS8kLd53CHw9Gdz/Ai2T5f+yvrN3gbXGH8aZI9k6A6SSQ7x/Qnl0gLq98TlRizqBWBTaB51AhyjZEJfRkNGA33FM+9zYdJccbjprXnA7jnaUn0HUaMH9mHFG0lbIzJdHS7OLp+u1PD 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f477dd6eede3ecedc8963478571d99ec3bf3f762 commit: 4d460b397e28528bab4b2cea6a9337560e78b0b8 [12377/12643] mm: add p{g/4}d_leaf() in asm-generic/pgtable-nop{4/u}d.h config: mips-randconfig-r035-20230528 (https://download.01.org/0day-ci/archive/20240711/202407112219.UMkURKb4-lkp@intel.com/config) compiler: mipsel-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240711/202407112219.UMkURKb4-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/202407112219.UMkURKb4-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from arch/mips/kernel/asm-offsets.c:15: >> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined 758 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/mips/include/asm/pgtable-32.h:19, from arch/mips/include/asm/pgtable.h:14: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | -- In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from include/linux/elfcore.h:11, from include/linux/vmcore_info.h:6, from include/linux/kexec.h:18, from arch/mips/kernel/traps.c:20: >> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined 758 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/mips/include/asm/pgtable-32.h:19, from arch/mips/include/asm/pgtable.h:14: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | arch/mips/kernel/traps.c: In function 'do_mcheck': arch/mips/kernel/traps.c:1591:24: warning: variable 'prev_state' set but not used [-Wunused-but-set-variable] 1591 | enum ctx_state prev_state; | ^~~~~~~~~~ -- In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from include/linux/pagemap.h:8, from arch/mips/mm/init.c:21: >> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined 758 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/mips/include/asm/pgtable-32.h:19, from arch/mips/include/asm/pgtable.h:14: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | In file included from : arch/mips/mm/init.c: In function 'mem_init': include/linux/compiler_types.h:510:45: error: call to '__compiletime_assert_321' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (PFN_PTE_SHIFT > PAGE_SHIFT) 510 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:491:25: note: in definition of macro '__compiletime_assert' 491 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:510:9: note: in expansion of macro '_compiletime_assert' 510 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ arch/mips/mm/init.c:470:9: note: in expansion of macro 'BUILD_BUG_ON' 470 | BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (PFN_PTE_SHIFT > PAGE_SHIFT)); | ^~~~~~~~~~~~ -- In file included from include/linux/pgtable.h:6, from include/linux/mm.h:30, from arch/mips/kernel/asm-offsets.c:15: >> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined 758 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) | In file included from arch/mips/include/asm/pgtable-32.h:19, from arch/mips/include/asm/pgtable.h:14: include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition 34 | #define pud_leaf pud_leaf | vim +/pud_leaf +758 arch/mips/include/asm/pgtable.h 970d032fec3f96 Ralf Baechle 2012-10-18 755 501b8104670140 Steven Price 2020-02-03 756 #ifdef _PAGE_HUGE 501b8104670140 Steven Price 2020-02-03 757 #define pmd_leaf(pmd) ((pmd_val(pmd) & _PAGE_HUGE) != 0) 501b8104670140 Steven Price 2020-02-03 @758 #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0) 501b8104670140 Steven Price 2020-02-03 759 #endif 501b8104670140 Steven Price 2020-02-03 760 :::::: The code at line 758 was first introduced by commit :::::: 501b81046701408a23bb11f75f1fb4e8521c64a6 mips: mm: add p?d_leaf() definitions :::::: TO: Steven Price :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki