Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1603174rdb; Sat, 20 Jan 2024 05:58:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFS8sHLqDApbnR+ei1VoyNZHSbNw7ix0NwLiatJU/OVyYtGDuG1k6DXG8hY3A7ZDZS6H0Gi X-Received: by 2002:a17:907:8747:b0:a2f:bafe:bd8e with SMTP id qo7-20020a170907874700b00a2fbafebd8emr595710ejc.124.1705759137546; Sat, 20 Jan 2024 05:58:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705759137; cv=pass; d=google.com; s=arc-20160816; b=EY23xG2coiP/smcbs0HOWMGH0Qork4SeYRYcujYWgd5AZH+YFox40TPHcDX5Um0li1 yKPbMUTddHtKD9yfrKlokc25H++7/mVx+mrl7wsN25c9cNOO4z7mlC72CQiUpKF1ZEmG luT0OIK5XFfua3R/wwcP2AUCZh+HEwJB6/jMlrs7U21G3uQPAkC4VbpNiPX47Q8L8xoL czzPTYFkE3n/CyU5O9aYMzek4J9xWtdp/gVQhLIPrUK+NQQpELL3AcqNQzOZe1sT2nco e2yqPfEsbsbDwrTLACBkRWJ9L8KjBRyMqHWEbAOVYpxD8vT42ePwt+a9wEfUQj5IPleM 2raw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sukevnJymVY36QUUSo3FCB+9ubSsD9p+jAy3ARdJD4U=; fh=0KAVx3+fNSxK0qe43ALG5Y0riwFg/yS5cbmzPpcKnsA=; b=VLO3zOSSlBy4jpHxDGujIqU6UrOSqqWK6u2NmQb6cXElGG3DdHEho2IWVpAyQdjnJR 87LfvD05lllVzGFjVtRPRkUw+OYhINDvwpibmasFrDY7t7Z+TqQNSBotWcl1oEosL33i y6nU3sIMphGVAsiDuFDDMrH/VwAYrks384lSw3nyvscXI8VdFDU8yYVw5kKAYTtEDkGe V65iHfV0+28l2FIqDNw00K358oCfdZEhK9qgYhhQlmArm36SgRos/S9KRyWu50KyaHFk qrxGwH1VKB7cWAoQZLOracHlI/mdhWe5/3BqEpvaHoOpOoRV87CNDY3t3x9kcxtfn6UQ fovA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A4EsLcXF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31811-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j7-20020a170906050700b00a28ebb569f2si8661652eja.763.2024.01.20.05.58.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 05:58:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31811-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A4EsLcXF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31811-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 298AB1F22971 for ; Sat, 20 Jan 2024 13:58:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 680A9FBFD; Sat, 20 Jan 2024 13:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="A4EsLcXF" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66905F9F2; Sat, 20 Jan 2024 13:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705759128; cv=none; b=mp3XwtrotRhyAZKDfGQU1YzLNFkVBKb4F3AtyIGW34fuJtPLTtn8sYuGW1ayZJxvht0nYh4tpwDN6oxVcAaRGJSaHLUyl1AJlKBuCoNx/dd8My+xPMIL6Ap2OHPGFX2sCv2Y2j6hlrhdj/C6CQgHQ3UYAhzNg2ujKqxLjc0G/uA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705759128; c=relaxed/simple; bh=D7c3vMf9ccSBFZdgQbSr1dRX1CxiKZpITQQp7zG1YTU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ftds1or4uS800/snygX52dEeb0sv/3aV8U1iWDvv5P+bEwHMd/SSCaIe33LhsxmvLOv9I4mrXlkawOSDSQU8m8BqE8gFupLGJsSrtMWwoFQxJS40N0HbHxOFLMBfUr9O7vc9gSJYsHu/mrdDFA+bGMDasADI5jhgEY6a7xT+0DY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=A4EsLcXF; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705759126; x=1737295126; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=D7c3vMf9ccSBFZdgQbSr1dRX1CxiKZpITQQp7zG1YTU=; b=A4EsLcXFptu9zt9cMF8vIbGgPveudmdkyPUvuLx3o/5b6NUIzc+jWzYR x7IAbs8mSt9GHXouObLiXJfqQaE5kIHiIQbdrS+C4hnbZ9j0+h04A2liq za5s2k9MmzI6jueH6NJqpFPoPFc3WbThl5oME0Emv1ix6MNJLZynQj3eU D2Q8C/vMH5Kc8TV1yZ2nnctWOKgz3Eo4ug8cPC5l3hFz9xoMB3ojRzQtg qmOrNFhFdn0pfPLhtGX10zZdcWxJ6SzWRRdWAp3lXxI9Bgubq9E7aJxN3 q7YVpReXa4Xchnpqc8GAGsbxpo/1j07mUzHYAzw9ftagfB47uMDjwQZNR Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10959"; a="8314740" X-IronPort-AV: E=Sophos;i="6.05,208,1701158400"; d="scan'208";a="8314740" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2024 05:58:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,208,1701158400"; d="scan'208";a="834696" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 20 Jan 2024 05:58:40 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rRBrq-00058A-04; Sat, 20 Jan 2024 13:58:38 +0000 Date: Sat, 20 Jan 2024 21:58:16 +0800 From: kernel test robot To: Baoquan He , linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, akpm@linux-foundation.org, ebiederm@xmission.com, hbathini@linux.ibm.com, piliu@redhat.com, viro@zeniv.linux.org.uk, Baoquan He Subject: Re: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs Message-ID: <202401202159.9a6W0aOH-lkp@intel.com> References: <20240119145241.769622-12-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240119145241.769622-12-bhe@redhat.com> Hi Baoquan, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [cannot apply to tip/x86/core arm64/for-next/core powerpc/next powerpc/fixes v6.7 next-20240119] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/kexec-split-crashkernel-reservation-code-out-from-crash_core-c/20240119-225820 base: linus/master patch link: https://lore.kernel.org/r/20240119145241.769622-12-bhe%40redhat.com patch subject: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240120/202401202159.9a6W0aOH-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401202159.9a6W0aOH-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/202401202159.9a6W0aOH-lkp@intel.com/ All errors (new ones prefixed by >>): arch/arm/kernel/setup.c: In function 'reserve_crashkernel': >> arch/arm/kernel/setup.c:1036:63: error: 'SECTION_SIZE' undeclared (first use in this function); did you mean 'SECTIONS_SHIFT'? 1036 | start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, | ^~~~~~~~~~~~ | SECTIONS_SHIFT arch/arm/kernel/setup.c:1036:63: note: each undeclared identifier is reported only once for each function it appears in In file included from arch/arm/include/asm/efi.h:12, from arch/arm/kernel/setup.c:37: arch/arm/include/asm/fixmap.h: At top level: arch/arm/include/asm/fixmap.h:39:35: warning: '__end_of_fixed_addresses' defined but not used [-Wunused-const-variable=] 39 | static const enum fixed_addresses __end_of_fixed_addresses = | ^~~~~~~~~~~~~~~~~~~~~~~~ vim +1036 arch/arm/kernel/setup.c 3c57fb43c8fcbe Mika Westerberg 2010-05-10 995 3c57fb43c8fcbe Mika Westerberg 2010-05-10 996 /** 3c57fb43c8fcbe Mika Westerberg 2010-05-10 997 * reserve_crashkernel() - reserves memory are for crash kernel 3c57fb43c8fcbe Mika Westerberg 2010-05-10 998 * 3c57fb43c8fcbe Mika Westerberg 2010-05-10 999 * This function reserves memory area given in "crashkernel=" kernel command 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1000 * line parameter. The memory reserved is used by a dump capture kernel when 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1001 * primary kernel is crashing. 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1002 */ 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1003 static void __init reserve_crashkernel(void) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1004 { 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1005 unsigned long long crash_size, crash_base; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1006 unsigned long long total_mem; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1007 int ret; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1008 8f460484669cba Baoquan He 2024-01-19 1009 if (!IS_ENABLED(CONFIG_CRASH_RESERVE)) 8f460484669cba Baoquan He 2024-01-19 1010 return; 8f460484669cba Baoquan He 2024-01-19 1011 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1012 total_mem = get_total_mem(); 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1013 ret = parse_crashkernel(boot_command_line, total_mem, a9e1a3d84e4a0e Baoquan He 2023-09-14 1014 &crash_size, &crash_base, a9e1a3d84e4a0e Baoquan He 2023-09-14 1015 NULL, NULL); 9d17f337230642 Austin Kim 2022-04-01 1016 /* invalid value specified or crashkernel=0 */ 9d17f337230642 Austin Kim 2022-04-01 1017 if (ret || !crash_size) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1018 return; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1019 61603016e2122b Russell King 2016-03-14 1020 if (crash_base <= 0) { d0506a2395eb07 Russell King 2016-04-01 1021 unsigned long long crash_max = idmap_to_phys((u32)~0); 67556d7a851c20 Russell King 2017-07-19 1022 unsigned long long lowmem_max = __pa(high_memory - 1) + 1; 67556d7a851c20 Russell King 2017-07-19 1023 if (crash_max > lowmem_max) 67556d7a851c20 Russell King 2017-07-19 1024 crash_max = lowmem_max; a7259df7670240 Mike Rapoport 2021-09-02 1025 a7259df7670240 Mike Rapoport 2021-09-02 1026 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, a7259df7670240 Mike Rapoport 2021-09-02 1027 CRASH_ALIGN, crash_max); 61603016e2122b Russell King 2016-03-14 1028 if (!crash_base) { 61603016e2122b Russell King 2016-03-14 1029 pr_err("crashkernel reservation failed - No suitable area found.\n"); 61603016e2122b Russell King 2016-03-14 1030 return; 61603016e2122b Russell King 2016-03-14 1031 } 61603016e2122b Russell King 2016-03-14 1032 } else { a7259df7670240 Mike Rapoport 2021-09-02 1033 unsigned long long crash_max = crash_base + crash_size; 61603016e2122b Russell King 2016-03-14 1034 unsigned long long start; 61603016e2122b Russell King 2016-03-14 1035 a7259df7670240 Mike Rapoport 2021-09-02 @1036 start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, a7259df7670240 Mike Rapoport 2021-09-02 1037 crash_base, crash_max); a7259df7670240 Mike Rapoport 2021-09-02 1038 if (!start) { 61603016e2122b Russell King 2016-03-14 1039 pr_err("crashkernel reservation failed - memory is in use.\n"); 61603016e2122b Russell King 2016-03-14 1040 return; 61603016e2122b Russell King 2016-03-14 1041 } 61603016e2122b Russell King 2016-03-14 1042 } 61603016e2122b Russell King 2016-03-14 1043 1b0f6681fcbc0e Olof Johansson 2013-12-05 1044 pr_info("Reserving %ldMB of memory at %ldMB for crashkernel (System RAM: %ldMB)\n", 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1045 (unsigned long)(crash_size >> 20), 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1046 (unsigned long)(crash_base >> 20), 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1047 (unsigned long)(total_mem >> 20)); 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1048 f7f0b7dc720f81 Russell King 2016-08-02 1049 /* The crashk resource must always be located in normal mem */ 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1050 crashk_res.start = crash_base; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1051 crashk_res.end = crash_base + crash_size - 1; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1052 insert_resource(&iomem_resource, &crashk_res); f7f0b7dc720f81 Russell King 2016-08-02 1053 f7f0b7dc720f81 Russell King 2016-08-02 1054 if (arm_has_idmap_alias()) { f7f0b7dc720f81 Russell King 2016-08-02 1055 /* f7f0b7dc720f81 Russell King 2016-08-02 1056 * If we have a special RAM alias for use at boot, we f7f0b7dc720f81 Russell King 2016-08-02 1057 * need to advertise to kexec tools where the alias is. f7f0b7dc720f81 Russell King 2016-08-02 1058 */ f7f0b7dc720f81 Russell King 2016-08-02 1059 static struct resource crashk_boot_res = { f7f0b7dc720f81 Russell King 2016-08-02 1060 .name = "Crash kernel (boot alias)", f7f0b7dc720f81 Russell King 2016-08-02 1061 .flags = IORESOURCE_BUSY | IORESOURCE_MEM, f7f0b7dc720f81 Russell King 2016-08-02 1062 }; f7f0b7dc720f81 Russell King 2016-08-02 1063 f7f0b7dc720f81 Russell King 2016-08-02 1064 crashk_boot_res.start = phys_to_idmap(crash_base); f7f0b7dc720f81 Russell King 2016-08-02 1065 crashk_boot_res.end = crashk_boot_res.start + crash_size - 1; f7f0b7dc720f81 Russell King 2016-08-02 1066 insert_resource(&iomem_resource, &crashk_boot_res); f7f0b7dc720f81 Russell King 2016-08-02 1067 } 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1068 } 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1069 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki