From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [PATCH v9 06/25] eal: introduce init macros Date: Mon, 12 Sep 2016 09:15:07 +0200 Message-ID: References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-7-git-send-email-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" , hemant.agrawal@nxp.com To: Shreyansh Jain Return-path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id DFB8A2A58 for ; Mon, 12 Sep 2016 09:15:27 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id 1so127812004wmz.1 for ; Mon, 12 Sep 2016 00:15:27 -0700 (PDT) In-Reply-To: <1473257297-7221-7-git-send-email-shreyansh.jain@nxp.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" On Wed, Sep 7, 2016 at 4:07 PM, Shreyansh Jain wrote: > diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h > index fa74962..cf673e4 100644 > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -470,6 +470,16 @@ void rte_eal_pci_dump(FILE *f); > */ > void rte_eal_pci_register(struct rte_pci_driver *driver); > > +/** Helper for PCI device registeration from driver (eth, crypto) instance */ Typo: registration > +#define DRIVER_REGISTER_PCI(nm, pci_drv) \ > +RTE_INIT(pciinitfn_ ##nm); \ > +static void pciinitfn_ ##nm(void) \ > +{ \ > + (pci_drv).name = RTE_STR(nm);\ > + rte_eal_pci_register(&pci_drv); \ > +}\ > +DRIVER_EXPORT_NAME(nm, __COUNTER__) Checkpatch complains about a missing space. -- David Marchand