From: David Miller Date: Tue, 17 Jul 2007 00:17:44 +0000 (-0700) Subject: [HRTIMER] Fix cpu pointer arg to clockevents_notify() X-Git-Tag: v2.6.23-rc1~770 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7713a7d195c2e11d7ba6a973317da0af862d1264;p=linux-2.6-omap-h63xx.git [HRTIMER] Fix cpu pointer arg to clockevents_notify() All of the clockevent notifiers expect a pointer to an "unsigned int" cpu argument, but hrtimer_cpu_notify() passes in a pointer to a long. [ Discussed with and ok by Thomas Gleixner ] Signed-off-by: David S. Miller Signed-off-by: Linus Torvalds --- diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 23c03f43e19..72d034258ba 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -1406,7 +1406,7 @@ static void migrate_hrtimers(int cpu) static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu) { - long cpu = (long)hcpu; + unsigned int cpu = (long)hcpu; switch (action) {