From: Weiguo Li <liwg06@foxmail.com>
To: dev@dpdk.org
Subject: [PATCH 06/16] net/netvsc: add define guards to avoid multi-inclusion
Date: Sun, 6 Feb 2022 11:58:36 +0800 [thread overview]
Message-ID: <tencent_7EC8558C030FDEE955048DCED5F7E548B306@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/netvsc/hn_nvs.h | 5 +++++
drivers/net/netvsc/hn_rndis.h | 5 +++++
drivers/net/netvsc/hn_var.h | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/drivers/net/netvsc/hn_nvs.h b/drivers/net/netvsc/hn_nvs.h
index 3766d2ee34..f1144897d9 100644
--- a/drivers/net/netvsc/hn_nvs.h
+++ b/drivers/net/netvsc/hn_nvs.h
@@ -3,6 +3,9 @@
* All rights reserved.
*/
+#ifndef _NETVSC_HN_NVS_H_
+#define _NETVSC_HN_NVS_H_
+
/*
* The indirection table message is the largest message
* received from host, and that is 112 bytes.
@@ -236,3 +239,5 @@ hn_nvs_send_sglist(struct vmbus_channel *chan,
return rte_vmbus_chan_send_sglist(chan, sg, sglen, nvs_msg, nvs_msglen,
(uint64_t)sndc, need_sig);
}
+
+#endif /* _NETVSC_HN_NVS_H_ */
diff --git a/drivers/net/netvsc/hn_rndis.h b/drivers/net/netvsc/hn_rndis.h
index 9a8251fc2f..7c3b750ccc 100644
--- a/drivers/net/netvsc/hn_rndis.h
+++ b/drivers/net/netvsc/hn_rndis.h
@@ -1,5 +1,8 @@
/* SPDX-License-Identifier: BSD-3-Clause */
+#ifndef _NETVSC_HN_RNDIS_H_
+#define _NETVSC_HN_RNDIS_H_
+
#include "rndis.h"
struct hn_data;
@@ -32,3 +35,5 @@ void hn_rndis_dump(const void *buf);
#else
#define hn_rndis_dump(buf)
#endif
+
+#endif /* _NETVSC_HN_RNDIS_H_ */
diff --git a/drivers/net/netvsc/hn_var.h b/drivers/net/netvsc/hn_var.h
index fbb3995507..53939efdd3 100644
--- a/drivers/net/netvsc/hn_var.h
+++ b/drivers/net/netvsc/hn_var.h
@@ -6,6 +6,9 @@
* All rights reserved.
*/
+#ifndef _NETVSC_HN_VAR_H_
+#define _NETVSC_HN_VAR_H_
+
#include <rte_eal_paging.h>
#include <ethdev_driver.h>
@@ -283,3 +286,5 @@ int hn_vf_reta_hash_update(struct rte_eth_dev *dev,
int hn_eth_rmv_event_callback(uint16_t port_id,
enum rte_eth_event_type event __rte_unused,
void *cb_arg, void *out __rte_unused);
+
+#endif /* _NETVSC_HN_VAR_H_ */
--
2.25.1
next prev 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 ` Weiguo Li [this message]
2022-02-06 3:58 ` [PATCH 07/16] net/qede: add define guards to avoid multi-inclusion Weiguo Li
2022-02-06 3:58 ` [PATCH 08/16] net/tap: " Weiguo Li
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_7EC8558C030FDEE955048DCED5F7E548B306@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).