From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.33549.1612782268065330792 for ; Mon, 08 Feb 2021 03:04:28 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC9CE31B; Mon, 8 Feb 2021 03:04:27 -0800 (PST) Received: from e120189.arm.com (unknown [10.57.13.244]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B79E83F719; Mon, 8 Feb 2021 03:04:26 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, ardb+tianocore@kernel.org, leif@nuviainc.com Cc: sami.mujawar@arm.com Subject: [PATCH v2 14/26] ArmPkg: Fix Ecc error 6001 in ArmSoftFloatLib Date: Mon, 8 Feb 2021 11:03:34 +0000 Message-Id: <20210208110346.31211-15-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210208110346.31211-1-Pierre.Gondois@arm.com> References: <20210208110346.31211-1-Pierre.Gondois@arm.com> From: Pierre Gondois This patch fixes the following Ecc reported error: All include file contents should be guarded by a #ifndef statement. Signed-off-by: Pierre Gondois --- The changes can be seen at: https://github.com/PierreARM/edk2/tree/1552_Ecc_ArmPkg_BIS_v2 ArmPkg/Library/ArmSoftFloatLib/platform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ArmPkg/Library/ArmSoftFloatLib/platform.h b/ArmPkg/Library/ArmSoftFloatLib/platform.h index 07800a9d5b79..fddf9de04d52 100644 --- a/ArmPkg/Library/ArmSoftFloatLib/platform.h +++ b/ArmPkg/Library/ArmSoftFloatLib/platform.h @@ -1,11 +1,17 @@ /* * Copyright (c) 2019, Linaro Limited + * Copyright (c) 2021, Arm Limited. All rights reserved.
* * SPDX-License-Identifier: BSD-2-Clause-Patent */ +#ifndef ARM_SOFT_FLOAT_LIB_H_ +#define ARM_SOFT_FLOAT_LIB_H_ + #define LITTLEENDIAN 1 #define INLINE static inline #define SOFTFLOAT_BUILTIN_CLZ 1 #define SOFTFLOAT_FAST_INT64 #include "opts-GCC.h" + +#endif // ARM_SOFT_FLOAT_LIB_H_ -- 2.17.1