diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-10-01 00:40:03 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-10-01 20:44:51 -0300 |
commit | 42d5179c892e2d543fd25bdfbea98151189026ea (patch) | |
tree | 270d4c42888a3e37a7b860884dd81bc57fef1b60 /kernel/kheaders.c | |
parent | a03bfc37d59de316436c46f5691c5a972ed57c82 (diff) | |
download | linux-42d5179c892e2d543fd25bdfbea98151189026ea.tar.bz2 |
RDMA/core: Constify struct attribute_group
The only usage of the pma_table field in the ib_port struct is to pass its
address to sysfs_create_group() and sysfs_remove_group(). Make it const to
make it possible to constify a couple of static struct
attribute_group. This allows the compiler to put them in read-only memory.
Link: https://lore.kernel.org/r/20200930224004.24279-2-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'kernel/kheaders.c')
0 files changed, 0 insertions, 0 deletions