diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2015-07-01 09:13:28 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-07-09 11:12:57 +0200 |
commit | fd5ed3066bb2f47814fe53cdc56d11a678551ae1 (patch) | |
tree | f76e6ab054148c7d6de8b801abeedf32d081c618 /arch/m68k/atari | |
parent | 143fefc8f315cd10e046e6860913c421c3385cb1 (diff) | |
download | linux-fd5ed3066bb2f47814fe53cdc56d11a678551ae1.tar.bz2 |
MIPS: kernel: smp-cps: Fix 64-bit compatibility errors due to pointer casting
Commit 1d8f1f5a780a ("MIPS: smp-cps: hotplug support") added hotplug
support in the SMP/CPS implementation but it introduced a few build problems
on 64-bit kernels due to pointer being casted to and from 'int' C types. We
fix this problem by using 'unsigned long' instead which should match the size
of the pointers in 32/64-bit kernels. Finally, we fix the comment since the
CM base address is loaded to v1($3) instead of v0.
Fixes the following build problems:
arch/mips/kernel/smp-cps.c: In function 'wait_for_sibling_halt':
arch/mips/kernel/smp-cps.c:366:17: error: cast from pointer to integer of
different size [-Werror=pointer-to-int-cast]
[...]
arch/mips/kernel/smp-cps.c: In function 'cps_cpu_die':
arch/mips/kernel/smp-cps.c:427:13: error: cast to pointer
from integer of different size [-Werror=int-to-pointer-cast]
cc1: all warnings being treated as errors
Fixes: 1d8f1f5a780a ("MIPS: smp-cps: hotplug support")
Cc: <stable@vger.kernel.org> # 3.16+
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10586/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/m68k/atari')
0 files changed, 0 insertions, 0 deletions