[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-6e85c5ba73c07b990798087e9b858c065db2b234@git.kernel.org>
Date: Thu, 30 Apr 2009 06:24:44 GMT
From: tip-bot for H Hartley Sweeten <hartleys@...ionengravers.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
hartleys@...ionengravers.com, tglx@...utronix.de,
subrata@...ux.vnet.ibm.com, hsweeten@...ionengravers.com,
mingo@...e.hu
Subject: [tip:core/urgent] kernel/posix-cpu-timers.c: fix sparse warning
Commit-ID: 6e85c5ba73c07b990798087e9b858c065db2b234
Gitweb: http://git.kernel.org/tip/6e85c5ba73c07b990798087e9b858c065db2b234
Author: H Hartley Sweeten <hartleys@...ionengravers.com>
AuthorDate: Wed, 29 Apr 2009 19:14:32 -0400
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 30 Apr 2009 08:08:31 +0200
kernel/posix-cpu-timers.c: fix sparse warning
Sparse reports the following in kernel/posix-cpu-timers.c:
warning: symbol 'firing' shadows an earlier one
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Cc: Subrata Modak <subrata@...ux.vnet.ibm.com>
LKML-Reference: <BD79186B4FD85F4B8E60E381CAEE1909016C1AFE@...nycmail19.Mi8.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/posix-cpu-timers.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c
index c9dcf98..bece7c0 100644
--- a/kernel/posix-cpu-timers.c
+++ b/kernel/posix-cpu-timers.c
@@ -1420,19 +1420,19 @@ void run_posix_cpu_timers(struct task_struct *tsk)
* timer call will interfere.
*/
list_for_each_entry_safe(timer, next, &firing, it.cpu.entry) {
- int firing;
+ int cpu_firing;
+
spin_lock(&timer->it_lock);
list_del_init(&timer->it.cpu.entry);
- firing = timer->it.cpu.firing;
+ cpu_firing = timer->it.cpu.firing;
timer->it.cpu.firing = 0;
/*
* The firing flag is -1 if we collided with a reset
* of the timer, which already reported this
* almost-firing as an overrun. So don't generate an event.
*/
- if (likely(firing >= 0)) {
+ if (likely(cpu_firing >= 0))
cpu_timer_fire(timer);
- }
spin_unlock(&timer->it_lock);
}
}
--
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