From 8b8481a2987a61c60323f696c3f6bae7ada721da Mon Sep 17 00:00:00 2001 From: girish Date: Wed, 27 Aug 2008 17:14:03 +0000 Subject: [PATCH] Quiet compiler warnings related to passing "const" pointers to non-const functions. (Andreas) b=15981 i=girish i=rread --- lnet/libcfs/winnt/winnt-debug.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lnet/libcfs/winnt/winnt-debug.c b/lnet/libcfs/winnt/winnt-debug.c index b06706b..2f6eb07 100644 --- a/lnet/libcfs/winnt/winnt-debug.c +++ b/lnet/libcfs/winnt/winnt-debug.c @@ -41,12 +41,12 @@ #include "tracefile.h" void lnet_debug_dumpstack(cfs_task_t *tsk) -{ +{ return; } cfs_task_t *lnet_current(void) -{ +{ return cfs_current(); } @@ -60,17 +60,21 @@ int lnet_arch_debug_cleanup(void) return 0; } -void lnet_run_lbug_upcall(char *file, const char *fn, const int line) +void libcfs_run_lbug_upcall(const char *file, const char *fn, const int line) +{ +} + +void libcfs_debug_dumplog(void) { } -void lbug_with_loc(char *file, const char *func, const int line) +void lbug_with_loc(const char *file, const char *func, const int line) { libcfs_catastrophe = 1; CEMERG("LBUG: pid: %u thread: %#x\n", - (unsigned)cfs_curproc_pid(), (unsigned)PsGetCurrentThread()); - // portals_debug_dumplog(); - // portals_run_lbug_upcall(file, func, line); + (unsigned)cfs_curproc_pid(), (unsigned)PsGetCurrentThread()); + libcfs_debug_dumplog(); + libcfs_run_lbug_upcall(file, func, line); } #if TDI_LIBCFS_DBG -- 1.8.3.1