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 C2431C83F17 for ; Fri, 18 Jul 2025 20:07:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1FE706B0092; Fri, 18 Jul 2025 16:07:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D7E46B0093; Fri, 18 Jul 2025 16:07:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EC466B0095; Fri, 18 Jul 2025 16:07:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id EA3126B0092 for ; Fri, 18 Jul 2025 16:07:03 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 73BF4801B2 for ; Fri, 18 Jul 2025 20:07:03 +0000 (UTC) X-FDA: 83678469126.20.50C0F4B Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by imf27.hostedemail.com (Postfix) with ESMTP id D27EB4000A for ; Fri, 18 Jul 2025 20:07:00 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=BnMv1Pxn; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 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=1752869221; 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=4XcQ4MNNCoE9/FuIAshpI0JRI+HWLOfIAL/qTO3GbWc=; b=0QRcShtqsyxYNPHMFtK7qY8VoC3L/wJid+YTCnGkkkd9hkNqsTm+eTxjGfPtHGtFHoqr7F zaX+ClMH+RZ0A/7ZqYo14A8dKRYDZ5c01d20KYMwoYeXTQJm8Xg8r/L6dp+QoMHhzQFOyk 8UvlORs2iU51wD3yDbJN3FFrX1BFoKE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1752869221; a=rsa-sha256; cv=none; b=IiqI2waAXR2kJA9vFcxHlBT641kxrbU5tZeM+l/JGHpTnZRxds/SXNjce1sfATP+zRloio Yt+2C3ajdI4IH4B320ypNkKRwyw2+aNgMmaQ8cbnttNo1usryjH2+li4Q2lKu3tscL0EXr P0WZJPh37KmMFLPjv7JKnssQmoAHEBM= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=BnMv1Pxn; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 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=1752869221; x=1784405221; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/c6W0QCExdJulJjR99oOqjyhyrpY5+1p7AIoo66B7Z0=; b=BnMv1PxnGGaEbwWLPUTd0eBsaUC/Ey9McyFvuIHx3vHtdt+g6FTArd+J BJRRhiWmF6+IlgmbPjHf1vulHgplj6uhHVWIIYIRpcDq/9KKV7Wo0Y/IN yV5n9g9LI+u/Q4Mt8kDqV4keDnKEy7I5ONtUadnsXxhWSBPDC5jS6AK5j 2OwFBdMom6sKSwQsOqlyPAqgTJz67nloGA6ZqIKyJJz4uSL9tN4qrLfv4 M6nD+4xyzsZvV0Gx6BH9g4D2s/Aa9inK0ViVQdRhWBem+CExhtJal1wad DZaoMKEOKu5EIlCYbLH0yn/9wqftQmXduRq8JTaBtqB2SaQdGz/A/cuQS w==; X-CSE-ConnectionGUID: rAvomY3uRSas9quLhGnTAQ== X-CSE-MsgGUID: a0mLhYUrSLudISW5tgyakw== X-IronPort-AV: E=McAfee;i="6800,10657,11496"; a="55024605" X-IronPort-AV: E=Sophos;i="6.16,322,1744095600"; d="scan'208";a="55024605" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2025 13:06:58 -0700 X-CSE-ConnectionGUID: kcMQmBCbTvaal1coT9H54Q== X-CSE-MsgGUID: 7ChANxMLRIu9oGcBVrE+Bw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,322,1744095600"; d="scan'208";a="158239135" Received: from lkp-server01.sh.intel.com (HELO 9ee84586c615) ([10.239.97.150]) by orviesa007.jf.intel.com with ESMTP; 18 Jul 2025 13:06:51 -0700 Received: from kbuild by 9ee84586c615 with local (Exim 4.96) (envelope-from ) id 1ucrM0-000F0N-2E; Fri, 18 Jul 2025 20:06:48 +0000 Date: Sat, 19 Jul 2025 04:06:04 +0800 From: kernel test robot To: Ye Liu , Andrew Morton , David Hildenbrand , Davidlohr Bueso , "Paul E. McKenney" , Josh Triplett , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Boqun Feng , Uladzislau Rezki , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Lorenzo Stoakes Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Ye Liu , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Dietmar Eggemann , Ben Segall , Mel Gorman , Valentin Schneider Subject: Re: [PATCH] mm: Replace (20 - PAGE_SHIFT) with common macros for pages<->MB conversion Message-ID: <202507190319.0rqhQw5l-lkp@intel.com> References: <20250718024134.1304745-1-ye.liu@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250718024134.1304745-1-ye.liu@linux.dev> X-Rspamd-Queue-Id: D27EB4000A X-Stat-Signature: satnxyryweahqg7ehmqqjn7z94kerrak X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1752869220-127209 X-HE-Meta: U2FsdGVkX1/J5DNqDTO+K4v3sH5mw/gaC+xAHJH+1PjoTM/aXZtGxEWF/SsqinA1mzDSzVdWVVs7dmvQ96WK2BwA1N71kU5ebcCImAn+w5XWDzPW8XSA3A8pdN5QPZT/gqv/P5HswVtcQDxDM8nEEFMZCAwDqzKYDgAYpjoGb75h2jqht7PZ2j8CEDrqDHQfnRuBK2ItvfGsPfbTY+ck5Pgv3VHDU6uf+J133lVQflGzPlaLyYJuPWNuym0sPm6lX8wwmtLF/RA52o9GSAXBuSDICzu3kgVC3PbRiD1fe0k+DTXD99g5pL0R7pi0Trjl5j1yiLj1ECkogyF6FO4g9swWButO7LNxkR9j7tFDU37hkzGdczBoB+pWNXalAl5bylmRm7WFKiF172j3l7N0QzexgKUL2tK4eSdGUt4vy3bOjfIyZAl/OggbNyAM3k2vYVIOPzj9hq965jVnFossluks/YEAaIimYRWa42WSqs6oNuBIK9cD5VtA2QV9wWhNv5M311N/k3B+glN2v4tu5SRM/J+U4reORvgY0q+GKxny2N4W+gKNU5MQfQeIu+s6Sv862mxPrKnreJMhdyxe/1ducJFGTIa3eFluNHu/zMl7u15Q+lMJWdIbv0ZgB+Uc/QWUkoVSXCCVpgcm36PLGkef+3lPyjNA81rRHneOtJJoNZTI7cGCKKgSHyVDiN0bJeLadStBrvQmFdymrK8jCCEYQqZ5d/qHu/Dd7AmMtN41cm3jogc0HQtfOat7l+rXsUYK8U61qH9eAL0E6EgTNXebhEkT9Csf/Nuek2gW5jAB/JQC0aE0Y/hJNXUDm59ImPoLJs0goTLd5O8xqTpPFWdTLQOjDAV2ZjumxGxUFhiryIMSetQ+qUIYYFCLOcMk3Sn1ElCYH7lrMId2EtPfmd0xPqOtuMbZMMQ7/QkVY+pHqkhgY8A5fRMjfU52xWDIBkW161KcKtklp+zpgzu 0dptXUPN YdTXtXR+AVuURN5gY3H/A7SzOMf6wlVgatYMIinHwcfOEf4EcSfh3nkzHCg== 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 Ye, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Ye-Liu/mm-Replace-20-PAGE_SHIFT-with-common-macros-for-pages-MB-conversion/20250718-104347 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20250718024134.1304745-1-ye.liu%40linux.dev patch subject: [PATCH] mm: Replace (20 - PAGE_SHIFT) with common macros for pages<->MB conversion config: arc-randconfig-001-20250719 (https://download.01.org/0day-ci/archive/20250719/202507190319.0rqhQw5l-lkp@intel.com/config) compiler: arc-linux-gcc (GCC) 14.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190319.0rqhQw5l-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/202507190319.0rqhQw5l-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/arc/kernel/asm-offsets.c:7: >> include/linux/mm.h:78:9: warning: "PAGES_TO_MB" redefined 78 | #define PAGES_TO_MB(pages) ((pages) >> (20 - PAGE_SHIFT)) | ^~~~~~~~~~~ In file included from arch/arc/include/asm/irqflags-arcv2.h:9, from arch/arc/include/asm/irqflags.h:13, from include/linux/irqflags.h:18, from include/linux/spinlock.h:59, from include/linux/sched.h:2205, from arch/arc/kernel/asm-offsets.c:6: arch/arc/include/asm/arcregs.h:155:9: note: this is the location of the previous definition 155 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) | ^~~~~~~~~~~ -- In file included from arch/arc/include/asm/cacheflush.h:18, from include/linux/cacheflush.h:5, from include/linux/highmem.h:8, from include/linux/bvec.h:10, from include/linux/blk_types.h:10, from include/linux/blkdev.h:9, from fs/ufs/super.c:83: >> include/linux/mm.h:78:9: warning: "PAGES_TO_MB" redefined 78 | #define PAGES_TO_MB(pages) ((pages) >> (20 - PAGE_SHIFT)) | ^~~~~~~~~~~ In file included from arch/arc/include/asm/irqflags-arcv2.h:9, from arch/arc/include/asm/irqflags.h:13, from include/linux/irqflags.h:18, from include/linux/spinlock.h:59, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/umh.h:4, from include/linux/kmod.h:9, from include/linux/module.h:17, from fs/ufs/super.c:70: arch/arc/include/asm/arcregs.h:155:9: note: this is the location of the previous definition 155 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) | ^~~~~~~~~~~ fs/ufs/super.c: In function 'ufs_reconfigure': fs/ufs/super.c:1246:22: warning: variable 'ufstype' set but not used [-Wunused-but-set-variable] 1246 | unsigned int ufstype; | ^~~~~~~ -- In file included from arch/arc/kernel/asm-offsets.c:7: >> include/linux/mm.h:78:9: warning: "PAGES_TO_MB" redefined 78 | #define PAGES_TO_MB(pages) ((pages) >> (20 - PAGE_SHIFT)) | ^~~~~~~~~~~ In file included from arch/arc/include/asm/irqflags-arcv2.h:9, from arch/arc/include/asm/irqflags.h:13, from include/linux/irqflags.h:18, from include/linux/spinlock.h:59, from include/linux/sched.h:2205, from arch/arc/kernel/asm-offsets.c:6: arch/arc/include/asm/arcregs.h:155:9: note: this is the location of the previous definition 155 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) | ^~~~~~~~~~~ vim +/PAGES_TO_MB +78 include/linux/mm.h 71 72 /* 73 * Convert between pages and MB 74 * 20 is the shift for 1MB (2^20 = 1MB) 75 * PAGE_SHIFT is the shift for page size (e.g., 12 for 4KB pages) 76 * So (20 - PAGE_SHIFT) converts between pages and MB 77 */ > 78 #define PAGES_TO_MB(pages) ((pages) >> (20 - PAGE_SHIFT)) 79 #define MB_TO_PAGES(mb) ((mb) << (20 - PAGE_SHIFT)) 80 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki