From: Arvind Yadav Date: Thu, 17 Aug 2017 13:22:54 +0000 (+0530) Subject: net: ibm: ibmvnic: constify vio_device_id X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8c37bc677af3458dd5598d22467fb913f31c5bb2;p=openwrt%2Fstaging%2Fblogic.git net: ibm: ibmvnic: constify vio_device_id vio_device_id are not supposed to change at runtime. All functions working with vio_device_id provided by work with const vio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 5ac873173b2e..cb8182f4fdfa 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -4022,7 +4022,7 @@ static int ibmvnic_resume(struct device *dev) return 0; } -static struct vio_device_id ibmvnic_device_table[] = { +static const struct vio_device_id ibmvnic_device_table[] = { {"network", "IBM,vnic"}, {"", "" } };