[openib-general] [PATCH] kDAPL: remove dat_os_panic()
Tom Duffy
tduffy at sun.com
Wed Jun 22 10:17:09 PDT 2005
This patch removes the function dapl_os_panic() in favor of calling
panic() directly.
Signed-off-by: Tom Duffy <tduffy at sun.com>
Index: linux-kernel/dat-provider/dapl_evd.c
===================================================================
--- linux-kernel/dat-provider/dapl_evd.c (revision 2677)
+++ linux-kernel/dat-provider/dapl_evd.c (working copy)
@@ -681,7 +681,7 @@ static void dapl_evd_cq_async_error_call
cause, context);
if (!evd)
- dapl_os_panic("NULL == context\n");
+ panic("NULL == context\n");
async_evd = evd->common.owner_ia->async_error_evd;
@@ -689,9 +689,8 @@ static void dapl_evd_cq_async_error_call
DAT_ASYNC_ERROR_EVD_OVERFLOW,
async_evd->common.owner_ia);
- if (status != DAT_SUCCESS) {
- dapl_os_panic("async EVD overflow\n");
- }
+ if (status != DAT_SUCCESS)
+ panic("async EVD overflow\n");
dapl_dbg_log(DAPL_DBG_TYPE_CALLBACK | DAPL_DBG_TYPE_EXCEPTION,
"dapl_evd_cq_async_error_callback () returns\n");
@@ -707,10 +706,8 @@ void dapl_evd_un_async_error_callback(st
"dapl_evd_un_async_error_callback (%p, %p)\n",
cause, context);
- if (NULL == context) {
- dapl_os_panic("NULL == context\n");
- return;
- }
+ if (NULL == context)
+ panic("NULL == context\n");
async_evd = (struct dapl_evd *)context;
Index: linux-kernel/dat-provider/dapl_util.h
===================================================================
--- linux-kernel/dat-provider/dapl_util.h (revision 2677)
+++ linux-kernel/dat-provider/dapl_util.h (working copy)
@@ -48,12 +48,6 @@
#include <asm/system.h>
#endif
-#define dapl_os_panic(fmt, args...) \
- do { \
- printk("PANIC in %s:%i:%s\n", __FILE__, __LINE__, __func__); \
- panic(fmt, ## args); \
- } while(0)
-
#define dapl_os_assert(expression) \
do { \
if (!(expression)) { \
More information about the general
mailing list