Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li <liw...@foxmail.com> Acked-by: Dmitry Kozlyuk <dmitry.kozl...@gmail.com> --- lib/eal/include/rte_eal_paging.h | 5 +++++ lib/eal/windows/include/rte_virt2phys.h | 5 +++++ 2 files changed, 10 insertions(+)
diff --git a/lib/eal/include/rte_eal_paging.h b/lib/eal/include/rte_eal_paging.h index c60317d0f5..75c4291484 100644 --- a/lib/eal/include/rte_eal_paging.h +++ b/lib/eal/include/rte_eal_paging.h @@ -2,6 +2,9 @@ * Copyright(c) 2020 Dmitry Kozlyuk */ +#ifndef RTE_EAL_PAGING_H +#define RTE_EAL_PAGING_H + #include <stdint.h> #include <rte_compat.h> @@ -96,3 +99,5 @@ rte_mem_page_size(void); __rte_internal int rte_mem_lock(const void *virt, size_t size); + +#endif /* RTE_EAL_PAGING_H */ diff --git a/lib/eal/windows/include/rte_virt2phys.h b/lib/eal/windows/include/rte_virt2phys.h index 4bb2b4aafe..d0eae33141 100644 --- a/lib/eal/windows/include/rte_virt2phys.h +++ b/lib/eal/windows/include/rte_virt2phys.h @@ -2,6 +2,9 @@ * Copyright (c) 2020 Dmitry Kozlyuk */ +#ifndef RTE_VIRT2PHYS_H +#define RTE_VIRT2PHYS_H + /** * @file virt2phys driver interface */ @@ -32,3 +35,5 @@ DEFINE_GUID(GUID_DEVINTERFACE_VIRT2PHYS, */ #define IOCTL_VIRT2PHYS_TRANSLATE CTL_CODE( \ VIRT2PHYS_DEVTYPE, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) + +#endif /* RTE_VIRT2PHYS_H */ -- 2.25.1