mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
xen/efi: efibind: fix MISRA C 2012 Directive 4.10 violation
Prevent header file from being included more than once by adding ifndef guard. In order to be close to gnu-efi code - for x86_64, use the same guard - for arm64, that there is no guard in gnu-efi, for consistency, use a similar format and position to the x86_64 guard Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Acked-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
1 parent
9dc3f006a8
commit
4d96a4fe2a
2 files changed
+7
-2
No files matched your search
@@ -16,7 +16,8 @@ Abstract:
|
||||
Revision History
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef AARCH64_EFI_BIND
|
||||
#define AARCH64_EFI_BIND
|
||||
#ifndef __GNUC__
|
||||
#pragma pack()
|
||||
#endif
|
||||
@@ -205,6 +206,8 @@ typedef uint64_t UINTN;
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||
@@ -16,7 +16,8 @@ Abstract:
|
||||
Revision History
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef X86_64_EFI_BIND
|
||||
#define X86_64_EFI_BIND
|
||||
#ifndef __GNUC__
|
||||
#pragma pack()
|
||||
#endif
|
||||
@@ -278,3 +279,4 @@ typedef uint64_t UINTN;
|
||||
#pragma warning ( disable : 4731 ) // Suppress warnings about modification of EBP
|
||||
#endif
|
||||
|
||||
#endif
|
||||