summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-09-24 23:54:03 +0000
committermarius <marius@FreeBSD.org>2010-09-24 23:54:03 +0000
commitadf20f5d89c25bc46f4028a5305d8b93695e82ff (patch)
treead1ce0cc050dfaa905660d179f01af53940f312b /sys/dev/mpt
parentcff358c3df8330d3761087f73e9192c8b8f7fe6a (diff)
downloadFreeBSD-src-adf20f5d89c25bc46f4028a5305d8b93695e82ff.zip
FreeBSD-src-adf20f5d89c25bc46f4028a5305d8b93695e82ff.tar.gz
Take mpt_req_on_{free,pending}_list() out from under INVARIANTS as these
are generally useful and not just for debugging.
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/mpt/mpt.h b/sys/dev/mpt/mpt.h
index 9026142..f095bbf 100644
--- a/sys/dev/mpt/mpt.h
+++ b/sys/dev/mpt/mpt.h
@@ -1157,19 +1157,13 @@ mpt_tag_2_req(struct mpt_softc *mpt, uint32_t tag)
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 *mpt, request_t *req)
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
*/
OpenPOWER on IntegriCloud