diff --git a/src/rx/rx_kcommon.c b/src/rx/rx_kcommon.c index c63b8b3e21..e335308c9c 100644 --- a/src/rx/rx_kcommon.c +++ b/src/rx/rx_kcommon.c @@ -247,12 +247,6 @@ osi_AssertFailK(const char *expr, const char *file, int line) osi_Panic("%s", buf); } -#else -void -osi_AssertFailK(const char *expr, const char *file, int line) -{ - printk(KERN_CRIT "assertion failed: %s, file: %s, line: %d\n", expr, file, line); -} #endif #ifndef UKERNEL diff --git a/src/rx/rx_prototypes.h b/src/rx/rx_prototypes.h index 8d9e736f78..21eada6e45 100644 --- a/src/rx/rx_prototypes.h +++ b/src/rx/rx_prototypes.h @@ -377,7 +377,7 @@ extern osi_socket rxi_GetHostUDPSocket(u_int host, u_short port); # define osi_Panic(msg...) do { printk(KERN_CRIT "openafs: " msg); BUG(); } while (0) # undef osi_Assert # define osi_Assert(expr) \ - do { if (!(expr)) { osi_AssertFailK(#expr, __FILE__, __LINE__); BUG(); } } while (0) + do { if (!(expr)) osi_Panic("assertion failed: %s, file: %s, line: %d\n", #expr, __FILE__, __LINE__); } while (0) # elif defined(AFS_AIX_ENV) extern void osi_Panic(char *fmt, void *a1, void *a2, void *a3); # else @@ -403,7 +403,9 @@ extern int rxk_ReadPacket(osi_socket so, struct rx_packet *p, int *host, # ifdef UKERNEL extern void *rx_ServerProc(void *); # endif +# ifndef AFS_LINUX26_ENV extern void osi_AssertFailK(const char *expr, const char *file, int line) AFS_NORETURN; +# endif extern void rxk_ListenerProc(void); extern void rxk_Listener(void); # ifndef UKERNEL