]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6dcb18613af2704785e114ff16ebad2667156371
tree67bd9138b018512137105804c4df006bea5f8796
parent7cda92255ba31beabb9feaeaa939730604ac0b58
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