summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedi
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2025-01-02 21:08:42 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2025-01-02 21:08:42 +0100
commitebbf01f9f4e6b4100655567266d96d893df14362 (patch)
tree92ec060f921c26b2b40ac9879aac23700713b724 /drivers/scsi/qedi
parentMerge patch series "Update lpfc to revision 14.4.0.7" (diff)
parentscsi: qla4xxx: Constify 'struct bin_attribute' (diff)
downloadlinux-ebbf01f9f4e6b4100655567266d96d893df14362.tar.xz
linux-ebbf01f9f4e6b4100655567266d96d893df14362.zip
Merge patch series "scsi: Constify 'struct bin_attribute'"
Thomas Weißschuh <linux@weissschuh.net> says: The sysfs core now allows instances of 'struct bin_attribute' to be moved into read-only memory. Make use of that to protect them against accidental or malicious modifications. Link: https://lore.kernel.org/r/20241216-sysfs-const-bin_attr-scsi-v1-0-f0a5e54b3437@weissschuh.net Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedi')
-rw-r--r--drivers/scsi/qedi/qedi_dbg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qedi/qedi_dbg.h b/drivers/scsi/qedi/qedi_dbg.h
index fdda12ef13b0..5a1ec4542183 100644
--- a/drivers/scsi/qedi/qedi_dbg.h
+++ b/drivers/scsi/qedi/qedi_dbg.h
@@ -91,7 +91,7 @@ struct Scsi_Host;
struct sysfs_bin_attrs {
char *name;
- struct bin_attribute *attr;
+ const struct bin_attribute *attr;
};
int qedi_create_sysfs_attr(struct Scsi_Host *shost,