From: Paul Mundt Date: Thu, 10 May 2007 05:25:01 +0000 (+0900) Subject: sh: Shut up compiler warnings in __do_page_fault(). X-Git-Tag: v2.6.22-rc3~94^2~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8947444a738c6407466244c60e9e4a2999af555;p=linux-2.6 sh: Shut up compiler warnings in __do_page_fault(). GCC doesn't seem to be able to figure this one out for itself, so just shut it up.. CC arch/sh/mm/fault.o arch/sh/mm/fault.c: In function '__do_page_fault': arch/sh/mm/fault.c:288: warning: 'ptl' may be used uninitialized in this function Signed-off-by: Paul Mundt --- diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c index 9207da67ff..62d0289210 100644 --- a/arch/sh/mm/fault.c +++ b/arch/sh/mm/fault.c @@ -285,7 +285,7 @@ asmlinkage int __kprobes __do_page_fault(struct pt_regs *regs, pte_t *pte; pte_t entry; struct mm_struct *mm = current->mm; - spinlock_t *ptl; + spinlock_t *ptl = NULL; int ret = 1; #ifdef CONFIG_SH_KGDB