[PATCH] -mm traps.c warning

From: Hugh Dickins (hugh@veritas.com)
Date: Tue Apr 01 2003 - 17:25:32 EST


Stop -mm compiler warning when CONFIG_KGDB is off
(you'll forgive an early return in this instance).

--- 2.5.66-mm2/arch/i386/kernel/traps.c Tue Apr 1 11:25:39 2003
+++ linux/arch/i386/kernel/traps.c Tue Apr 1 19:22:30 2003
@@ -380,10 +380,8 @@
 #define DO_VM86_ERROR(trapnr, signr, str, name) \
 asmlinkage void do_##name(struct pt_regs * regs, long error_code) \
 { \
- CHK_REMOTE_DEBUG(trapnr,signr,error_code,regs,goto skip_trap)\
+ CHK_REMOTE_DEBUG(trapnr,signr,error_code,regs,return)\
         do_trap(trapnr, signr, str, 1, regs, error_code, NULL); \
-skip_trap: \
- return; \
 }
 
 #define DO_VM86_ERROR_INFO(trapnr, signr, str, name, sicode, siaddr) \

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:15 EST