When combined with 'MIPS: Changed current_thread_info() to an equivalent ...' (http://www.linux-mips.org/archives/linux-mips/2015-01/msg00070.html) and the target independent LLVMLinux patches, this patch series makes it possible to compile a working kernel for MIPS using Clang. The patches aren't inter-dependent so they can be merged individually or I can split the series into individual submissions if that's preferred. Daniel Sanders (2): slab: Correct size_index table before replacing the bootstrap kmem_cache_node. MIPS: LLVMLinux: Fix an 'inline asm input/output type mismatch' error. Toma Tabacu (2): MIPS: LLVMLinux: Fix a 'cast to type not present in union' error. MIPS: LLVMLinux: Silence variable self-assignment warnings. This series previously included a 5th patch ('MIPS: LLVMLinux: Silence unicode warnings when preprocessing assembly.'. This patch has been dropped from this series while we work on preventing the warnings in a different way. arch/mips/include/asm/checksum.h | 6 ++++-- arch/mips/kernel/branch.c | 6 ++++-- arch/mips/math-emu/dp_add.c | 5 ----- arch/mips/math-emu/dp_sub.c | 5 ----- arch/mips/math-emu/sp_add.c | 5 ----- arch/mips/math-emu/sp_sub.c | 5 ----- mm/slab.c | 1 + mm/slab.h | 1 + mm/slab_common.c | 36 +++++++++++++++++++++--------------- mm/slub.c | 1 + 10 files changed, 32 insertions(+), 39 deletions(-) Signed-off-by: Toma Tabacu <toma.tabacu@xxxxxxxxxx> Signed-off-by: Daniel Sanders <daniel.sanders@xxxxxxxxxx> Cc: "Steven J. Hill" <Steven.Hill@xxxxxxxxxx> Cc: Andreas Herrmann <andreas.herrmann@xxxxxxxxxxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Christoph Lameter <cl@xxxxxxxxx> Cc: David Daney <david.daney@xxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Jim Quinlan <jim2101024@xxxxxxxxx> Cc: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> Cc: Leonid Yegoshin <Leonid.Yegoshin@xxxxxxxxxx> Cc: Manuel Lauss <manuel.lauss@xxxxxxxxx> Cc: Markos Chandras <markos.chandras@xxxxxxxxxx> Cc: Paul Bolle <pebolle@xxxxxxxxxx> Cc: Paul Burton <paul.burton@xxxxxxxxxx> Cc: Pekka Enberg <penberg@xxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: linux-kernel@xxxxxxxxxxxxxxx Cc: linux-mips@xxxxxxxxxxxxxx Cc: linux-mm@xxxxxxxxx -- 2.1.4