summaryrefslogtreecommitdiff
path: root/include/linux/raid_class.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-03-22 12:53:58 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-24 19:19:19 -0400
commite0d3f2c694e5db309af270a07fc570fe19902ba4 (patch)
treefdb5ca2464a9b0b6d32aa5dbc075cb9a0ff24e03 /include/linux/raid_class.h
parent31435de9746670d884f84a3c094a401aa27747aa (diff)
scsi: core: Declare SCSI host template pointer members const
Declare the SCSI host template pointer members const and also the remaining SCSI host template pointers in the SCSI core. Reviewed-by: Benjamin Block <bblock@linux.ibm.com> Reviewed-by: John Garry <john.g.garry@oracle.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Mike Christie <michael.christie@oracle.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230322195515.1267197-4-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/raid_class.h')
-rw-r--r--include/linux/raid_class.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/raid_class.h b/include/linux/raid_class.h
index 5cdfcb873a8f..6a9b177d5c41 100644
--- a/include/linux/raid_class.h
+++ b/include/linux/raid_class.h
@@ -11,7 +11,7 @@ struct raid_template {
};
struct raid_function_template {
- void *cookie;
+ const void *cookie;
int (*is_raid)(struct device *);
void (*get_resync)(struct device *);
void (*get_state)(struct device *);