[PATCH] Re: [PATCH] NMI watch dog notify patch

From: George Anzinger (george_at_mvista.com)
Date: 08/02/05

  • Next message: Ju, Seokmann: "RE: [PATCH 2.4.31 1/1] scsi/megaraid2: add 64-bit application sup port"
    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/


  • Next message: Ju, Seokmann: "RE: [PATCH 2.4.31 1/1] scsi/megaraid2: add 64-bit application sup port"

    Relevant Pages

    • [PATCH 2/2] new valid_signal function - convert code that currently tests _NSIG directly to use the
      ... warning in fs/fcntl.c, during the discussion Matthew Wilcox noted that ... Below is the second patch that puts the valid_signalfunction to actual ... int disallow_signal ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [CHECKER] inconsistent NFS stat cache (NFS on ext3, 2.6.11)
      ... > the default for knfsd. ... No-one has complained loudly enough or long enough or sent me a patch, ... probably time to remove that warning). ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.8-rc2-mm1 link errors
      ... put them back in plain old BSS. ... Patch attached. ... I just worry that the warning is indicative of something more insidious ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH][RFC] 2.6.6 tty_io.c hangup locking
      ... The warning itself is harmless. ... I see another patch related to closing a tty device ... > pptp connection), and I encountered this problem just once. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.4 patch] fix a compile warning in InterMezzo file.c (fwd)
      ... > The patch forwarded below still applies and compiles against ... [2.4 patch] fix a compile warning in InterMezzo file.c> ... 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/ ...
      (Linux-Kernel)