[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-79d381c9f2354b594dcab9b04dfcc0debf7294fe@git.kernel.org>
Date: Fri, 17 Apr 2009 00:00:45 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,
hsweeten@...ionengravers.com, mingo@...e.hu
Subject: [tip:core/urgent] kernel/softirq.c: fix sparse warning
Commit-ID: 79d381c9f2354b594dcab9b04dfcc0debf7294fe
Gitweb: http://git.kernel.org/tip/79d381c9f2354b594dcab9b04dfcc0debf7294fe
Author: H Hartley Sweeten <hartleys@...ionengravers.com>
AuthorDate: Thu, 16 Apr 2009 19:30:18 -0400
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Fri, 17 Apr 2009 01:57:54 +0200
kernel/softirq.c: fix sparse warning
Fix sparse warning in kernel/softirq.c.
warning: do-while statement is not a compound statement
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
LKML-Reference: <BD79186B4FD85F4B8E60E381CAEE1909015F9033@...nycmail19.Mi8.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/softirq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/softirq.c b/kernel/softirq.c
index 2fecefa..b525dd3 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -472,9 +472,9 @@ void tasklet_kill(struct tasklet_struct *t)
printk("Attempt to kill tasklet from interrupt\n");
while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) {
- do
+ do {
yield();
- while (test_bit(TASKLET_STATE_SCHED, &t->state));
+ } while (test_bit(TASKLET_STATE_SCHED, &t->state));
}
tasklet_unlock_wait(t);
clear_bit(TASKLET_STATE_SCHED, &t->state);
--
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