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(+)
@@ -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_ */
@@ -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_ */
@@ -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_ */