summaryrefslogtreecommitdiff
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2005-11-28 16:22:25 +0100
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-13 18:11:01 -0700
commit0ad78200baf1f85a21e6b26c225717ad80980d8f (patch)
tree7f5ffcd60c5bb1dd9a2ef943b2b0950bd5ac5b55 /drivers/scsi/st.c
parentce155ccecd4094e7b5e68058d26db691713240fc (diff)
downloadlinux-3.10-0ad78200baf1f85a21e6b26c225717ad80980d8f.tar.gz
linux-3.10-0ad78200baf1f85a21e6b26c225717ad80980d8f.tar.bz2
linux-3.10-0ad78200baf1f85a21e6b26c225717ad80980d8f.zip
[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/st.c')
-rw-r--r--drivers/scsi/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 7ac6ea141ff..6d9078705c5 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -17,7 +17,7 @@
Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support
*/
-static char *verstr = "20050830";
+static const char *verstr = "20050830";
#include <linux/module.h>
@@ -134,7 +134,7 @@ static struct st_dev_parm {
#endif
/* Bit reversed order to get same names for same minors with all
mode counts */
-static char *st_formats[] = {
+static const char *st_formats[] = {
"", "r", "k", "s", "l", "t", "o", "u",
"m", "v", "p", "x", "a", "y", "q", "z"};