summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav2017-08-17 15:22:53 +0200
committerDavid S. Miller2017-08-17 19:17:31 +0200
commit71450804c689e4c601cb2a3f9c0ff7182cde84e6 (patch)
treecf87d2be4a09e27e0fa8e94e77bd86be949662e9
parentbpf: no need to nullify ri->map in xdp_do_redirect (diff)
downloadkernel-qcow2-linux-71450804c689e4c601cb2a3f9c0ff7182cde84e6.tar.gz
kernel-qcow2-linux-71450804c689e4c601cb2a3f9c0ff7182cde84e6.tar.xz
kernel-qcow2-linux-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>
-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"},
{ "", "" }
};