From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 403F723EA92; Mon, 27 Oct 2025 19:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761592630; cv=none; b=VU8OlA9glT57AjTXRIE1qxwbWwOsg/WNRFlx9haetvJxCGpHZBZIEvlOP/ZoT6chK0W/FOP+wo8GoLREN7+RuQH+y0YZWDWGhR/cLfszruhDed9OtH17rWKoQ9rTL6kIQU5LIpjlV+fLqb035IvyvBciF1ZsC0YHiPoQXgi7PF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761592630; c=relaxed/simple; bh=c/sTJGSrtcFJg6TZx6qLNn5Utne08fwgXZix1ngylAI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CjhdiV/h36JuIZE8BBxzpxgFFHcFseW8Mj07jIkU2iOfzRzBr+1gOEBM9JpoGaoVOWEAmkGRbVEoURkPD9N7ZKuN9/bZyIng1acTc6duaGRMafurezj3A6Brmyjj3Vyk3vuCWslLQd647W9fSJI8NKcj2/3VcCDErVMTu5o2eaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uk1ap7gG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uk1ap7gG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4094C4CEF1; Mon, 27 Oct 2025 19:17:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761592630; bh=c/sTJGSrtcFJg6TZx6qLNn5Utne08fwgXZix1ngylAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uk1ap7gGJ61Wyg78o3g9fVOocqpsXnw/HJzuRHlrz7vSeVntLovw4/SEm0aDiEtSh cLMDu0Wf+FKyJ8jyWlfnjZUMlxylrqqEdFRGulAOyny8pD4NxpClXbghpjXQWSFW+u Fnznf151dM8q1DivhlrguUxJ7Bf3Co/dq7hZtbFA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Saket Dumbre , Xi Ruoyao , Huacai Chen , "Rafael J. Wysocki" Subject: [PATCH 6.6 37/84] ACPICA: Work around bogus -Wstringop-overread warning since GCC 11 Date: Mon, 27 Oct 2025 19:36:26 +0100 Message-ID: <20251027183439.809378232@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027183438.817309828@linuxfoundation.org> References: <20251027183438.817309828@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xi Ruoyao commit 6e3a4754717a74e931a9f00b5f953be708e07acb upstream. When ACPI_MISALIGNMENT_NOT_SUPPORTED is set, GCC can produce a bogus -Wstringop-overread warning, see [1]. To me, it's very clear that we have a compiler bug here, thus just disable the warning. Fixes: a9d13433fe17 ("LoongArch: Align ACPI structures if ARCH_STRICT_ALIGN enabled") Link: https://lore.kernel.org/all/899f2dec-e8b9-44f4-ab8d-001e160a2aed@roeck-us.net/ Link: https://github.com/acpica/acpica/commit/abf5b573 Link: https://gcc.gnu.org/PR122073 [1] Co-developed-by: Saket Dumbre Signed-off-by: Saket Dumbre Signed-off-by: Xi Ruoyao Acked-by: Huacai Chen Cc: All applicable [ rjw: Subject and changelog edits ] Link: https://patch.msgid.link/20251021092825.822007-1-xry111@xry111.site Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/acpica/tbprint.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/acpi/acpica/tbprint.c +++ b/drivers/acpi/acpica/tbprint.c @@ -95,6 +95,11 @@ acpi_tb_print_table_header(acpi_physical { struct acpi_table_header local_header; +#pragma GCC diagnostic push +#if defined(__GNUC__) && __GNUC__ >= 11 +#pragma GCC diagnostic ignored "-Wstringop-overread" +#endif + if (ACPI_COMPARE_NAMESEG(header->signature, ACPI_SIG_FACS)) { /* FACS only has signature and length fields */ @@ -135,4 +140,5 @@ acpi_tb_print_table_header(acpi_physical local_header.asl_compiler_id, local_header.asl_compiler_revision)); } +#pragma GCC diagnostic pop }