From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9975CA034E; Sun, 6 Feb 2022 04:59:28 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA70641154; Sun, 6 Feb 2022 04:59:06 +0100 (CET) Received: from out203-205-221-240.mail.qq.com (out203-205-221-240.mail.qq.com [203.205.221.240]) by mails.dpdk.org (Postfix) with ESMTP id 5B063410E7 for ; Sun, 6 Feb 2022 04:59:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644119940; bh=TkgPK7e3PAzJFYUivL2s+/vSYoEaF/eGSKlApV0WKBI=; h=From:To:Subject:Date:In-Reply-To:References; b=gy5bWMb/SZyjry8OJsn6W/P1WPNdZOVrhothnsPAf1DxzqYr+IOQf2Y1IsiK1Hcnb zY/SMhAYnZsri3+8n6KRww12qvSSbSsD5IEVFxF5vwN3DQuOISWREm4n/PE+Lz7NeG 2SAk+dLJz3JVsT462KBkILooOdMSevBNgpxexzE0= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszc10.qq.com (NewEsmtp) with SMTP id EAE16474; Sun, 06 Feb 2022 11:58:46 +0800 X-QQ-mid: xmsmtpt1644119939ta6ydkua4 Message-ID: X-QQ-XMAILINFO: OP+c3nkhx29M0naSHqWrXL3CtR+WMVhdHoKWrzKqL9ZRMZh5yKhIKlNUm8GjHS HW0q1KMn/0brqJx42GShWhz8jxBKNj5/KswYFbBYSzjRWPOKhTuA0GINikcsXOW4IGpvAEVzOeWj UTCYw8ywiFpOCau/pXv1pHV3ZUHxKfpymenzBo7LnCVmvp6PSIwZ5Yb0gc4swW5AKi+u5NG9fSjX YC8CxoFkNbcH+jXfGmygzE+RGDLb6Hk/FMS5DOno4w0q762XsrLSk9N2cnqQflMKHRXhWZA1yOAo /Poj2jBX09nW6U0P+lQwPeHpXcsGePd//rJAxNngWzyEkqdA8ob5b8Q4TPp4MEptHVu6e4FHEcw7 DcvRt+ZpPXVKzaJ1ePoEBCx/lWtbcSHAL4a1T6kkm+4cZhBcz8DTfDL6wb3Wv8wzM+SLbxAEIP17 xegAtPzxV79ygTL3PvHoee3uQ78ErbQhkfBPBQ7S2QbV9cCpCSI+4Q87BQy4tBT5aV85DTx35d1s 8AW67Jfumnvv6JbeCK4dR3KGvRZKQsA69TTnpFzv4vagmqeLrkNrYjjYJY0voGPpmLbugdQEDxq0 ZeXKBMoOewN7LQ3OeY2R4TWnF9/sWFi8cupkN0NBk8cBZEYJF45VCV5HtTPeLSptnXaKlCir6Nev BKdKWcouLW0cz7f0Kbh42D+351RQi9iKstowi9PwoiTto4sQh0gqWsz4FLvDRSYenI/+kvw/M3bN d+VvCybp7Urh8P2GLrdPZYeCvXxLVKREuw4D/wCAIcXpszKC1cV0OAGpkWU9U6EwR0c0NN8Mj5k4 ACbVb2uQzC63a7Mzr2Jw2C3jumRhNL1TCz1U5Hr2wzbOZbYOvEvfPHhe/ROUFIV0lbaHOoN+p3kn vdV+fJyDg0MzzQl1Nqskc= From: Weiguo Li 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 X-OQ-MSGID: <20220206035846.2840462-6-liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220206035846.2840462-1-liwg06@foxmail.com> References: <20220206035846.2840462-1-liwg06@foxmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li --- 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 #include @@ -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