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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67EA1C0015E for ; Wed, 19 Jul 2023 06:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LiJ1sIs/7UEkRVStUQ2u2c554bsduzBeIjXKaGaf52A=; b=FiIOysTnv9Or+7 LndIppa146re27sEQmM/B+ZgWN+0IBLaA35tZGPU54PHxO1T3+wT7uuHU4eHmrgsOKP4C+YiEVMX8 RBcscgdTuO5pEvR+WQVrehFEfdt5ub4Y5f5hWncDrBgMfe6phaceCDOfICcQ+GUzmQQr6UqHmNZBs oNtTIxaJ6jwjXmjAVew5oe9hQ5owvMZhjyw5wcATNx3hoBh+1So5edmWR7vBvuwgf70WuEVumz+Df WTAvqP+17nOn6FwUiTZW1NaOIDG7LZURTQO8Rkw6xuktL9tSyXe1VcC8Cen15brMQy5ssBHWAiVDW QJ6SMaAb2/bd4/bA/EPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM0b9-005hbM-2a; Wed, 19 Jul 2023 06:23:43 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM0b6-005hZq-2r for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 06:23:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=a9dSKG3JKYVGoftL2CwbArqpJ4b6CM9+XSuH1vKwo24=; b=oJ5VwYFp2wrF21zLHBxDcXDvVL a4FcOplTYfjHxxlWxG9ktTO2m8EKwFtPGAvKoEDTGp+tNSiQ6NOcE5D9Sk+77rBGgxlsgusJPSs1P 2m9RuQDcvNwcJvJ1H8EnfF7ZXSrJ7g2FfaG1d6MZTPhb1ieuVdvT8tDCnKnOHG5h7op+hCp8MzSPb /mcnHAEWvMHU/P+/Uv22gaulqbomqGPfNZOM1jrFa+FP1vUYZklf87kcZD1FZxU1uF8vxCJgVnY0J W2a5w+MBCk59ezm/9NwjGixXEsMtHjtdyym7LytF+lUwpVNqWsgiB7j9b/PpPPRd1gVCe2RQkuZ+M lfrES7Xw==; Received: from mga07.intel.com ([134.134.136.100]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLqMp-00BwC7-2t for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 19:28:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689708495; x=1721244495; h=date:from:to:cc:subject:message-id:mime-version; bh=QoZqY/y7Bp6sw+3pt41tQa0bIrJRSwtTEXQqGh5O/BI=; b=lBTU4blNRwOKBg7+9F21lE4RUU3XSEReYVtMezDNCgrmGD8MR17OguGQ XWoWX7JwdKr5/cUbJ+BFXzdLrxrd8xHV56iEsmh5xKx+IwsSZurhe7juf XMGMFWppilnT1T3BZy5CequZZYsW7Yoa6z9BwHc8dnRd9TCPIvcXDF9LV CWIe7yovUmnc68Y9FphgS9vMVgEjCSp6Q9skuDqb2N+oBu8uK44/jRUPd rygpATBy/roh9+BiNXDIFvD12vB0z02SzPomSoZU5p/BvKB7t3S52yNxL K/3yb14bK9KEMb8Nx3PxpYM3TrlcgWLXDsvCoRWryxkqUeTxDUuxNEP9A g==; X-IronPort-AV: E=McAfee;i="6600,9927,10775"; a="432476630" X-IronPort-AV: E=Sophos;i="6.01,214,1684825200"; d="scan'208";a="432476630" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2023 12:27:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10775"; a="753441664" X-IronPort-AV: E=Sophos;i="6.01,214,1684825200"; d="scan'208";a="753441664" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 18 Jul 2023 12:27:46 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qLqMI-0003qj-0i; Tue, 18 Jul 2023 19:27:42 +0000 Date: Wed, 19 Jul 2023 03:27:28 +0800 From: kernel test robot To: "Russell King (Oracle)" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [arm:ktext-current 1/19] arch/arm64/mm/ptdump.c:44:4: error: statement expression not allowed at file scope Message-ID: <202307190325.EARjPrng-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_202817_202301_C087CF9D X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: git://git.armlinux.org.uk/~rmk/linux-arm.git ktext-current head: 49e3458967802a6981190b5a1fa9fd66dbf58f8c commit: 631e7c45f5d4cf043cd236a921c341e3dd9f1909 [1/19] arm64: place kernel in its own L0 page table entry config: arm64-randconfig-r014-20230718 (https://download.01.org/0day-ci/archive/20230719/202307190325.EARjPrng-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230719/202307190325.EARjPrng-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/202307190325.EARjPrng-lkp@intel.com/ All error/warnings (new ones prefixed by >>): >> mm/util.c:629:39: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] return __vmalloc_node_range(size, 1, VMALLOC_START, VMALLOC_END, ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 1 warning generated. -- >> mm/percpu.c:3110:21: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] if (max_distance > VMALLOC_TOTAL * 3 / 4) { ^~~~~~~~~~~~~ include/linux/vmalloc.h:284:38: note: expanded from macro 'VMALLOC_TOTAL' #define VMALLOC_TOTAL (VMALLOC_END - VMALLOC_START) ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ mm/percpu.c:3112:19: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] max_distance, VMALLOC_TOTAL); ^~~~~~~~~~~~~ include/linux/printk.h:508:37: note: expanded from macro 'pr_warn' printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:455:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:427:19: note: expanded from macro 'printk_index_wrap' _p_func(_fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 2 warnings generated. -- >> mm/vmalloc.c:82:17: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] return addr >= VMALLOC_START && addr < VMALLOC_END; ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ mm/vmalloc.c:2000:10: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] addr -= VMALLOC_START & ~(VMAP_BLOCK_SIZE-1); ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ mm/vmalloc.c:2040:6: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] VMALLOC_START, VMALLOC_END, ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ mm/vmalloc.c:2346:16: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] BUG_ON(addr < VMALLOC_START); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ include/asm-generic/bug.h:163:45: note: expanded from macro 'BUG_ON' #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) ~~~~~~~~~^~~~~~~~~~ include/linux/compiler.h:77:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ mm/vmalloc.c:2396:5: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] VMALLOC_START, VMALLOC_END, ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) -- >> arch/arm64/mm/ptdump.c:44:4: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] { MODULES_VADDR, "Modules start" }, ^~~~~~~~~~~~~ arch/arm64/include/asm/memory.h:49:25: note: expanded from macro 'MODULES_VADDR' #define MODULES_VADDR (MODULES_END - MODULES_VSIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ >> arch/arm64/mm/ptdump.c:44:4: error: statement expression not allowed at file scope arch/arm64/include/asm/memory.h:49:25: note: expanded from macro 'MODULES_VADDR' #define MODULES_VADDR (MODULES_END - MODULES_VSIZE) ^ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^ include/linux/minmax.h:74:19: note: expanded from macro 'max' #define max(x, y) __careful_cmp(x, y, >) ^ include/linux/minmax.h:38:3: note: expanded from macro '__careful_cmp' __cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op)) ^ include/linux/minmax.h:30:50: note: expanded from macro '__cmp_once' #define __cmp_once(x, y, unique_x, unique_y, op) ({ \ ^ arch/arm64/mm/ptdump.c:45:4: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] { MODULES_END, "Modules end" }, ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:74:19: note: expanded from macro 'max' #define max(x, y) __careful_cmp(x, y, >) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ arch/arm64/mm/ptdump.c:45:4: error: statement expression not allowed at file scope arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^ include/linux/minmax.h:74:19: note: expanded from macro 'max' #define max(x, y) __careful_cmp(x, y, >) ^ include/linux/minmax.h:38:3: note: expanded from macro '__careful_cmp' __cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op)) ^ include/linux/minmax.h:30:50: note: expanded from macro '__cmp_once' #define __cmp_once(x, y, unique_x, unique_y, op) ({ \ ^ arch/arm64/mm/ptdump.c:46:4: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] { VMALLOC_START, "vmalloc() area" }, ^~~~~~~~~~~~~ arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^~~~~~~~~~~ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ arch/arm64/mm/ptdump.c:46:4: error: statement expression not allowed at file scope arch/arm64/include/asm/pgtable.h:24:25: note: expanded from macro 'VMALLOC_START' #define VMALLOC_START (MODULES_END + PGDIR_SIZE) ^ arch/arm64/include/asm/memory.h:48:23: note: expanded from macro 'MODULES_END' #define MODULES_END (KIMAGE_VADDR) ^ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^ include/linux/minmax.h:74:19: note: expanded from macro 'max' #define max(x, y) __careful_cmp(x, y, >) ^ include/linux/minmax.h:38:3: note: expanded from macro '__careful_cmp' __cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op)) ^ include/linux/minmax.h:30:50: note: expanded from macro '__cmp_once' #define __cmp_once(x, y, unique_x, unique_y, op) ({ \ ^ 3 warnings and 3 errors generated. -- >> arch/arm64/kernel/setup.c:421:31: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] const unsigned long offset = kaslr_offset(); ^~~~~~~~~~~~~~ arch/arm64/include/asm/memory.h:203:56: note: expanded from macro 'kaslr_offset' #define kaslr_offset() ((unsigned long)(kimage_vaddr - KIMAGE_VADDR)) ^~~~~~~~~~~~ arch/arm64/include/asm/memory.h:47:6: note: expanded from macro 'KIMAGE_VADDR' max(MODULES_VSIZE, PGDIR_SIZE)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:74:19: note: expanded from macro 'max' #define max(x, y) __careful_cmp(x, y, >) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ arch/arm64/kernel/setup.c:425:13: warning: comparison of distinct pointer types ('typeof ((2147483648U)) *' (aka 'unsigned int *') and 'typeof (((1UL) << ((14 - 3) * (4 - (4 - 3)) + 3))) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] offset, KIMAGE_VADDR); ^~~~~~~~~~~~ include/linux/printk.h:468:35: note: expanded from macro 'pr_emerg' printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:455:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:427:19: note: expanded from macro 'printk_index_wrap' _p_func(_fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 2 warnings generated. .. vim +44 arch/arm64/mm/ptdump.c 99426e5e8c9f11 arch/arm64/mm/dump.c Steve Capper 2019-08-07 36 99426e5e8c9f11 arch/arm64/mm/dump.c Steve Capper 2019-08-07 37 static struct addr_marker address_markers[] = { 14c127c957c1c6 arch/arm64/mm/dump.c Steve Capper 2019-08-07 38 { PAGE_OFFSET, "Linear Mapping start" }, 77ad4ce69321ab arch/arm64/mm/dump.c Mark Rutland 2019-08-14 39 { 0 /* PAGE_END */, "Linear Mapping end" }, 0fea6e9af889f1 arch/arm64/mm/ptdump.c Andrey Konovalov 2020-12-22 40 #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) 99426e5e8c9f11 arch/arm64/mm/dump.c Steve Capper 2019-08-07 41 { 0 /* KASAN_SHADOW_START */, "Kasan shadow start" }, d8fc68a04d2ffa arch/arm64/mm/dump.c Ard Biesheuvel 2016-04-22 42 { KASAN_SHADOW_END, "Kasan shadow end" }, d8fc68a04d2ffa arch/arm64/mm/dump.c Ard Biesheuvel 2016-04-22 43 #endif f9040773b7bbbd arch/arm64/mm/dump.c Ard Biesheuvel 2016-02-16 @44 { MODULES_VADDR, "Modules start" }, f9040773b7bbbd arch/arm64/mm/dump.c Ard Biesheuvel 2016-02-16 45 { MODULES_END, "Modules end" }, 4733c7c79e8c46 arch/arm64/mm/dump.c Will Deacon 2018-09-05 46 { VMALLOC_START, "vmalloc() area" }, 4733c7c79e8c46 arch/arm64/mm/dump.c Will Deacon 2018-09-05 47 { VMALLOC_END, "vmalloc() end" }, 32f5b6995f790a arch/arm64/mm/ptdump.c Mark Rutland 2023-04-06 48 { FIXADDR_TOT_START, "Fixmap start" }, c9465b4ec37a68 arch/arm64/mm/dump.c Laura Abbott 2014-11-26 49 { FIXADDR_TOP, "Fixmap end" }, aa03c428e67881 arch/arm64/mm/dump.c Mark Rutland 2015-01-22 50 { PCI_IO_START, "PCI I/O start" }, aa03c428e67881 arch/arm64/mm/dump.c Mark Rutland 2015-01-22 51 { PCI_IO_END, "PCI I/O end" }, c8f8cca483aa3e arch/arm64/mm/dump.c Ard Biesheuvel 2016-04-22 52 { VMEMMAP_START, "vmemmap start" }, c8f8cca483aa3e arch/arm64/mm/dump.c Ard Biesheuvel 2016-04-22 53 { VMEMMAP_START + VMEMMAP_SIZE, "vmemmap end" }, c9465b4ec37a68 arch/arm64/mm/dump.c Laura Abbott 2014-11-26 54 { -1, NULL }, c9465b4ec37a68 arch/arm64/mm/dump.c Laura Abbott 2014-11-26 55 }; c9465b4ec37a68 arch/arm64/mm/dump.c Laura Abbott 2014-11-26 56 :::::: The code at line 44 was first introduced by commit :::::: f9040773b7bbbd9e98eb6184a263512a7cfc133f arm64: move kernel image to base of vmalloc area :::::: TO: Ard Biesheuvel :::::: CC: Catalin Marinas -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel