[<prev] [next>] [day] [month] [year] [list]
Message-ID: <51CBDF2B.8090304@asianux.com>
Date: Thu, 27 Jun 2013 14:43:55 +0800
From: Chen Gang <gang.chen@...anux.com>
To: starvik@...s.com, Jesper Nilsson <jesper.nilsson@...s.com>
CC: Andrew Morton <akpm@...ux-foundation.org>, shaohua.li@...ionio.com,
linux-cris-kernel@...s.com,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linux-Arch <linux-arch@...r.kernel.org>
Subject: [PATCH] arch: cris: mm: add a code block for variable declaration
Need a code block for variable declaration, or can not pass compiling
by old C compiler.
The new C compiler will report the warning (with allmodconfig):
arch/cris/mm/fault.c: In function ‘do_page_fault’:
arch/cris/mm/fault.c:228:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
Signed-off-by: Chen Gang <gang.chen@...anux.com>
---
arch/cris/mm/fault.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c
index 73312ab..919ab17c 100644
--- a/arch/cris/mm/fault.c
+++ b/arch/cris/mm/fault.c
@@ -225,8 +225,10 @@ retry:
show_registers(regs);
#ifdef CONFIG_NO_SEGFAULT_TERMINATION
- DECLARE_WAIT_QUEUE_HEAD(wq);
- wait_event_interruptible(wq, 0 == 1);
+ {
+ DECLARE_WAIT_QUEUE_HEAD(wq);
+ wait_event_interruptible(wq, 0 == 1);
+ }
#else
info.si_signo = SIGSEGV;
info.si_errno = 0;
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists