From 9dc66be7968f0fdd657867a3a0accae9a35121fb Mon Sep 17 00:00:00 2001 From: kmacy Date: Mon, 5 May 2008 19:39:20 +0000 Subject: conditionally define PANIC_IF --- sys/contrib/rdma/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/contrib') 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))) -- cgit v1.1