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 6CBDAA034E; Wed, 9 Feb 2022 04:03:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EBF441199; Wed, 9 Feb 2022 04:02:57 +0100 (CET) Received: from out203-205-251-27.mail.qq.com (out203-205-251-27.mail.qq.com [203.205.251.27]) by mails.dpdk.org (Postfix) with ESMTP id EA36D41144 for ; Wed, 9 Feb 2022 04:02:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644375769; bh=oBkOHiNVb7hvN8V2gph6GOtRlfAVMXflm6MAaFi+9KA=; h=From:To:Subject:Date:In-Reply-To:References; b=HAP8ouzOJP+3bRN41oj1/P7ZXV4YRzFJarKLiMLHh/PPisrQUZPmW8CXlnpqX0s2y bKPWFp8QrUoE8B4OjwyM/2PUW/3uO5LRSau3tJvhimtGxcnmuU9ZIeI6nI+scy2CCS QQm2UEIDhItFPyKKkr/67eRDXDJA4HLCip3qOoAY= 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: xmsmtpt1644375767thz7nqeq8 Message-ID: X-QQ-XMAILINFO: ObFHHlrAm440tZTwwKPreet9pZL2tONKrgNowDv2oygZofmt77j6ZEKHxDpZ6g 3RI9SKi+mzQzYRczZZqmZQp2qpDJzqp9iAEe6OlzJ8xAk8nsgMowVEMgI+BiPGem3aeatySz8+Fi mQvvklbFy7hOtJkTMV2h38QHWId3J/7O+TIuzc3lDxAUOO7P6v8iyFPiCKtMWjyud10urpXFRaQx 6iUgwp0VG2Dp7GudGY5G1YzKtMEHszmlH1Jh9vhgjdF+CQvMo21ga5EVF1lYH/5DfBNJEX8TevGV CSuO9gixyZtBClz1FxEnNPcz+EFyd7KVZdQlz7KCl1WARkEzy92u+7ukIzze02yKAOSA0HZtPmlx mJCfhCPokqJepiJOQ/Hun4qjFhJbf/Jk1113Czy99Zy7/bD5m/tyis0kW3ZkH3VOBr/Epz9Nof7r q2edZ+9g+YI1jX+ci6SOjNCf3q5FiAtbqWbYBbVUfqnjirpJWJSZtRTlYrsP/Ws2O45/CwfLvHfc JH0i7fo5Kw2MIABb1GB1hXppIHgDjGu/XdLVqr8q1AJ6sS/bpc8aqwZ/463rtJydMjDTyik89a0q Jc2luyjupeJKvGSTcMltHBfOaD9X8JcPyfEHgwyJI7Ad1SnPhkN2GCFUCXkn2pI4xn9mliDXklHi RYnC1Y/K676A9+8mn4uRbDBBkbi7nzOJ7af6SQQYEAw/uqltYa89SHCPJEhjbKNqyXyHxKzxFUzK InGiS/pnhsxT8v0dwTpdJe0ORoucn6eV6qFziacl5z4jBUSDxA0t6u/944fp+IF8vPucp+qunHjp sdB+tCwQ7KuOPPDm+M+p7VZmTxoXGB2xFJAo2GYR4ymC13ycWM/u7DbhA3iWQrygYFwwQa1OzacY eBPm9AcuykDnHxoJxFAl5fnET723TAtyGohKckvVxjkfqnCWIpKBEF3A+ARqmLGpSQoOV2eYhe50 xeJct0xVE= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 09/16] net/virtio: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:02:17 +0800 X-OQ-MSGID: 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/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..7ac21763dd 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..116945efe8 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