RDMA/rtrs: Constify static struct attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 30 Sep 2020 22:40:04 +0000 (00:40 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Oct 2020 23:44:52 +0000 (20:44 -0300)
commit3c4e919b48f65860462f7cb94f2954a9a3fffbc4
tree67bd9138b018512137105804c4df006bea5f8796
parent42d5179c892e2d543fd25bdfbea98151189026ea
RDMA/rtrs: Constify static struct attribute_group

The only usage of these is to pass their address to sysfs_create_group()
and sysfs_remove_group(), both which takes const pointers. Make it const
to allow the compiler to put them in read-only memory.

Link: https://lore.kernel.org/r/20200930224004.24279-3-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt-sysfs.c
drivers/infiniband/ulp/rtrs/rtrs-srv-sysfs.c