]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 8 Jan 2021 23:41:47 +0000 (00:41 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 09:26:10 +0000 (10:26 +0100)
commitf51d57b96163b64f18acfcc7e001267bac7d5b07
tree4078bf4bf8b761fa3ef97023af9bdc3f092b96f4
parent5f62a4369c92374ad9f7b8a3ecbd8be6649579c2
nvme: constify static attribute_group structs

The only usage of these is to put their addresses in arrays of pointers
to const attribute_groups. Make them const to allow the compiler to put
them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c
drivers/nvme/target/fcloop.c