From: Stephen Hemminger Date: Fri, 23 Dec 2016 15:57:54 +0000 (+0100) Subject: eal: make driver pointer const in device struct X-Git-Tag: spdx-start~5234 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=71ff78a7f7411e659708d26af8563fc78835ef39;p=dpdk.git eal: make driver pointer const in device struct The info in rte_device about driver is immutable and shouldn't change. Signed-off-by: Stephen Hemminger Acked-by: Jan Blunck Acked-by: Shreyansh Jain --- diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 1708244258..b17791f5de 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 */ };