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: MMI-PSA29.97-13-9~41959 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7713a7d195c2e11d7ba6a973317da0af862d1264;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 23c03f43e196..72d034258ba1 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) {