From: David Miller Date: Tue, 17 Jul 2007 00:17:44 +0000 (-0700) Subject: [HRTIMER] Fix cpu pointer arg to clockevents_notify() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7713a7d195c2e11d7ba6a973317da0af862d1264;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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) {