]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg: Fix Ecc error 6001 in MmCommunicationDxe
authorPierre Gondois <Pierre.Gondois@arm.com>
Tue, 22 Dec 2020 12:35:02 +0000 (12:35 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 15 Apr 2021 19:53:39 +0000 (19:53 +0000)
This patch fixes the following Ecc reported error:
All include file contents should be guarded by
a #ifndef statement.

This patch replaces a "#if !defined [...]" statement
by a "#ifndef [...]" statement, preventing Ecc to
throw an error.

Edk2 coding standard stating that:
"Names starting with one or two underscores, such as
_MACRO_GUARD_FILE_NAME_H_, must not be used."
the include guard is also updated.

Ref:
https://edk2-docs.gitbook.io/edk-ii-c-coding-standards-specification/
5_source_files/53_include_files#
5-3-5-all-include-file-contents-must-be-protected-by-a-include-guard

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
ArmPkg/Drivers/MmCommunicationDxe/MmCommunicate.h

index fcc346ba7e3e441e0946af3ec5a6c770b0abfe68..32753947e1cbd5f8db79499d9680bb49923376bf 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
 \r
-  Copyright (c) 2016-2018, ARM Limited. All rights reserved.\r
+  Copyright (c) 2016-2021, Arm Limited. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
-#if !defined _MM_COMMUNICATE_H_\r
-#define _MM_COMMUNICATE_H_\r
+#ifndef MM_COMMUNICATE_H_\r
+#define MM_COMMUNICATE_H_\r
 \r
 #define MM_MAJOR_VER_MASK        0xEFFF0000\r
 #define MM_MINOR_VER_MASK        0x0000FFFF\r
@@ -19,4 +19,4 @@
 #define MM_CALLER_MAJOR_VER      0x1UL\r
 #define MM_CALLER_MINOR_VER      0x0\r
 \r
-#endif /* _MM_COMMUNICATE_H_ */\r
+#endif /* MM_COMMUNICATE_H_ */\r