From nobody Sun Feb 8 18:29:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98020+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98020+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1672934718; cv=none; d=zohomail.com; s=zohoarc; b=UNVfDrkbM+xdxluMLG9O+OWiu5hNFWg+zTEx2kykWRi5OEyHvJsbfjAxxs8wLlLLCLLEyPqCsXWhORxjXaUP7pKbFgFWODe3eg5kTvSJGCS6KmXdG7MBXitC2H06aOjPvQ5M+M9NJ99y9JO8SYiSDwfgY5h6asF2Wlzs+xLhgLc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672934718; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ZQqI2t07N3sYADmaRrtsO7YQZyCVn8oTE9/KXv0vPpM=; b=A3wYar6/Nu3AY18ipHm7cozY8A7VbMby6cWRWHbIdMuvgQRYQaX1afNj+WDq1fIb+V6WfPcRYY4xDmmNrphOm6sUPeyRZGS/2Pl01EiBd1Vfp8WlM3L2AhhsjlhBu5gRR8fHiMcNbwbRCZoqe7K0wNpZbZ6qX9bcS271O6ChV/c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98020+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1672934718356572.2095051651374; Thu, 5 Jan 2023 08:05:18 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6y9OYY1788612x1dSHHIQ20C; Thu, 05 Jan 2023 08:05:18 -0800 X-Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web10.16654.1672934717088853828 for ; Thu, 05 Jan 2023 08:05:17 -0800 X-Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 94F99B81B40; Thu, 5 Jan 2023 16:05:15 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2675DC433F0; Thu, 5 Jan 2023 16:05:12 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, bob.c.feng@intel.com, gaoliming@byosoft.com.cn, Ard Biesheuvel Subject: [edk2-devel] [PATCH 4/4] BaseTools/tools_def CLANG38: Suppress unaligned access warning Date: Thu, 5 Jan 2023 17:05:03 +0100 Message-Id: <20230105160503.1423627-5-ardb@kernel.org> In-Reply-To: <20230105160503.1423627-1-ardb@kernel.org> References: <20230105160503.1423627-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: TYeNPya4sPAslqihACAaIOjjx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672934718; bh=GIsJmi+gOIZoP872HRkkklKbdqGXjtlHF5ec99QdGd0=; h=Cc:Date:From:Reply-To:Subject:To; b=twq+J+XLhWHJmTm64xUZlXuSgUZw4QbgwHwOtDgBNiexMsUGUUJYflBZUCrFHiBNZB/ ClByfd+t1QXJeoGTfxtnu323WRHVz9G7V3Y6H4IJOYIDa/FzEWtCWf/hIdS1P51RrjpjE gouc8oHN0HlITHde7l+zVwIXQFTm/YPlryA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672934719040100009 Content-Type: text/plain; charset="utf-8" Even though the presence of the 'packed' pragma should be a strong hint that the misaligned placement of a GUID in a struct is intentional, recent Clang versions will object nonetheless, and break the build due to the presence of such GUIDs in the FPDT ACPI tables. This is obviously not something we can fix in the code, so let's just suppress the warning/error instead. Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index 9bf771385e33..380d4587335a 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -2580,7 +2580,7 @@ DEFINE CLANG38_X64_PREFIX =3D ENV(CLANG38_B= IN) DEFINE CLANG38_IA32_TARGET =3D -target i686-pc-linux-gnu DEFINE CLANG38_X64_TARGET =3D -target x86_64-pc-linux-gnu =20 -DEFINE CLANG38_WARNING_OVERRIDES =3D -Wno-parentheses-equality -Wno-tau= tological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empt= y-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option = -Wno-unused-but-set-variable -Wno-unused-const-variable +DEFINE CLANG38_WARNING_OVERRIDES =3D -Wno-parentheses-equality -Wno-tau= tological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empt= y-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option = -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-acce= ss DEFINE CLANG38_ALL_CC_FLAGS =3D DEF(GCC48_ALL_CC_FLAGS) DEF(CLANG3= 8_WARNING_OVERRIDES) -fno-stack-protector -mms-bitfields -Wno-address -Wno-= shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redecla= ration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-= implicit-float -ftrap-function=3Dundefined_behavior_has_been_optimized_awa= y_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference =20 ########################### --=20 2.39.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98020): https://edk2.groups.io/g/devel/message/98020 Mute This Topic: https://groups.io/mt/96074681/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-