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 74B66C561E6 for ; Fri, 20 Feb 2026 19:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=U/aov7YKfRqZa2Z0xrVK+spARqNXRf/dTECGhg3dCr8=; b=PniZdN8PmPyjR0nfgM5LIANFYr muQNY//KYU8AZARddY24c06QJh9cJ4AQP+LDIUSQIlXOPRCpR67d+7P/faWy3Jt/cedhN/i6tw9mV qnsVEptpymdmB+sCiPeGIbA9fKf6vqct8tVKaBe5eEK+u1TAN5WO90moD+ruM82XY2QVtdQKiXVxM Q9EtXRb3LqzKloY4FsFMioYPZOd7uET2DvK5ZwQxL17U6ioYIhBS95+67+Ss2CU/zuCNfTOhvAgve 9dOOmQcczmv1R6To0ub3flP+X0UjxwOKosjS5j8k4fV5VV6eT2dZmCUvLUhevNyb5TRMZCE1fOha6 vOhYK3xA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vtW2I-0000000FVBI-0dWK; Fri, 20 Feb 2026 19:19:34 +0000 Received: from mgamail.intel.com ([198.175.65.11]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vtW2F-0000000FVAf-1W79 for linux-arm-kernel@lists.infradead.org; Fri, 20 Feb 2026 19:19:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771615171; x=1803151171; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Er+hsh1gG5ejQ2qPbFqaijfyXtfPJmp/EnPNlRqDWck=; b=jUQ5LJ9OInbRFScsEHWzwn0oAV0FFo+guHgYFGapp+itFBo07YUQp1WC rz/UMQso7wOPMXUoFTAc8c0/MTGuTANtSMFKTePlwLamXYvK4CtuPeh2v gLGSMkgwc00Zwwry7UNdRzn5Jt4jNvqTfMXdzZeu110aOIJy3eeCkgkIb NCUDmV3fM7vpOuaFa4jyHL+sPOfz9JmQerTKCBf0DiG6nH+RPLalig/py PGYSqolzLLJA8rZ5Z7exrivYxrHkTjlVpGRq+pgxVMmtq6a0KdPjj+1h0 7bK1/b0B/y5n/Ef+EGqniLLGVszOt2py1cLCnEiJdtBu4W+zHKhID/wpi Q==; X-CSE-ConnectionGUID: so1MJAXKT5SRMEZyLQ+gNQ== X-CSE-MsgGUID: zw0BDz3sSc24ZqNYPl9WQg== X-IronPort-AV: E=McAfee;i="6800,10657,11707"; a="83031463" X-IronPort-AV: E=Sophos;i="6.21,302,1763452800"; d="scan'208";a="83031463" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2026 11:19:31 -0800 X-CSE-ConnectionGUID: caaxDMaPSwuglvvX91K68w== X-CSE-MsgGUID: CNlHRdPdT3isOUcrHIwipw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,302,1763452800"; d="scan'208";a="213021977" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 20 Feb 2026 11:19:27 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vtW28-000000014QK-3xTk; Fri, 20 Feb 2026 19:19:24 +0000 Date: Sat, 21 Feb 2026 03:19:19 +0800 From: kernel test robot To: Ahmed Tiba , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Ahmed Tiba , Dmitry.Lamerov@arm.com, catalin.marinas@arm.com, bp@alien8.de, robh@kernel.org, rafael@kernel.org, will@kernel.org, conor@kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, krzk+dt@kernel.org, Michael.Zhao2@arm.com, tony.luck@intel.com Subject: Re: [PATCH v2 09/11] ACPI: APEI: share GHES CPER helpers Message-ID: <202602210334.nHzuTUCB-lkp@intel.com> References: <20260220-topics-ahmtib01-ras_ffh_arm_internal_review-v2-9-347fa2d7351b@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260220-topics-ahmtib01-ras_ffh_arm_internal_review-v2-9-347fa2d7351b@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260220_111931_497187_B44E3085 X-CRM114-Status: GOOD ( 11.67 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Ahmed, kernel test robot noticed the following build errors: [auto build test ERROR on 8bf22c33e7a172fbc72464f4cc484d23a6b412ba] url: https://github.com/intel-lab-lkp/linux/commits/Ahmed-Tiba/ACPI-APEI-GHES-share-macros-via-a-private-header/20260220-214812 base: 8bf22c33e7a172fbc72464f4cc484d23a6b412ba patch link: https://lore.kernel.org/r/20260220-topics-ahmtib01-ras_ffh_arm_internal_review-v2-9-347fa2d7351b%40arm.com patch subject: [PATCH v2 09/11] ACPI: APEI: share GHES CPER helpers config: i386-randconfig-012-20260220 (https://download.01.org/0day-ci/archive/20260221/202602210334.nHzuTUCB-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260221/202602210334.nHzuTUCB-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/202602210334.nHzuTUCB-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/acpi/apei/ghes_cper.c: In function 'ghes_handle_arm_hw_error': >> drivers/acpi/apei/ghes_cper.c:261:34: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration] 261 | FIELD_GET(CPER_ARM_ERR_TYPE_MASK, err_info->type), | ^~~~~~~~~ vim +/FIELD_GET +261 drivers/acpi/apei/ghes_cper.c 202 203 bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, 204 int sev, bool sync) 205 { 206 struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata); 207 int flags = sync ? MF_ACTION_REQUIRED : 0; 208 int length = gdata->error_data_length; 209 char error_type[120]; 210 bool queued = false; 211 int sec_sev, i; 212 char *p; 213 214 sec_sev = ghes_severity(gdata->error_severity); 215 if (length >= sizeof(*err)) { 216 log_arm_hw_error(err, sec_sev); 217 } else { 218 pr_warn(FW_BUG "arm error length: %d\n", length); 219 pr_warn(FW_BUG "length is too small\n"); 220 pr_warn(FW_BUG "firmware-generated error record is incorrect\n"); 221 return false; 222 } 223 224 if (sev != GHES_SEV_RECOVERABLE || sec_sev != GHES_SEV_RECOVERABLE) 225 return false; 226 227 p = (char *)(err + 1); 228 length -= sizeof(err); 229 230 for (i = 0; i < err->err_info_num; i++) { 231 struct cper_arm_err_info *err_info; 232 bool is_cache, has_pa; 233 234 /* Ensure we have enough data for the error info header */ 235 if (length < sizeof(*err_info)) 236 break; 237 238 err_info = (struct cper_arm_err_info *)p; 239 240 /* Validate the claimed length before using it */ 241 length -= err_info->length; 242 if (length < 0) 243 break; 244 245 is_cache = err_info->type & CPER_ARM_CACHE_ERROR; 246 has_pa = (err_info->validation_bits & CPER_ARM_INFO_VALID_PHYSICAL_ADDR); 247 248 /* 249 * The field (err_info->error_info & BIT(26)) is fixed to set to 250 * 1 in some old firmware of HiSilicon Kunpeng920. We assume that 251 * firmware won't mix corrected errors in an uncorrected section, 252 * and don't filter out 'corrected' error here. 253 */ 254 if (is_cache && has_pa) { 255 queued = ghes_do_memory_failure(err_info->physical_fault_addr, flags); 256 p += err_info->length; 257 continue; 258 } 259 260 cper_bits_to_str(error_type, sizeof(error_type), > 261 FIELD_GET(CPER_ARM_ERR_TYPE_MASK, err_info->type), 262 cper_proc_error_type_strs, 263 ARRAY_SIZE(cper_proc_error_type_strs)); 264 265 pr_warn_ratelimited(FW_WARN GHES_PFX 266 "Unhandled processor error type 0x%02x: %s%s\n", 267 err_info->type, error_type, 268 (err_info->type & ~CPER_ARM_ERR_TYPE_MASK) ? " with reserved bit(s)" : ""); 269 p += err_info->length; 270 } 271 272 return queued; 273 } 274 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki