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 A3F9EA034E; Wed, 9 Feb 2022 04:03:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A364F4117A; Wed, 9 Feb 2022 04:02:56 +0100 (CET) Received: from out203-205-221-149.mail.qq.com (out203-205-221-149.mail.qq.com [203.205.221.149]) by mails.dpdk.org (Postfix) with ESMTP id A75394114A for ; Wed, 9 Feb 2022 04:02:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644375766; bh=ohMkLmmcjFqE5xdKa7RuurwUIvaiAVa62TUkOKWEkcA=; h=From:To:Subject:Date:In-Reply-To:References; b=StgRw6SBT0prenQoSNPSl4ohUzeH7HHzg2K20CclWb/kII1Aq5mjWDCg3Y5uD2EXD qd+NtmXAF/E9IWP82GPiKl9hbB7Pz32oI9D3N5eny5xA30Cpj4NPUwzgHZN3ibpSP5 ZIirhubeq7XDW37HRr+uZr0vtaMldagDdF7XrUmU= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 98A6079; Wed, 09 Feb 2022 11:02:24 +0800 X-QQ-mid: xmsmtpt1644375765ts3xpx27m Message-ID: X-QQ-XMAILINFO: NjAc2I+VLG8A4lhpwGNA//oDHe8CgXRovu61NVreSBsWcnurcsjN4WYovFvVl8 z+X2hDpgf701lF+lHRjs4H4+0OFFiCrS4gf9TXJskkRv1IxuPhii68JdEKKgP1RtjpeDVIQRfUqz 6kGS9Kt89tuNweP4fHdjXKvWfPNac01qBNumRbOr8NZW1Xu23mrtnPW/n7g68H+wjE7lLW+bmIj0 gDI9hiQxDu8HzxGi8J/j9mQc9mQaRAgVGwVfuJb3PoAVgN9NPlYHgYgJA4iM5m5X6lw/hDlsj+dg mAMo53UF4y9k64xpd0Peqq0j2wchTn5iLQNcO1ZOeoEqJqjeQTsTo1GAcoj8tsvCLT/uO4hH3bXR T6zA+GoX2u3xjH53axsRYAwUVK5VWsEtqHQ0ggmFgHLOXd/QJ0va63FhbK35rkw1C/oIInV4TKY+ 00cO2tz9uZW2Ka4XFUNjTnEuDBRtN1PZcvaLNEWkfOtUrikadj+IYiAkcSoiB1rYOjRsqlLe/Hlq Lg11ZtBbu+xoyVMnmF92aYKYj07Mj0J3fbYEEEzEZ2UpUiSZCtve2CVytY6DLP32Lp8EoYs3eB68 DZGirH8PdxUvMvQulAIwT9DfvkzbvGmd0byT8Z3709Zjm6hhlGNsZTkUzu9itYrELHlY8qUj8iOy 2aXI0ni9n4OILiee2IVt53lP7bRAsXjjYj1N4eEOkTy5bgJvsWepVtL/L2Iq2XW6qGsetDQklY0t NZHy/7RYVRl0jgJVvTx/rZdnqKZ3tnOnl0mPPZHIKUbjVAmq5KIbU8BLeoPY8Xb6SToLi1spadEm c6n3WllYe68LF/ZHSbrSa3XpAWyXxi6PmJPb1G8NAcUhj1kniJMD+VGu7EqhaVvG4FiVIuhLXxv0 /x/1eLpams From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 06/16] net/netvsc: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:02:14 +0800 X-OQ-MSGID: <77384c09491aa614cc1e55a3e7db95c52b60e378.1644374873.git.liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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..125df08a21 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..fc3364f8ce 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..36b5a56d34 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