diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-07-16 19:09:29 +0200 |
|---|---|---|
| committer | Breno Leitao <leitao@debian.org> | 2026-10-16 09:17:20 -0700 |
| commit | ee4f267ada12bd5eb8b675018bdd60e60da2c089 (patch) | |
| tree | 8edca3ee5201aebba9161e82828f103c1e8f4a65 /drivers/virt/coco | |
| parent | 459d4b9a893f53d5635f24f44464f1988aaaf07e (diff) | |
configfs: Constify configfs_bin_attribute
The configfs_bin_attribute structures defined by driver are never
modified. Make them const.
As there are only two users of these attributes, adapt them in the same
commit to avoid a phased transition.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://patch.msgid.link/20260716-configfs-const-base-v1-4-c545a4053cb5@weissschuh.net
Signed-off-by: Breno Leitao <leitao@debian.org>
Diffstat (limited to 'drivers/virt/coco')
| -rw-r--r-- | drivers/virt/coco/guest/report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virt/coco/guest/report.c b/drivers/virt/coco/guest/report.c index 96e89ddf4989..ad400fbe53f0 100644 --- a/drivers/virt/coco/guest/report.c +++ b/drivers/virt/coco/guest/report.c @@ -356,7 +356,7 @@ static struct configfs_attribute *tsm_report_attrs[] = { NULL, }; -static struct configfs_bin_attribute *tsm_report_bin_attrs[] = { +static const struct configfs_bin_attribute *const tsm_report_bin_attrs[] = { [TSM_REPORT_INBLOB] = &tsm_report_attr_inblob, [TSM_REPORT_OUTBLOB] = &tsm_report_attr_outblob, [TSM_REPORT_AUXBLOB] = &tsm_report_attr_auxblob, |
