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 602FCA034E; Sun, 6 Feb 2022 05:00:21 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7596B411DF; Sun, 6 Feb 2022 04:59:16 +0100 (CET) Received: from out162-62-57-49.mail.qq.com (out162-62-57-49.mail.qq.com [162.62.57.49]) by mails.dpdk.org (Postfix) with ESMTP id 6BBD741172 for ; Sun, 6 Feb 2022 04:59:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644119945; bh=s/4aI8pOSO4Mr19eRB64b/fQszGQBbk16r4UKGXTK5Y=; h=From:To:Subject:Date:In-Reply-To:References; b=lbp1mtnNRxTLX0JtlMZJqYtQ8obk023ryCt/FyVzrM1fbCBwPZKNH4RSHFJHuPy4/ 0Ak6UvoflzfJxBRNc2BEe0C4HGICFJD3+Md5+VrtwoGq5HMXPFWenXHQEnEl0I9jw2 HCh9JPrydsCY/9Li5eHoso4x1WslDXajlOWv0ZtE= 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: xmsmtpt1644119944thy07hnci Message-ID: X-QQ-XMAILINFO: Mdw6+lqugK2CjNEBsN4yTVz8r6jlOeeIEm0A6Z7qAjwO8ZStTF15StNFEpmdfO baT8z7sbS/ezKjSW71lK1Oq2eanGtUoQlwvKgKRbFHZjKKRVcilvL9+Zycs3oWs/pQ01g7AvBS4d QiHlLcDsT5K6aIxTHTktqojBLbX+KXkE+yYZxxGro0ZFuB89GIuF1G05kdH4tpluHVYf9Ahquqlg ghJLEJGL5AkKQlyRuwzonKzobE121LRIR+pzJ+qnMNL2bZrRvPpQNn/YUACDq4Qg7HrpsvUe8Tj8 L032sy6chaTWBNS/AwD1fof9whLtVzw/fnWndsuHabZXINbZsqe68LMDeRPxyLJSgTPMD9PkyRy5 +7RNprQJb53A4hZdCV/wiwpf+6pHAEhqIxt3yenKMBwz2/4XnohjWjefTwecfNavJDd8k1AkeKYX XQvOaOcb93PKzLspf20A0q5rVI3jwR5PnbSUnocDOyI5ezSqWc0DaJLeYumrW4BKk7DdeDr3fixJ ncG8ynvplka0sLWrytS/o4TNMS6a1ae61BVzFlKC4z89PbmNqM1drbzx5fX2W9GUo4brNV6m+wzp Zk34o341wHzjVxnQIugJ39/Z6nb1R+u9KGcehQ8It9tsTqOCLQdvmnX7ehumkxwNCbAN6FeWuSHV dfO9FVPKvswQ7xzGLwYYIedBsQxx3di9EpKRN2tG4UL2NdCu+c2BbAvzwlwIY6oNxshPUJA9Ry58 az2MuGKkYQXJe/1X8Fs4mMoMISV5uYRfDMvHe1h7nlnzdzAzH4a8W/v3qZqWUGjpsCdZkL1DARAf lSbOYDgdCVxqXkUG8AjiOK75JUcER5R/agxbRPx/vq36RRrkt7x26zVsUjgHRefz4= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH 13/16] eal: add define guards to avoid multi-inclusion Date: Sun, 6 Feb 2022 11:58:43 +0800 X-OQ-MSGID: <20220206035846.2840462-13-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 --- lib/eal/include/rte_eal_paging.h | 5 +++++ lib/eal/windows/include/rte_virt2phys.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/eal/include/rte_eal_paging.h b/lib/eal/include/rte_eal_paging.h index c60317d0f5..0ee5dd467f 100644 --- a/lib/eal/include/rte_eal_paging.h +++ b/lib/eal/include/rte_eal_paging.h @@ -2,6 +2,9 @@ * Copyright(c) 2020 Dmitry Kozlyuk */ +#ifndef _RTE_EAL_PAGING_H_ +#define _RTE_EAL_PAGING_H_ + #include #include @@ -96,3 +99,5 @@ rte_mem_page_size(void); __rte_internal int rte_mem_lock(const void *virt, size_t size); + +#endif /* _RTE_EAL_PAGING_H_ */ diff --git a/lib/eal/windows/include/rte_virt2phys.h b/lib/eal/windows/include/rte_virt2phys.h index 4bb2b4aafe..06992f208d 100644 --- a/lib/eal/windows/include/rte_virt2phys.h +++ b/lib/eal/windows/include/rte_virt2phys.h @@ -2,6 +2,9 @@ * Copyright (c) 2020 Dmitry Kozlyuk */ +#ifndef _RTE_VIRT2PHYS_H_ +#define _RTE_VIRT2PHYS_H_ + /** * @file virt2phys driver interface */ @@ -32,3 +35,5 @@ DEFINE_GUID(GUID_DEVINTERFACE_VIRT2PHYS, */ #define IOCTL_VIRT2PHYS_TRANSLATE CTL_CODE( \ VIRT2PHYS_DEVTYPE, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS) + +#endif /* _RTE_VIRT2PHYS_H_ */ -- 2.25.1