Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li <liw...@foxmail.com> --- v2: * update to a simple guard style --- drivers/event/octeontx/timvf_worker.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/event/octeontx/timvf_worker.h b/drivers/event/octeontx/timvf_worker.h index 3f1e77f1d1..ddb66c8f7c 100644 --- a/drivers/event/octeontx/timvf_worker.h +++ b/drivers/event/octeontx/timvf_worker.h @@ -2,6 +2,9 @@ * Copyright(c) 2017 Cavium, Inc */ +#ifndef TIMVF_WORKER_H +#define TIMVF_WORKER_H + #include <eventdev_pmd.h> #include <rte_common.h> @@ -443,3 +446,5 @@ timvf_add_entry_brst(struct timvf_ring * const timr, const uint16_t rel_bkt, timr_bkt_dec_lock(bkt); return nb_timers; } + +#endif /* TIMVF_WORKER_H */ -- 2.25.1