Date: Fri, 25 Sep 2015 18:49:26 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288224 - head/sys/cam/ctl Message-ID: <201509251849.t8PInQ3R085861@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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},
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509251849.t8PInQ3R085861>