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 9BB1E21C160; Mon, 27 Oct 2025 19:12:31 +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=1761592351; cv=none; b=Sfy1QDwNkF9xPkADqAnLoY1mUHW6vJgSJFZtBWw99aJBUZ3mtep7R3VTr4BmkutxhHufMXmQxQQ194f6bCN6IllrNM4HX0MFaKmcEG3pQFRhoowTLz/BP54U4vEVvTko95a9dLONF1J3hxl9vr32EgVB2NU9fg4DkDzcfLv+Qhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761592351; c=relaxed/simple; bh=IJj1gDkAeegAAUgCAWQ7+GE4YZ38dWJdNpSfuMKDi9E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=odwXtEs794rK04F4IS4VVWbfVyPJVv6CZ0tZZv7ECsfot5L0DNG7XplUzE+tU3ghJ4M+VTlWSmsfwxsBO3byMeKtM2IZ9lFsEKDhzouyREVQ27SH8OZcsybAlR0uM4iqCwNTzdwNjFfQ6iaTx8PW8nfbR7As5rIeLHgVEr09cDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wMFXp8xA; 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="wMFXp8xA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 301F3C4CEF1; Mon, 27 Oct 2025 19:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761592351; bh=IJj1gDkAeegAAUgCAWQ7+GE4YZ38dWJdNpSfuMKDi9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wMFXp8xAxX/ruMxiuPFCxEvbXC4XiIUQYG/O1sjf22zK4Sy00vGwjAb3Zle1k+3ko dFR8wi4RHYdMDjZWgMW/UXnEEvoA9gBwEvqay5qpCsnx8iTNROPqk2T2ZgKXtNCarh QAbWEP2kP3GKZiEi3raCd8ljI/M++fLE6X0Q3T9c= 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.1 089/157] ACPICA: Work around bogus -Wstringop-overread warning since GCC 11 Date: Mon, 27 Oct 2025 19:35:50 +0100 Message-ID: <20251027183503.658380259@linuxfoundation.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251027183501.227243846@linuxfoundation.org> References: <20251027183501.227243846@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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 @@ -94,6 +94,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 */ @@ -134,6 +139,7 @@ acpi_tb_print_table_header(acpi_physical local_header.asl_compiler_id, local_header.asl_compiler_revision)); } +#pragma GCC diagnostic pop } /*******************************************************************************