From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796306059; b=Ud1G0UDas0ETas5yG5zmz8G2BLi4E8uSUs+q45uDvky1FqTu0MkpNmogg7/q3Qt7je8Q BN4EJplvNHhqgKhNcfDkKDzXHS2HLHxOwsrQwdUhbzhyAW+yxB1NwWJPKffp762GUFCWT STr7SjBL4NtvxAIS9uOd0ieRdILgw2/CHN7RpZxzXJ1KPZGAInG6DezBw3nOTl+j5xxCY uV+s5c9AF4D2TWywIJnv0FoQ6Brw8HmJ8rWAU/HYsDNskHzV9BpPRPAXttwG6EUZVFhU+ kSOOBYA/ISkU08LgC5owx9JaTdjcIKmOkQni2u+gUPbUb8lK+jY3eYqxS5c403i5fuQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796306059; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=3XYjG0PXsrqc0E1/X+2KhS8YeAHyMxbtSH2rFjNdhwM=; b=wAIlql/Z9Lgru1Y3wwayBDdbX6lRV2rzCQtre6XjgWbOxWm5G84qrclc08G9BqsKJQ1M LOcN3QW4RQaEakyPsdzc7fbLHDKRBpXgaLA0xx8F4t78CB+jqPiBkuhzic0HUnrRwTN9K dwjbkFwqqC9mID3z205SRxGLuWMVxEyMKRcPwCRYxx6esmKzt9D0G9DiT01jde1nBPgfn 8EP9lNanMiUFXMF81fC5aUosAe4IFj9nBwG6CBpa09WUCTZVluqJbO+4HzFAtKlIzzVSw oduAQm6G7Y0OKXzh2OoLL1Z3p/DIdxZxLZVh7G9K02lC0VpxerFJg1HbXsJ0y6/XP/w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TlnYsW7+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 654A1606A333; Thu, 3 Dec 2026 13:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TlnYsW7+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 024C61F00893; Thu, 3 Dec 2026 13:54:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796306059; bh=3XYjG0PXsrqc0E1/X+2KhS8YeAHyMxbtSH2rFjNdhwM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=TlnYsW7+J4pUiYSBrbP3/CkKznO7WV34+xgVEA/wzNIXVKWm3DYqRLUts9FNeVxWR KY5jg/iJwNfiB4ZI501ccEXRCfmt6QjV9JAPB9A7bJCmE0lVGmCi1XbKB9YnIxOpYV FU0DgTyNCV7rr3dmk7V/pm7xx/c+IwYxj3t414PDGkhoMwfe63mgQKxuaY73fRF0Zg clk1S1WoFZHWQ5lu0/MJcPrdIgjoeGx5jiZDOYDtVCH/yKMzYdGSbycv57wyjZFGmt 01qCplssWfRYoMU1dJqDomai1ekWQ2rVql0mTRltnWczrhjCmpgMUU2SfnYqRpy9Tf POS3Klcz/afjQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 11/22] ACPI: APEI: GHES: reset FRU metadata for each CPER section Reply-To: sashiko-reviews@lists.linux.dev To: "Ahmed Tiba" Cc: linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-11-157aac88560b@arm.com> References: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com> <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-11-157aac88560b@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 13:54:18 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ACPI: APEI: redundant fru_id and fru_text init in ghes_do_proc() -- commit 0d739dca5227548b4f00f1c242222832499b47e9 Author: Ahmed Tiba ACPI: APEI: GHES: reset FRU metadata for each CPER section This commit resets fru_id and fru_text at the start of each CPER section iteration in ghes_do_proc() so sections without FRU validation bits do not inherit metadata from earlier sections. Link: https://sashiko.dev/#/message/20260708144441.6E1181F000E9%40smtp.kern= el.org > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > index 94f539f5d676f..84a8b7ee911f4 100644 > --- a/drivers/acpi/apei/ghes.c > +++ b/drivers/acpi/apei/ghes.c > @@ -998,6 +998,9 @@ static void ghes_do_proc(struct ghes *ghes, > apei_estatus_for_each_section(estatus, gdata) { > sec_type =3D (guid_t *)gdata->section_type; > sec_sev =3D ghes_severity(gdata->error_severity); > + fru_id =3D &guid_null; > + fru_text =3D ""; [Severity: Low] Can the function-scope declarations of fru_id and fru_text in ghes_do_proc() be moved into the loop body (or into the final else branch where log_non_standard_event() consumes them)? With these unconditional resets at the start of every iteration, the outer initializers (fru_id =3D &guid_null and fru_text =3D "") are now dead and redundant, since neither variable is read before the loop or after it. Moving the declarations into the loop also structurally prevents FRU metadata from leaking across sections. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-topics-ahm= tib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com?part=3D11