Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752773AbbK1S0d (ORCPT ); Sat, 28 Nov 2015 13:26:33 -0500 Received: from mxf3.bahnhof.se ([213.80.101.27]:60109 "EHLO mxf3.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752612AbbK1S0a (ORCPT ); Sat, 28 Nov 2015 13:26:30 -0500 X-Spam-Score: 0.306 From: Niklas Cassel To: jesper.nilsson@axis.com Cc: starvik@axis.com, rabin@rab.in, linux-cris-kernel@axis.com, linux-kernel@vger.kernel.org, Niklas Cassel Subject: [PATCH 3/4] cris: fasttimer: fix mixed declarations and code compile warning Date: Sat, 28 Nov 2015 19:26:17 +0100 Message-Id: <1448735177-31320-1-git-send-email-nks@flawful.org> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1422 Lines: 41 arch/cris/arch-v32/kernel/fasttimer.c: In function ‘timer_trig_handler’: arch/cris/arch-v32/kernel/fasttimer.c:353:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] fast_timer_function_type *f; ^ Signed-off-by: Niklas Cassel --- arch/cris/arch-v32/kernel/fasttimer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/cris/arch-v32/kernel/fasttimer.c b/arch/cris/arch-v32/kernel/fasttimer.c index 5c84dbb..5a8c428 100644 --- a/arch/cris/arch-v32/kernel/fasttimer.c +++ b/arch/cris/arch-v32/kernel/fasttimer.c @@ -322,6 +322,8 @@ static void timer_trig_handler(struct work_struct *work) reg_timer_rw_intr_mask intr_mask; reg_timer_rw_trig_cfg trig_cfg = { 0 }; struct fast_timer *t; + fast_timer_function_type *f; + unsigned long d; unsigned long flags; /* We keep interrupts disabled not only when we modify the @@ -350,9 +352,6 @@ static void timer_trig_handler(struct work_struct *work) fast_timer_running = 0; fast_timer_ints++; - fast_timer_function_type *f; - unsigned long d; - t = fast_timer_list; while (t) { struct fasttime_t tv; -- 2.5.0 -- 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/