aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2023-03-22 12:53:58 -0700
committerMartin K. Petersen <[email protected]>2023-03-24 19:19:19 -0400
commite0d3f2c694e5db309af270a07fc570fe19902ba4 (patch)
treefdb5ca2464a9b0b6d32aa5dbc075cb9a0ff24e03 /include/linux
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 <[email protected]> Reviewed-by: John Garry <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Ming Lei <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Mike Christie <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux')
-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 *);