diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-05-05 19:39:20 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-05-05 19:39:20 +0000 |
commit | 9dc66be7968f0fdd657867a3a0accae9a35121fb (patch) | |
tree | 26379ff6d312d7158688ba6ce5b9503867a92dc0 /sys/contrib/rdma/types.h | |
parent | 08bec89ccb234ee911d0c6ac90665cda82aa1969 (diff) | |
download | FreeBSD-src-9dc66be7968f0fdd657867a3a0accae9a35121fb.zip FreeBSD-src-9dc66be7968f0fdd657867a3a0accae9a35121fb.tar.gz |
conditionally define PANIC_IF
Diffstat (limited to 'sys/contrib/rdma/types.h')
-rw-r--r-- | sys/contrib/rdma/types.h | 2 |
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))) |