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 04542A034E; Wed, 9 Feb 2022 04:16:43 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8399B41153; Wed, 9 Feb 2022 04:16:33 +0100 (CET) Received: from out203-205-251-53.mail.qq.com (out203-205-251-53.mail.qq.com [203.205.251.53]) by mails.dpdk.org (Postfix) with ESMTP id 5B554410FD for ; Wed, 9 Feb 2022 04:16:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644376585; bh=GbbyVIo6nhjyVx6YsvxUQXwE8gcu97iAY8W+vvvOIxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Q88Gsd6kfpuY3LX9LdoOypSOYX6c+wSawNaylefV0kwUaRnX4HauRRtejhTP5/32m 80IuBcbSSeUr6CHc0tJy86AI7p+O86D+iJrrMZrgm1fEQg/rMWFSLgDyeAoV8fixd9 nstc+HEanW9T+yH1KQXamtpao4UfLufKbZ/RLp98= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszc9.qq.com (NewEsmtp) with SMTP id 40D9F6E2; Wed, 09 Feb 2022 11:16:13 +0800 X-QQ-mid: xmsmtpt1644376573tl7qrd2so Message-ID: X-QQ-XMAILINFO: M7r/zttrUmlkwSivpoBnSvAhyjR5tKBQvvhTOAmT0fvghecVOIW85OIMHVDRsv KXbX1Y3dUeKSMJtxRMTn2xrXtFZBfbGnd3Bd/UITQKtEECcWfWjgytNjjQw8Gp3ZkLZpt+u6a419 VvYQ5TU74J5i5DG4+Q6t4lbjpo9yk2euTsCJWqjpN6GX4rXmJlcV4sbv6Zm5CXwK7EU0HPM8RYpX nu4+DwhfyhuinpVNRl+iY0vZ1tS8fqxkHrpB+bMYDyIIk4MoMMi3h20bBV3TZDnbLStrs0mTnjh1 lWS/u7dBkFbGjvCGzZ7iVqkpOQA77UxzRtQwgEoxArC1LyP9gIKB4QyyCMQT6H7AeJQlNCUtdx1T Z3DDmkD19dgz+uBPusyLJtNHO4cOx9riBFnS2J1HOdzGXAwJ8c/jxRSTDZsV8ILzK3JRxUs3ZIhO oXZEOM49sqTmUTYGvgiqAUincLuJJT1BOkTwvxhUK/dbI60ExrkOgK5xhiD+maG1owU9RzbsykYm JJDj4abgdNCdqMuq1Pl0n5vU1b5ftR+iJoRY5BpY9tEYFvvtoQzJx1xmS7/P/TqUqZPYK7flZ0Di oP8GubvpTlgFecKRtWZaNevZ+LLhSurwfZv+khnI6tU3/KPQQTTNkjZCDkZgeFyJ3vybOsXA6BAo NZrQsx6HTPMv0DUfmTivoEm3vWUZs/YvZ8cXTsEDA3gOikth8BHcjzM6Kube69I6C3mDyvqmAOZI 4gXoZMit5Zg2Rk19ZdywlxPo6axWZeOeDkyhvnp59zM2T5ZLZM8z/1SFerhCCSsirN3tg10ingNe VqBKi0H5tX/scvGeC4WuYBLiJKRm6m1lf8Vh4F4/hkkSP2h63PM+Ycmv2rMMvblu8Azqiz7MOM0Z j5vPRsv0M2wGpbEITINXrC2R4HSuYpmU2OO3u4HhR8 From: Weiguo Li To: dev@dpdk.org Cc: Dmitry Kozlyuk Subject: [PATCH v2 13/16] eal: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:16:10 +0800 X-OQ-MSGID: <2580fdd554b90f0cc4a1dfcb571270c0469e1f82.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 Acked-by: Dmitry Kozlyuk --- 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..75c4291484 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..d0eae33141 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