From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v9 3/3] Move common functions in eal_memory.c Date: Mon, 27 Jul 2015 02:35:44 +0200 Message-ID: <9226659.1PhHhf3XUd@xps13> References: <1437852868-6031-1-git-send-email-rkerur@gmail.com> <1437852990-6096-1-git-send-email-rkerur@gmail.com> <1437852990-6096-3-git-send-email-rkerur@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ravi Kerur Return-path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id 7E565C44A for ; Mon, 27 Jul 2015 02:37:01 +0200 (CEST) Received: by wicmv11 with SMTP id mv11so119489486wic.0 for ; Sun, 26 Jul 2015 17:37:01 -0700 (PDT) In-Reply-To: <1437852990-6096-3-git-send-email-rkerur@gmail.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-07-25 12:36, Ravi Kerur: > --- a/lib/librte_eal/bsdapp/eal/eal_memory.c > +++ b/lib/librte_eal/bsdapp/eal/eal_memory.c [...] > +/* > + * Wrapper function to initialize contigmem. > + */ > +int > +rte_eal_hugepage_init(void) > +{ > + return rte_eal_contigmem_init(); > +} The useless wrapper can be avoid by renaming the function: contigmem_init to hugepage_init. > +/* > + * Wrapper function, no-op here. > + */ > +void > +test_proc_pagemap_readable(void) > { > + return; > } [...] > --- a/lib/librte_eal/common/eal_private.h > +++ b/lib/librte_eal/common/eal_private.h [...] > +/** > + * This function checks /proc filesystem > + * on Linux. > + * > + * This function is private to the EAL. > + */ > +void > +test_proc_pagemap_readable(void); This check is specific to Linux. So it should not be in the common file.