Author: marius
Date: Fri Sep 24 23:54:03 2010
New Revision: 213147
URL: http://svn.freebsd.org/changeset/base/213147

Log:
  Take mpt_req_on_{free,pending}_list() out from under INVARIANTS as these
  are generally useful and not just for debugging.

Modified:
  head/sys/dev/mpt/mpt.h

Modified: head/sys/dev/mpt/mpt.h
==============================================================================
--- head/sys/dev/mpt/mpt.h      Fri Sep 24 23:51:45 2010        (r213146)
+++ head/sys/dev/mpt/mpt.h      Fri Sep 24 23:54:03 2010        (r213147)
@@ -1157,19 +1157,13 @@ mpt_tag_2_req(struct mpt_softc *mpt, uin
        KASSERT(mpt->tgt_cmd_ptrs[rtg], ("no cmd backpointer"));
        return (mpt->tgt_cmd_ptrs[rtg]);
 }
-
+#endif
 
 static __inline int
 mpt_req_on_free_list(struct mpt_softc *, request_t *);
 static __inline int
 mpt_req_on_pending_list(struct mpt_softc *, request_t *);
 
-static __inline void
-mpt_req_spcl(struct mpt_softc *, request_t *, const char *, int);
-static __inline void
-mpt_req_not_spcl(struct mpt_softc *, request_t *, const char *, int);
-
-
 /*
  * Is request on freelist?
  */
@@ -1202,6 +1196,12 @@ mpt_req_on_pending_list(struct mpt_softc
        return (0);
 }
 
+#ifdef INVARIANTS
+static __inline void
+mpt_req_spcl(struct mpt_softc *, request_t *, const char *, int);
+static __inline void
+mpt_req_not_spcl(struct mpt_softc *, request_t *, const char *, int);
+
 /*
  * Make sure that req *is* part of one of the special lists
  */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to