[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen/arm: add inclusion guards
commit aea1a62f74a0f86946c06a2fa2ad825d6f05962e Author: Federico Serafini <federico.serafini@xxxxxxxxxxx> AuthorDate: Fri May 16 16:21:25 2025 -0700 Commit: Stefano Stabellini <stefano.stabellini@xxxxxxx> CommitDate: Fri May 16 17:21:42 2025 -0700 xen/arm: add inclusion guards MISRA C Directive 4.10 states that: "Precautions shall be taken in order to prevent the contents of a header file being included more than once". Add inclusion guards where missing to address violations of the guideline. Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/arm/efi/efi-boot.h | 6 ++++++ xen/arch/arm/include/asm/efibind.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/xen/arch/arm/efi/efi-boot.h b/xen/arch/arm/efi/efi-boot.h index dcad46ca72..d2a09ad3a1 100644 --- a/xen/arch/arm/efi/efi-boot.h +++ b/xen/arch/arm/efi/efi-boot.h @@ -3,6 +3,10 @@ * is intended to be included by common/efi/boot.c _only_, and * therefore can define arch specific global variables. */ + +#ifndef ARM_EFI_BOOT_H +#define ARM_EFI_BOOT_H + #include <xen/device_tree.h> #include <xen/libfdt/libfdt.h> #include <asm/setup.h> @@ -1003,6 +1007,8 @@ static void __init efi_arch_flush_dcache_area(const void *vaddr, UINTN size) __flush_dcache_area(vaddr, size); } +#endif /* ARM_EFI_BOOT_H */ + /* * Local variables: * mode: C diff --git a/xen/arch/arm/include/asm/efibind.h b/xen/arch/arm/include/asm/efibind.h index 09dca7a8c9..92b8bad0bb 100644 --- a/xen/arch/arm/include/asm/efibind.h +++ b/xen/arch/arm/include/asm/efibind.h @@ -1,2 +1,7 @@ +#ifndef ARM_EFIBIND_H +#define ARM_EFIBIND_H + #include <xen/types.h> #include <asm/arm64/efibind.h> + +#endif /* ARM_EFIBIND_H */ -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |