diff options
| author | Kip Macy <kmacy@FreeBSD.org> | 2008-05-05 19:39:20 +0000 |
|---|---|---|
| committer | Kip Macy <kmacy@FreeBSD.org> | 2008-05-05 19:39:20 +0000 |
| commit | 805dc5adcaa8ab030c1860828c76fc7e6c779e9f (patch) | |
| tree | 26379ff6d312d7158688ba6ce5b9503867a92dc0 | |
| parent | a551ce12050c7e00c979e9f9d824c67dd8fee7c4 (diff) | |
Notes
| -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 33a1a62bd905..a8c22eef656e 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))) |
