diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 15:22:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-17 19:17:31 +0200 |
commit | 71450804c689e4c601cb2a3f9c0ff7182cde84e6 (patch) | |
tree | cf87d2be4a09e27e0fa8e94e77bd86be949662e9 /drivers/net/ethernet/ibm/ibmveth.c | |
parent | bpf: no need to nullify ri->map in xdp_do_redirect (diff) | |
download | linux-71450804c689e4c601cb2a3f9c0ff7182cde84e6.tar.xz 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>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmveth.c')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmveth.c | 2 |
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"}, { "", "" } }; |