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 614D7A034E; Sun, 6 Feb 2022 04:59:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE74E4116D; Sun, 6 Feb 2022 04:59:09 +0100 (CET) Received: from out162-62-58-211.mail.qq.com (out162-62-58-211.mail.qq.com [162.62.58.211]) by mails.dpdk.org (Postfix) with ESMTP id CF6EC41143 for ; Sun, 6 Feb 2022 04:59:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644119942; bh=VZ8g8l6OU6H7zg4cuko493yzYll7qELHzUf5YVb6daQ=; h=From:To:Subject:Date:In-Reply-To:References; b=A/aleGS6P2VzNyAVU3+9gjtKRgcBneRFJRxnb8MjhabBXrlub9mMweecSHrSG5Lcx OcgwJEaOfGAyBVOLvyh2YbPwK+Wgqoty/0yt0MK1OuhC50lEzdBjlvL3Fyr/rNA97M ltouCTvgeRLHue/VDf4ZSN5SnzsT2nlpkxpdi9tA= 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: xmsmtpt1644119941txz6wih2k Message-ID: X-QQ-XMAILINFO: MShfLn39PbN2W84uaksQEBRyPyuX6f+iftoiarlIObotPhepM4i+/bOuBNX8SZ AfVpLt3AsO8mKXmlcmgVbv5jfDwrnEkivHxgpYiDPIKYgAByl8dnhazZctQwlscEZqFzS68A1R7T tQqVlX7NKOn+Pd3OF60n9Jk3LdzYLUSLabMKszjT3YuMsalLOj6bqZiDfadOpkOIQt3xaenkL9Ju cT5M8xJ4M1XM2RBBp2AGtKwcw9LSdAOQHzTRe4/cvucx5v47JrkKM6LSe3IyJbhWWt77GvvA33v2 qdGKVhFVtUJl25EREm/kKX5cyyLs0X/G1A7RYipg6VEl7rSWCmmyNDhOeRKiQUBzu7r/eQaHssw6 VsH2L0Gkoyklox+hSRtfLhhN+n6BRDSrd+1YeoVLGFrxNzdqm7EYTEHkmIYE/dDB2wc9E2Tp0NtM pzmQGsgiE1nbvGeoQskmYPHjtg3ZlwYwBp/GNwUniE5jiiNdogiOPwsDWeCD74euQXBQJZ8gxxIz 0yNZ9w8fEoJipq9mUMMdd0wpaNYVsthY1zCPLksSdV/TjrlbiGvOxUadwCCv5t7ngSBDQvvEPwiy X4+9jUDGhVBzxKMCPOxS1z7x58keIe8RmTvCq256y2AozuLNWKEqoSUSEnVdK668XRKTjY7yu62x 9PLhptIJJZhx7QpgB33VXxTByvGwOGW10YKQYaC67JaYbXicgEJm8HOXjucBpuW73kN9477SgPl/ JVYLcFJ+XNxyi0jDLpjsnFiY+GzKBY2zV+ETnR25avG9yEWkzmx8u2ZMIogE6IV5Mu9UL3f9F7sq Krp02h49iuiloARZb9SyKjhheZHaTzrvMrmypGgatSDVCsHxrxULlFi4BGBAZWX6W6sBjTVSm5hj 50lAjhJi9/2dr7OWTY70oS4RQOckSnFx5dRj3d3SBHrd1uz0hTCNQGmu1gG6I4afQ3bGnSpDViEV QRBNdZlRY= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH 09/16] net/virtio: add define guards to avoid multi-inclusion Date: Sun, 6 Feb 2022 11:58:39 +0800 X-OQ-MSGID: <20220206035846.2840462-9-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/virtio/virtio_rxtx_packed_avx.h | 5 +++++ drivers/net/virtio/virtio_rxtx_packed_neon.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/drivers/net/virtio/virtio_rxtx_packed_avx.h b/drivers/net/virtio/virtio_rxtx_packed_avx.h index 584ac72f95..950abc8b12 100644 --- a/drivers/net/virtio/virtio_rxtx_packed_avx.h +++ b/drivers/net/virtio/virtio_rxtx_packed_avx.h @@ -2,6 +2,9 @@ * Copyright(c) 2010-2020 Intel Corporation */ +#ifndef _VIRTIO_RXTX_PACKED_AVX_H_ +#define _VIRTIO_RXTX_PACKED_AVX_H_ + #include #include #include @@ -237,3 +240,5 @@ virtqueue_dequeue_batch_packed_vec(struct virtnet_rx *rxvq, return 0; } + +#endif /* _VIRTIO_RXTX_PACKED_AVX_H_ */ diff --git a/drivers/net/virtio/virtio_rxtx_packed_neon.h b/drivers/net/virtio/virtio_rxtx_packed_neon.h index c222ebf00c..a946649bdd 100644 --- a/drivers/net/virtio/virtio_rxtx_packed_neon.h +++ b/drivers/net/virtio/virtio_rxtx_packed_neon.h @@ -2,6 +2,9 @@ * Copyright(c) 2020 Arm Corporation */ +#ifndef _VIRTIO_RXTX_PACKED_NEON_H_ +#define _VIRTIO_RXTX_PACKED_NEON_H_ + #include #include #include @@ -291,3 +294,5 @@ virtqueue_dequeue_batch_packed_vec(struct virtnet_rx *rxvq, return 0; } + +#endif /* _VIRTIO_RXTX_PACKED_NEON_H_ */ -- 2.25.1