diff options
author | Arjan van de Ven <arjan@infradead.org> | 2005-11-28 10:22:25 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-12-13 20:11:01 -0500 |
commit | 0ad78200baf1f85a21e6b26c225717ad80980d8f (patch) | |
tree | 7f5ffcd60c5bb1dd9a2ef943b2b0950bd5ac5b55 /drivers/scsi/ch.c | |
parent | ce155ccecd4094e7b5e68058d26db691713240fc (diff) |
[SCSI] Mark some core scsi data structures const
patch below marks a few scsi core datastructures as const, so that they end up
in the .rodata section and don't cacheline share with things that get dirtied
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ch.c')
-rw-r--r-- | drivers/scsi/ch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index ccbbae2bf478..0920220f3313 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c | |||
@@ -75,7 +75,7 @@ static int vendor_counts[CH_TYPES-4]; | |||
75 | module_param_array(vendor_firsts, int, NULL, 0444); | 75 | module_param_array(vendor_firsts, int, NULL, 0444); |
76 | module_param_array(vendor_counts, int, NULL, 0444); | 76 | module_param_array(vendor_counts, int, NULL, 0444); |
77 | 77 | ||
78 | static char *vendor_labels[CH_TYPES-4] = { | 78 | static const char * vendor_labels[CH_TYPES-4] = { |
79 | "v0", "v1", "v2", "v3" | 79 | "v0", "v1", "v2", "v3" |
80 | }; | 80 | }; |
81 | // module_param_string_array(vendor_labels, NULL, 0444); | 81 | // module_param_string_array(vendor_labels, NULL, 0444); |
@@ -140,7 +140,7 @@ static struct file_operations changer_fops = | |||
140 | #endif | 140 | #endif |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static struct { | 143 | static const struct { |
144 | unsigned char sense; | 144 | unsigned char sense; |
145 | unsigned char asc; | 145 | unsigned char asc; |
146 | unsigned char ascq; | 146 | unsigned char ascq; |