When combined with 'MIPS: Changed current_thread_info() to an equivalent ...' (http://www.linux-mips.org/archives/linux-mips/2015-01/msg00070.html), this patch series makes it possible to compile a working kernel for MIPS using Clang. The patches aren't inter-dependent so I'm happy to split this up into individual submissions if that's preferred. Daniel Sanders (1): LLVMLinux: Correct size_index table before replacing the bootstrap kmem_cache_node. Toma Tabacu (4): MIPS: LLVMLinux: Fix a 'cast to type not present in union' error. MIPS: LLVMLinux: Fix an 'inline asm input/output type mismatch' error. MIPS: LLVMLinux: Silence variable self-assignment warnings. MIPS: LLVMLinux: Silence unicode warnings when preprocessing assembly. arch/mips/include/asm/asmmacro.h | 8 ++++---- arch/mips/include/asm/checksum.h | 2 +- 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 + 11 files changed, 33 insertions(+), 42 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