svn commit: r288224 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Fri Sep 25 18:49:27 UTC 2015


Author: mav
Date: Fri Sep 25 18:49:25 2015
New Revision: 288224
URL: https://svnweb.freebsd.org/changeset/base/288224

Log:
  Constify ctl_serialize_table.

Modified:
  head/sys/cam/ctl/ctl.c
  head/sys/cam/ctl/ctl_ser_table.c

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c	Fri Sep 25 18:37:14 2015	(r288223)
+++ head/sys/cam/ctl/ctl.c	Fri Sep 25 18:49:25 2015	(r288224)
@@ -10776,7 +10776,7 @@ ctl_check_for_blockage(struct ctl_lun *l
     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

Modified: head/sys/cam/ctl/ctl_ser_table.c
==============================================================================
--- head/sys/cam/ctl/ctl_ser_table.c	Fri Sep 25 18:37:14 2015	(r288223)
+++ head/sys/cam/ctl/ctl_ser_table.c	Fri Sep 25 18:49:25 2015	(r288224)
@@ -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},


More information about the svn-src-head mailing list