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 E016CC6FD1C for ; Thu, 23 Mar 2023 13:53:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4BF4B6B0072; Thu, 23 Mar 2023 09:53:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 46F446B0074; Thu, 23 Mar 2023 09:53:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E8EC6B0075; Thu, 23 Mar 2023 09:53:40 -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 1D71E6B0072 for ; Thu, 23 Mar 2023 09:53:40 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D545540702 for ; Thu, 23 Mar 2023 13:53:39 +0000 (UTC) X-FDA: 80600305758.04.30245E5 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf18.hostedemail.com (Postfix) with ESMTP id 50DC11C0002 for ; Thu, 23 Mar 2023 13:53:36 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b4k4JAEZ; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 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=1679579617; a=rsa-sha256; cv=none; b=rVSei08rWALBvmhlp8rn/I8of9g3OO1i6UJTUeekcxtOrDsJKEUSAqDeCwVKfIHSBrxYVN Ts3QdxzCVJdSgCTd8wY1V+ofdDSSR1So247NJY9EpxKyuD3hE17wwYdiwpRJ6e58j9D0OY r2Z6E8vhlWHQa5oy8tsZ90ZjkVkBtYk= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b4k4JAEZ; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 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=1679579617; 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=NcA31dt0itklumABaP3TOH5mvSAM8RYL16ko7h1Iwkw=; b=o+8nqp0+Yml3OHqWivtWsPALYGAH3mwQXEvCIJ/r0j+jWznUEVNuzdJWrDyQw2SZXz34d5 G8nTZ2inKuI9F6XDx0u1Dm/Qd02HAZ7YuPd3eLU5Dmt7XtZ23BTH4HaWsPu7UPLceI6mXU k2tsxqa1NXAujtp9kYoVmnlMQzbE/XI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679579616; x=1711115616; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BMnT2f9PT/iwzjkpsd4vT/8VCzv4VAo8CKM1oplFTtk=; b=b4k4JAEZ6G2FRwN97tcbKIIXevo6MD/+NfdiPnZcRqrYOz9Cm3NmJwE+ C6oCPjyjbkT/cxZ14VmlLStIk2rPN18/ZKjRfZUaWuX5CM+0/ENKIvSkh 2/BVz1W1EFxbQwlRbCSkkfsEIY1LJuoTjEry2TxrohQwqpSHQdDzLFL8C 7OCet1SawWBDTcCRhh7tVnSyeCF4WxeUopyuDvV0Vk1jRZxcL6YH1b0pM wQjgETNThqumLEHafkNv3y81KrdL359H2K835YxYjnVjGSGADN56kaVyk zwXgrZysWKFzp3vtVj6SRUNFreasxYR3WlPJiGBj+dasqSyc+0iQ60JIL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="341043862" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="341043862" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 06:46:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="746717842" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="746717842" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 23 Mar 2023 06:46:28 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pfLGt-000EPw-2r; Thu, 23 Mar 2023 13:46:27 +0000 Date: Thu, 23 Mar 2023 21:46:13 +0800 From: kernel test robot To: Mike Rapoport , Andrew Morton Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Arnd Bergmann , Catalin Marinas , Christophe Leroy , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Message-ID: <202303232149.Chh6KhiI-lkp@intel.com> References: <20230323092156.2545741-3-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230323092156.2545741-3-rppt@kernel.org> X-Rspam-User: X-Rspamd-Queue-Id: 50DC11C0002 X-Rspamd-Server: rspam01 X-Stat-Signature: s866bhrckjfkrkh96k8rasrobd4yzi6b X-HE-Tag: 1679579616-786347 X-HE-Meta: U2FsdGVkX1+iDb9P0T9DncS6ejTIs6hfKGoJZbRIOQqL7so4234k5TUwel8tx+iIIbEMZa1CZiLyX03SmUcmzeKt0zR3oXeJ0sUajsCgQZXbdFeRzyEZafrzDuyIj/Sg5HXrFRMf7WvFvL5CDFoVg/Tk5iFKptIvU3zFhpCr/x5cnD7wvwa065YMRR/oRDjiauQPQb8ooaNNcWZqoDzTiQEvtGT3AJ9akPSCkUAELb1hVq39njlO2kt4ftskeABNqTwwPAIViABslA4TlS2nGjWQ5OUbTCh8efSsgsn/IhdGb9Hzm8owdosL5ENUf9qP7Jb3YZOB3mREra/HYB4mo+118mgDn7rnPV93UFArrC8qHRk0LueU4/7LFXphdA6vwmQS8WcNn1xoa1cfIwIL9QYHCDlsQMkztD1aB0BObhxmPlDDNxSX/upyvk/nWQxTlE9uWBmDhAYAhwCcAjY0SrdVBKSWRo5Fl3qOz+3zrkDfu9z/gv18znI++zN0nEOkW/P9Ma96chJLL/LBWkj/ehncAQhCiub6TBPleKNk2oa449g/8s34xiM/NaZo+1WYJ7aMrWl+CYs8RZtuuM9PgohyfLZGvh45ClX2YA/Rpu2jwwwV4qIGlEpbpjOU0j9TmgBlGvmgKjisOweAGGOp5C0yM47FpytYyRAhTRS4ut9tY+v5IjXFoSRc4LsPvT2gVmExIWuIyYr4glVSU7Rd9KLiW30fcDjZa7LQApaLrg+Vn/DNy+FsZfG3VaIk/onyNjNNLEFcSRydY0NGeaplo0XD4e73FbJVp+mY/cNFCwMr2k5d5d+ghCcGeDdRkwMm49Nhc+ApI7zQEXTJWP5tOHKNVslwRVeR28yD/Dz5hvhbrCTlTaChyK15qoUe9XvaoCsQ4jr2TeFQv1cWv8sJZ8XKPzUw8IwqC43ZM+CVJqOnfZ6IQsvJQihNIsMBV8UihLo2x7CrCnSPKu8IyC3 pqQovbIY X+NePQcQaEilXRLClLncoohhJluPxZyh6vf5NVKYQT2rUSBZCE7ghAZQ9IjSWPmkDjUtWvatgbTHkGIlZ5DLRHy3xHoAZq3ZqK7iHlzHCJnVYP6gLNjc221hJu56hydv9axKzjiYM5PFRtwYiYiuNUl2bF/fdS6ssutgZpKZLojkppUa/UugNdOjcbEWkYielX7rvVn9EgAJR28KEyc0gemdDjHgcmI1hbt50gazGZTm/+sKUMauGcayvj7MfjQAWqz6qP1wPmjSNGTT2uxAE/yT1BLKTkbxhNdfKWYXQVdmSMaZ/9O4sDhGhMMlBroIx+QFPdUdZdC/Y5Ao1ZfNEJ1eKXpvrcBL0M+qWwhjA5rhLUGa/weWq/pRvBegN+3BgQzBplre6bSI3TUuBfpt3p4wg3mts7ICO9od2IlKIX4nfRrmyvrkij2v+Ut6HT54HOKzUwMIj3agYgeAwoGegDOCyHy21yhlXOhF4 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: Hi Mike, Thank you for the patch! Yet something to improve: [auto build test ERROR on 51551d71edbc998fd8c8afa7312db3d270f5998e] url: https://github.com/intel-lab-lkp/linux/commits/Mike-Rapoport/arm-reword-ARCH_FORCE_MAX_ORDER-prompt-and-help-text/20230323-172512 base: 51551d71edbc998fd8c8afa7312db3d270f5998e patch link: https://lore.kernel.org/r/20230323092156.2545741-3-rppt%40kernel.org patch subject: [PATCH 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER config: arm64-randconfig-r022-20230322 (https://download.01.org/0day-ci/archive/20230323/202303232149.Chh6KhiI-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/0522f943c071abf1610651ea40405b7489c50987 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Mike-Rapoport/arm-reword-ARCH_FORCE_MAX_ORDER-prompt-and-help-text/20230323-172512 git checkout 0522f943c071abf1610651ea40405b7489c50987 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/base/regmap/ drivers/iommu/ fs/proc/ mm/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303232149.Chh6KhiI-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:25, from mm/mm_init.c:9: mm/mm_init.c: In function 'find_zone_movable_pfns_for_nodes': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/math.h:61:25: note: in definition of macro 'roundup' 61 | typeof(y) __y = y; \ | ^ mm/mm_init.c:429:55: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 429 | roundup(required_movablecore, MAX_ORDER_NR_PAGES); | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/math.h:61:25: note: in definition of macro 'roundup' 61 | typeof(y) __y = y; \ | ^ mm/mm_init.c:540:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 540 | roundup(zone_movable_pfn[nid], MAX_ORDER_NR_PAGES); | ^~~~~~~~~~~~~~~~~~ -- In file included from include/linux/gfp.h:7, from include/linux/mm.h:7, from mm/debug.c:10: mm/debug.c: In function '__dump_page': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ mm/debug.c:70:44: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 70 | if (page < head || (page >= head + MAX_ORDER_NR_PAGES)) { | ^~~~~~~~~~~~~~~~~~ -- In file included from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/smp.h:12, from include/linux/kernel_stat.h:5, from mm/memory.c:42: mm/memory.c: In function 'clear_huge_page': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ mm/memory.c:5791:44: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 5791 | if (unlikely(pages_per_huge_page > MAX_ORDER_NR_PAGES)) { | ^~~~~~~~~~~~~~~~~~ mm/memory.c: In function 'copy_user_huge_page': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ mm/memory.c:5843:44: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 5843 | if (unlikely(pages_per_huge_page > MAX_ORDER_NR_PAGES)) { | ^~~~~~~~~~~~~~~~~~ -- mm/shuffle.c: In function '__shuffle_zone': >> mm/shuffle.c:86:35: warning: left shift count is negative [-Wshift-count-negative] 86 | const int order_pages = 1 << order; | ~~^~~~~~~~ -- In file included from include/vdso/const.h:5, from include/linux/const.h:4, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/debugfs.h:15, from mm/page_owner.c:2: mm/page_owner.c: In function 'pagetypeinfo_showmixedcount_print': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/uapi/linux/const.h:32:50: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL' 8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | ^~~~~~~~~~~~~~ mm/page_owner.c:298:31: note: in expansion of macro 'ALIGN' 298 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~ mm/page_owner.c:298:46: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 298 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/uapi/linux/const.h:32:61: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL' 8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | ^~~~~~~~~~~~~~ mm/page_owner.c:298:31: note: in expansion of macro 'ALIGN' 298 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~ mm/page_owner.c:298:46: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 298 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/gfp.h:7, from include/linux/xarray.h:15, from include/linux/list_lru.h:14, from include/linux/fs.h:13: mm/page_owner.c: In function 'read_page_owner': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ mm/page_owner.c:526:43: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 526 | while (!pfn_valid(pfn) && (pfn & (MAX_ORDER_NR_PAGES - 1)) != 0) | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ mm/page_owner.c:543:29: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 543 | if ((pfn & (MAX_ORDER_NR_PAGES - 1)) == 0 && !pfn_valid(pfn)) { | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ mm/page_owner.c:544:32: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 544 | pfn += MAX_ORDER_NR_PAGES - 1; | ^~~~~~~~~~~~~~~~~~ mm/page_owner.c: In function 'init_pages_in_zone': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/uapi/linux/const.h:32:50: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL' 8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | ^~~~~~~~~~~~~~ mm/page_owner.c:636:31: note: in expansion of macro 'ALIGN' 636 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~ mm/page_owner.c:636:46: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 636 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/uapi/linux/const.h:32:61: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/align.h:8:33: note: in expansion of macro '__ALIGN_KERNEL' 8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | ^~~~~~~~~~~~~~ mm/page_owner.c:636:31: note: in expansion of macro 'ALIGN' 636 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~ mm/page_owner.c:636:46: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 636 | pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); | ^~~~~~~~~~~~~~~~~~ -- In file included from include/linux/kernel.h:26, from arch/arm64/include/asm/cpufeature.h:22, from arch/arm64/include/asm/ptrace.h:11, from arch/arm64/include/asm/irqflags.h:10, from include/linux/irqflags.h:16, from include/linux/spinlock.h:59, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/mm.h:7, from mm/page_isolation.c:6: mm/page_isolation.c: In function 'isolate_single_pageblock': >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:28:27: note: in definition of macro '__cmp' 28 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:28:27: note: in definition of macro '__cmp' 28 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:28:27: note: in definition of macro '__cmp' 28 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:28:40: note: in definition of macro '__cmp' 28 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:28:40: note: in definition of macro '__cmp' 28 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:28:40: note: in definition of macro '__cmp' 28 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:31:39: note: in definition of macro '__cmp_once' 31 | typeof(x) unique_x = (x); \ | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:31:39: note: in definition of macro '__cmp_once' 31 | typeof(x) unique_x = (x); \ | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ >> include/linux/mmzone.h:33:31: warning: left shift count is negative [-Wshift-count-negative] 33 | #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) | ^~ include/linux/minmax.h:31:39: note: in definition of macro '__cmp_once' 31 | typeof(x) unique_x = (x); \ | ^ include/linux/minmax.h:74:25: note: in expansion of macro '__careful_cmp' 74 | #define max(x, y) __careful_cmp(x, y, >) | ^~~~~~~~~~~~~ mm/page_isolation.c:329:22: note: in expansion of macro 'max' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~ include/uapi/linux/const.h:31:41: note: in expansion of macro '__ALIGN_KERNEL_MASK' 31 | #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) | ^~~~~~~~~~~~~~~~~~~ include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNEL' 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) | ^~~~~~~~~~~~~~ mm/page_isolation.c:329:26: note: in expansion of macro 'ALIGN_DOWN' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~ mm/page_isolation.c:329:56: note: in expansion of macro 'MAX_ORDER_NR_PAGES' 329 | start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), | ^~~~~~~~~~~~~~~~~~ .. vim +16 include/linux/build_bug.h bc6245e5efd70c Ian Abbott 2017-07-10 6 bc6245e5efd70c Ian Abbott 2017-07-10 7 #ifdef __CHECKER__ bc6245e5efd70c Ian Abbott 2017-07-10 8 #define BUILD_BUG_ON_ZERO(e) (0) bc6245e5efd70c Ian Abbott 2017-07-10 9 #else /* __CHECKER__ */ bc6245e5efd70c Ian Abbott 2017-07-10 10 /* bc6245e5efd70c Ian Abbott 2017-07-10 11 * Force a compilation error if condition is true, but also produce a 8788994376d84d Rikard Falkeborn 2019-12-04 12 * result (of value 0 and type int), so the expression can be used bc6245e5efd70c Ian Abbott 2017-07-10 13 * e.g. in a structure initializer (or where-ever else comma expressions bc6245e5efd70c Ian Abbott 2017-07-10 14 * aren't permitted). bc6245e5efd70c Ian Abbott 2017-07-10 15 */ 8788994376d84d Rikard Falkeborn 2019-12-04 @16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) 527edbc18a70e7 Masahiro Yamada 2019-01-03 17 #endif /* __CHECKER__ */ 527edbc18a70e7 Masahiro Yamada 2019-01-03 18 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests