DPDK patches and discussions
 help / color / mirror / Atom feed
From: Weiguo Li <liwg06@foxmail.com>
To: dev@dpdk.org
Subject: [PATCH 08/16] net/tap: add define guards to avoid multi-inclusion
Date: Sun,  6 Feb 2022 11:58:38 +0800	[thread overview]
Message-ID: <tencent_3536C24107F37B61A4440420E69747EC7405@qq.com> (raw)
In-Reply-To: <20220206035846.2840462-1-liwg06@foxmail.com>

Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liwg06@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..d4e6bea3d7 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..667d9e6ab0 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


  parent reply	other threads:[~2022-02-06  3:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220206035846.2840462-1-liwg06@foxmail.com>
2022-02-06  3:58 ` [PATCH 02/16] event/octeontx: " Weiguo Li
2022-02-08 16:27   ` Thomas Monjalon
2022-02-09  3:02     ` [PATCH v2 00/16] " Weiguo Li
2022-02-09  6:29       ` Stephen Hemminger
2022-02-09  7:24       ` [PATCH v3 0/4] " Weiguo Li
2022-02-06  3:58 ` [PATCH 03/16] net/cxgbe: add define guards to avoid multiple inclusion Weiguo Li
2022-02-06  3:58 ` [PATCH 04/16] net/enetfec: " Weiguo Li
2022-02-06  3:58 ` [PATCH 05/16] net/i40e: " Weiguo Li
2022-02-06  3:58 ` [PATCH 06/16] net/netvsc: add define guards to avoid multi-inclusion Weiguo Li
2022-02-06  3:58 ` [PATCH 07/16] net/qede: " Weiguo Li
2022-02-06  3:58 ` Weiguo Li [this message]
2022-02-06  3:58 ` [PATCH 09/16] net/virtio: " Weiguo Li
2022-02-06  3:58 ` [PATCH 10/16] raw/ifpga/base: " Weiguo Li
2022-02-06  3:58 ` [PATCH 11/16] kni: " Weiguo Li
2022-02-06  3:58 ` [PATCH 12/16] acl: " Weiguo Li
2022-02-06  3:58 ` [PATCH 13/16] eal: " Weiguo Li
2022-02-06 16:24   ` Dmitry Kozlyuk
2022-02-06  3:58 ` [PATCH 14/16] efd: " Weiguo Li
2022-02-06  3:58 ` [PATCH 15/16] hash: " Weiguo Li
2022-02-06  3:58 ` [PATCH 16/16] pcapng: " Weiguo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_3536C24107F37B61A4440420E69747EC7405@qq.com \
    --to=liwg06@foxmail.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).