summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-05-05 19:39:20 +0000
committerkmacy <kmacy@FreeBSD.org>2008-05-05 19:39:20 +0000
commit9dc66be7968f0fdd657867a3a0accae9a35121fb (patch)
tree26379ff6d312d7158688ba6ce5b9503867a92dc0 /sys
parent08bec89ccb234ee911d0c6ac90665cda82aa1969 (diff)
downloadFreeBSD-src-9dc66be7968f0fdd657867a3a0accae9a35121fb.zip
FreeBSD-src-9dc66be7968f0fdd657867a3a0accae9a35121fb.tar.gz
conditionally define PANIC_IF
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/rdma/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/rdma/types.h b/sys/contrib/rdma/types.h
index 33a1a62..a8c22ee 100644
--- a/sys/contrib/rdma/types.h
+++ b/sys/contrib/rdma/types.h
@@ -29,10 +29,12 @@ typedef int32_t __s32;
#define IS_ERR(ptr) ((unsigned long)(ptr) > (unsigned long)(-1000))
#define PTR_ERR(ptr) ((long)(ptr))
+#ifndef PANIC_IF
#define PANIC_IF(exp) do { \
if (exp) \
panic("BUG func %s line %u: %s", __FUNCTION__, __LINE__, #exp); \
} while (0)
+#endif
#define container_of(p, stype, field) ((stype *)(((uint8_t *)(p)) - offsetof(stype, field)))
OpenPOWER on IntegriCloud