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 9AA7EA034E; Sun, 6 Feb 2022 17:24:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79D244069D; Sun, 6 Feb 2022 17:24:12 +0100 (CET) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by mails.dpdk.org (Postfix) with ESMTP id A875540685 for ; Sun, 6 Feb 2022 17:24:10 +0100 (CET) Received: by mail-lj1-f180.google.com with SMTP id a25so16283255lji.9 for ; Sun, 06 Feb 2022 08:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sd7Ij5k9ZXQKzIvJnMxPNBXaPxdRBYZNSrChRqTgPYM=; b=iuoj9qMuXodpVsnRJFee4PFtZa7s6r5opBpZun+hAyXuMSFqI1lhlCXC9TattnZxge ldPKdguizFWx7F3wyZtnRKPXV+FJ8YGlHNG4b3cZd8UT7H/3vX7uuha80Ns7Mp0mUne7 MIZLcTq7RdKJ11r8wXaprDkOQt8z6ag3VsWSLcNvGQ3TLfWffm9hZc2COJy6Srf02ZtF gle1uSHSOtvIGAlPIfGwuUChvDYfBfwh3g6ZnqpC+sX7F+WujRpPtZrEdMdTM7zoEKFR UDPxztL17NPAPdOWk/EZAv7HUdKd+08G7uDJvtmOkL6ke/CrVlfrLLuFEP22WnEEZoJj Y6CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sd7Ij5k9ZXQKzIvJnMxPNBXaPxdRBYZNSrChRqTgPYM=; b=WAXLy1Q9asdWcY1MN9pZjZ41fEAtLY2BOPjpFrxOUsl8V4F9oakp3T8YaxkFqPes+X W+vHaaGJCwPFARPBd85Ltj3COnjOTZCge3x7g8ViKNcVAZk1SDlcNQzmREvCywDHhmuQ cayUkwlE1DZkF84LdkiBXn1x9oaufTEsA5EVFLPVW8XAy/dCmZ70sIRWsT6DDvO0Z4Rf CHskhfUlbZcFgiSmGE9K9Hukr7L6FBXzGAhA1xBzM+DY8t73MJvl03cM5aOG+Het9CcH ux5Rj03/m0HnFBctNYHi1NSXAMpp/HuskXPXD7dcwlVFZyMK9rbVLF1KkGyQBqsPhYwh khWQ== X-Gm-Message-State: AOAM533Dd5JBlFT2hUCc2qnjBZsD6szk8RxOaVh2B+uANrPnbrm1UNox KQ2surxg3vLLaCgFXfsG/wo= X-Google-Smtp-Source: ABdhPJwwQXoX68joIK3k65+OsnvqF0RY3Nh2YHlPp7EZtkT4iHJAGXd9BgORI7ODQSE9LznOkA1AvQ== X-Received: by 2002:a2e:a361:: with SMTP id i1mr6071754ljn.146.1644164650101; Sun, 06 Feb 2022 08:24:10 -0800 (PST) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id g13sm1146873lfc.145.2022.02.06.08.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Feb 2022 08:24:09 -0800 (PST) Date: Sun, 6 Feb 2022 19:24:08 +0300 From: Dmitry Kozlyuk To: Weiguo Li Cc: dev@dpdk.org Subject: Re: [PATCH 13/16] eal: add define guards to avoid multi-inclusion Message-ID: <20220206192408.34d1d736@sovereign> In-Reply-To: References: <20220206035846.2840462-1-liwg06@foxmail.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 2022-02-06 11:58 (UTC+0800), Weiguo Li: > 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_ */ Acked-by: Dmitry Kozlyuk Probably should have: Fixes: 2a5d547a4a9b ("eal/windows: implement basic memory management") Cc: dmitry.kozliuk@gmail.com