attribute_groups are not supposed to change at runtime. So mark the non-const structs as const. Arvind Yadav (4): [PATCH 1/4] scsi: scsi_transport_iscsi: constify attribute_group structures. [PATCH 2/4] scsi: iscsi_boot_sysfs: constify attribute_group structures. [PATCH 3/4] scsi: scsi_transport_fc: constify attribute_group structures. [PATCH 4/4] scsi: scsi_transport_spi: constify attribute_group structures. drivers/scsi/iscsi_boot_sysfs.c | 10 +++++----- drivers/scsi/scsi_transport_fc.c | 2 +- drivers/scsi/scsi_transport_iscsi.c | 12 ++++++------ drivers/scsi/scsi_transport_spi.c | 4 ++-- include/linux/iscsi_boot_sysfs.h | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) -- 1.9.1