summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib')
-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