[PATCH] Re: [PATCH] NMI watch dog notify patch
From: George Anzinger (george_at_mvista.com)
Date: 08/02/05
- Previous message: Lee Revell: "Re: Touchpad errors"
- In reply to: George Anzinger: "Re: [PATCH] NMI watch dog notify patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 02 Aug 2005 13:26:30 -0700 To: unlisted-recipients: ;(no To-header on input)
It seems that the subject patch generates a warning (missed it on the
compile). Here is a patch to eliminate the warning.
-- George Anzinger george@mvista.com HRT (High-res-timers): http://sourceforge.net/projects/high-res-timers/
Source: MontaVista Software, Inc. George Anzinger<george@mvista.com>
Type: Defect Fix
Description:
This patch eliminates the warning generated in die_nmi() when
calling notify_die() by adding "const" to notify_die()'s
definition.
Signed-off-by: George Anzinger <george@mvista.com>
Index: linux-2.6.13-rc/include/asm-i386/kdebug.h
===================================================================
--- linux-2.6.13-rc.orig/include/asm-i386/kdebug.h
+++ linux-2.6.13-rc/include/asm-i386/kdebug.h
@@ -41,7 +41,7 @@ enum die_val {
DIE_PAGE_FAULT,
};
-static inline int notify_die(enum die_val val,char *str,struct pt_regs *regs,long err,int trap, int sig)
+static inline int notify_die(enum die_val val, const char *str,struct pt_regs *regs,long err,int trap, int sig)
{
struct die_args args = { .regs=regs, .str=str, .err=err, .trapnr=trap,.signr=sig };
return notifier_call_chain(&i386die_chain, val, &args);
-
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/
- Previous message: Lee Revell: "Re: Touchpad errors"
- In reply to: George Anzinger: "Re: [PATCH] NMI watch dog notify patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|