From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v4 03/23] rte_device: make driver pointer const Date: Thu, 22 Dec 2016 12:48:55 +0530 Message-ID: <7a50decc-60e2-ecbe-f48f-b92ef3f6e5f6@nxp.com> References: <1482332986-7599-1-git-send-email-jblunck@infradead.org> <1482332986-7599-4-git-send-email-jblunck@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , Stephen Hemminger , To: Jan Blunck Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0075.outbound.protection.outlook.com [104.47.37.75]) by dpdk.org (Postfix) with ESMTP id DB97C10CE7 for ; Thu, 22 Dec 2016 08:15:22 +0100 (CET) In-Reply-To: <1482332986-7599-4-git-send-email-jblunck@infradead.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wednesday 21 December 2016 08:39 PM, Jan Blunck wrote: > From: Stephen Hemminger > > The info in rte_device about driver is immutable and > shouldn't change. > Acked-by: Jan Blunck > > Acked-by: Jan Blunck Not being picky - but, multiple Acked-by can be removed when this is applied. > --- > lib/librte_eal/common/include/rte_dev.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h > index 8840380..e5471a2 100644 > --- a/lib/librte_eal/common/include/rte_dev.h > +++ b/lib/librte_eal/common/include/rte_dev.h > @@ -122,7 +122,7 @@ struct rte_driver; > */ > struct rte_device { > TAILQ_ENTRY(rte_device) next; /**< Next device */ > - struct rte_driver *driver; /**< Associated driver */ > + const struct rte_driver *driver;/**< Associated driver */ > int numa_node; /**< NUMA node connection */ > struct rte_devargs *devargs; /**< Device user arguments */ > }; > Acked-by: Shreyansh Jain