xen/efi: efibind: fix MISRA C 2012 Directive 4.10 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 1 Aug 2022 12:21:18 +0000 (15:21 +0300)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 2 Aug 2022 00:16:56 +0000 (17:16 -0700)
commit4d96a4fe2ac08cc93f2e7eca56120792363cb950
tree6d2aed69f0328c1e08b785b05ba87304b813561f
parent9dc3f006a831cd20d531123f097e3de176ac3cae
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>
xen/arch/arm/include/asm/arm64/efibind.h
xen/arch/x86/include/asm/x86_64/efibind.h