aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-09-25 18:49:25 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-09-25 18:49:25 +0000
commit5d4dfee032e1f70e7f13249476060693dc7e5785 (patch)
tree7682db9aea8798f0c40f06737df4f1b37cd5f623
parent2f1c4e0ebf68520d093658c3f8b10191f81e43b9 (diff)
downloadsrc-5d4dfee032e1f70e7f13249476060693dc7e5785.tar.gz
src-5d4dfee032e1f70e7f13249476060693dc7e5785.zip
Constify ctl_serialize_table.
Notes
Notes: svn path=/head/; revision=288224
-rw-r--r--sys/cam/ctl/ctl.c2
-rw-r--r--sys/cam/ctl/ctl_ser_table.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index c356c1d46b63..a7a27dc2fd4e 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -10776,7 +10776,7 @@ ctl_check_for_blockage(struct ctl_lun *lun, union ctl_io *pending_io,
union ctl_io *ooa_io)
{
const struct ctl_cmd_entry *pending_entry, *ooa_entry;
- ctl_serialize_action *serialize_row;
+ const ctl_serialize_action *serialize_row;
/*
* The initiator attempted multiple untagged commands at the same
diff --git a/sys/cam/ctl/ctl_ser_table.c b/sys/cam/ctl/ctl_ser_table.c
index 8d5d6bce81ba..ef0ee2fbbddc 100644
--- a/sys/cam/ctl/ctl_ser_table.c
+++ b/sys/cam/ctl/ctl_ser_table.c
@@ -61,7 +61,7 @@
#define xO CTL_SER_EXTENTOPT /* Optional extent check */
#define xS CTL_SER_EXTENTSEQ /* Sequential extent check */
-static ctl_serialize_action
+const static ctl_serialize_action
ctl_serialize_table[CTL_SERIDX_COUNT][CTL_SERIDX_COUNT] = {
/**>IDX_ :: 2nd:TUR RD WRT UNM SYN MDSN MDSL RQSN INQ RDCP RES LSNS FMT STR*/
/*TUR */{ pS, pS, pS, pS, pS, bK, bK, bK, pS, pS, bK, pS, bK, bK},