Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liw...@foxmail.com>
---
 drivers/net/tap/tap_bpf_insns.h | 5 +++++
 drivers/net/tap/tap_log.h       | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/net/tap/tap_bpf_insns.h b/drivers/net/tap/tap_bpf_insns.h
index 1a91bbad13..c190793b89 100644
--- a/drivers/net/tap/tap_bpf_insns.h
+++ b/drivers/net/tap/tap_bpf_insns.h
@@ -2,6 +2,9 @@
  * Copyright 2017 Mellanox Technologies, Ltd
  */
 
+#ifndef TAP_BPF_INSNS_H
+#define TAP_BPF_INSNS_H
+
 #include <tap_bpf.h>
 
 /* bpf_insn array matching cls_q section. See tap_bpf_program.c file */
@@ -1694,3 +1697,5 @@ static struct bpf_insn l3_l4_hash_insns[] = {
        {0xbf,    0,    7,        0, 0x00000000},
        {0x95,    0,    0,        0, 0x00000000},
 };
+
+#endif /* TAP_BPF_INSNS_H */
diff --git a/drivers/net/tap/tap_log.h b/drivers/net/tap/tap_log.h
index fa06843a4c..5e4f0ebabb 100644
--- a/drivers/net/tap/tap_log.h
+++ b/drivers/net/tap/tap_log.h
@@ -3,8 +3,13 @@
  * Copyright 2017 Mellanox Technologies, Ltd
  */
 
+#ifndef TAP_LOG_H
+#define TAP_LOG_H
+
 extern int tap_logtype;
 
 #define TAP_LOG(level, fmt, args...) \
        rte_log(RTE_LOG_ ## level, tap_logtype, "%s(): " fmt "\n", \
                __func__, ## args)
+
+#endif /* TAP_LOG_H */
-- 
2.25.1

Reply via email to