aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmveth.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-17 18:52:53 +0530
committerDavid S. Miller <davem@davemloft.net>2017-08-17 10:17:31 -0700
commit71450804c689e4c601cb2a3f9c0ff7182cde84e6 (patch)
treecf87d2be4a09e27e0fa8e94e77bd86be949662e9 /drivers/net/ethernet/ibm/ibmveth.c
parentbpf: no need to nullify ri->map in xdp_do_redirect (diff)
downloadlinux-dev-71450804c689e4c601cb2a3f9c0ff7182cde84e6.tar.xz
linux-dev-71450804c689e4c601cb2a3f9c0ff7182cde84e6.zip
net: ibm: ibmveth: constify vio_device_id
vio_device_id are not supposed to change at runtime. All functions working with vio_device_id provided by <asm/vio.h> work with const vio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmveth.c')
-rw-r--r--drivers/net/ethernet/ibm/ibmveth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index d17c2b03f580..f210398200ec 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -1897,7 +1897,7 @@ static int ibmveth_resume(struct device *dev)
return 0;
}
-static struct vio_device_id ibmveth_device_table[] = {
+static const struct vio_device_id ibmveth_device_table[] = {
{ "network", "IBM,l-lan"},
{ "", "" }
};