Linus,
These are some initial updates to support compiling the kernel with clang.
These patches have been through the proper reviews to the best of my
ability,
and have been soaking in linux-next for a few weeks. These patches by
themselves still do not completely allow clang to be used with the
kernel code,
but lay the foundation for other patches which are still under review.
Several other of the LLVMLinux patches have been already added via
Maintainer
trees.
Thanks,
Behan
--
Behan Webster
[email protected]
The following changes since commit 39de65aa2c3eee901db020a4f1396998e09602a3:
Merge branch 'i2c/for-next' of
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (2014-04-09
08:45:40 -0700)
are available in the git repository at:
git://git.linuxfoundation.org/llvmlinux/kernel.git
tags/llvmlinux-for-v3.15
for you to fetch changes up to c4586256f0c440bc2bdb29d2cbb915f0ca785d26:
x86: LLVMLinux: Fix "incomplete type const struct x86cpu_device_id"
(2014-04-09 13:44:35 -0700)
----------------------------------------------------------------
LLVMLinux Patches for v3.15
----------------------------------------------------------------
Behan Webster (4):
kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
LLVMLinux: Remove warning about returning an uninitialized variable
x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI
x86: LLVMLinux: Fix "incomplete type const struct x86cpu_device_id"
Jan-Simon M?ller (4):
kbuild: LLVMLinux: Adapt warnings for compilation with clang
Documentation: LLVMLinux: Update Documentation/dontdiff
kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for
compilation with clang
x86 kbuild: LLVMLinux: More cc-options added for clang
Mark Charlebois (1):
LLVMLinux: Add support for clang to compiler.h and new
compiler-clang.h
Documentation/dontdiff | 3 ++
Makefile | 30 ++++++++++++-
arch/x86/Makefile | 2 +-
drivers/platform/x86/thinkpad_acpi.c | 86
+++++++++++++++++++-----------------
include/asm-generic/cmpxchg-local.h | 3 +-
include/linux/compiler-clang.h | 12 +++++
include/linux/compiler.h | 7 +++
include/linux/mod_devicetable.h | 5 +++
scripts/Makefile.build | 12 ++++-
scripts/mkcompile_h | 2 +-
10 files changed, 116 insertions(+), 46 deletions(-)
create mode 100644 include/linux/compiler-clang.h