Skip to content

Commit

Permalink
cris: fasttimer: fix mixed declarations and code compile warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jesper Nilsson <[email protected]>
  • Loading branch information
Niklas Cassel authored and Jesper Nilsson committed Sep 22, 2016
1 parent 506823f commit d355bcb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions arch/cris/arch-v32/kernel/fasttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,13 @@ timer_trig_interrupt(int irq, void *dev_id)

static void timer_trig_handler(struct work_struct *work)
{
reg_timer_rw_ack_intr ack_intr = { 0 };
reg_timer_rw_intr_mask intr_mask;
reg_timer_rw_trig_cfg trig_cfg = { 0 };
struct fast_timer *t;
unsigned long flags;
reg_timer_rw_ack_intr ack_intr = { 0 };
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
* fast timer list, but any time we hold a reference to a
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d355bcb

Please sign in to comment.