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 B58EDA034F; Wed, 9 Feb 2022 08:24:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4A5B441157; Wed, 9 Feb 2022 08:24:26 +0100 (CET) Received: from out203-205-221-205.mail.qq.com (out203-205-221-205.mail.qq.com [203.205.221.205]) by mails.dpdk.org (Postfix) with ESMTP id CE20141141 for ; Wed, 9 Feb 2022 08:24:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644391460; bh=GbbyVIo6nhjyVx6YsvxUQXwE8gcu97iAY8W+vvvOIxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=xn0Z0NOTbmxUjXXvqaMds6R/OgUWSZbdQlyS9wktlbAXYqa8WMXIuYxfb6AhZSBMZ 2lMl/8p/VjuyDQt3M0k1pWCVw5QeuKnNA3D4Gn7uPoz+szQgweueKlyAVV8Y/y3XMu y3nXTQF6UA2fhhK22Gl1rXjqePHSla3+jtj+KNos= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 6090E84A; Wed, 09 Feb 2022 15:24:09 +0800 X-QQ-mid: xmsmtpt1644391459tfurm6ae5 Message-ID: X-QQ-XMAILINFO: NzOHSugmTg7X3hOPXxFGDtE0K9BfrxzJVmCrfBZYFdRNjXVHuRbeTfc1RC941B eck/dvHcDGy4G/qWtPwgkWXEUxT1ShuCbdKXz2zJr4uwcqtjvFsc1EOlJLdRhHcnqWYjvoLR8ifi MsPpR2svy7+Io4jGCu4YYYcofBwfew4DoMB+hWkprJT+lUBzmGaBUYsWt1NqENO66cc4lTPlk7Z6 FLs0h+SL+5MjyhsxWS4asZK+MdTyv76xaxYKZf8Ab131EBBDwap79DyO+QlOtQFmnIlm0fi5Lrfg 1CmiaMqEu/fU1B2iwPzXo5WXPfV3PH4L21DpyeOkgKgu0OKjc0VGoBTA3VQtwpWiIwCnHWcZqm0U qHJQK/O8r/nZz3A014LEri4+iKJjqxyKK+aPonEb/PYWgZ5HwCk/fYhdK1MzhXw1rVDE4QpXANs3 YKPh4qZOcF8FSsnDeiCNHxw+9POu9kUgyh5qGUDjoRiiVA4XAtvo2oFIogZRBz//mKXKrUQvHcCw 8A1/VL/U7pKH9vAo0waDIzgmV2Hdvxluy21LwyqNIRFwF6mRQ2aSDQ0MU+mOxDs6KLhwv124pnrR PgWXnLYrOkCs25M/9kEQiyJq4oKbmMY/4BGPWwyTvnOgXmGjdOd6xZw1HcdpV7jT2qk67XNlvmMl tesTeWNI5EBEacl1ulJrG4Sex9tdQCT2IlIXX3PTrkxZpoeXBTOdJQKsbrrI12VleGveNbu4fxMY z3Wyla1mdEMC3Fpt//rSGqyqcOY/T06jpSoTY7G1ys0rp/DmNRJe4EZfUUSMXt7UEP/eUE7G8ztS sgMjTGOSyvJtRLFCO/GItOH2RzmWTYvw1XzW3Wu2ztJzPNA2FXxUODgLO36SbXH4jpzG+LUHKLXX Jzur+FEmlMbW3BO2Q7kCDILiRoazOWox5DUkxA11kW From: Weiguo Li To: dev@dpdk.org Cc: Dmitry Kozlyuk Subject: [PATCH v3 2/4] eal: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 15:24:06 +0800 X-OQ-MSGID: <6c83243e022702617d5147584d8f8396bcac4c2b.1644390802.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