devinit: get rid of __devinitdata, first regexp
This commit is the result of:

find -name "*.c" | xargs sed -i "s/ __devinitdata//g"
find -name "*.h" | xargs sed -i "s/ __devinitdata//g"

Signed-off-by: Hieu Phan <aznrice2k4@gmail.com>
arm, unwind, LLVMLinux: Enable clang to be used for unwinding the stack

Patch to prevent warning of a buggy compiler when using clang and
the ARM_UNWIND option.

Clang defines (at least on the current trunk) GNUC, GNUC_MINOR, and
GNUC_PATCHLEVEL to 4, 2, and 1 respectively.

This version of GCC gets flagged as buggy, but it isn't actually an
issue with clang so the patch will do what it did before unless clang
is defined and then it will not report the GCC version as an issue.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Revert "Attempt to fix build"

This reverts commit 27b697039e20fd47897ad14cae91e59b1acf695b.
Revert "Kbuild arm: LLVMLinux: Add Kbuild support for building arch arm with Clang"

This reverts commit 1c472b8895f4bde6e0fcfc92984f4c51722a6213.
Kbuild arm: LLVMLinux: Add Kbuild support for building arch arm with Clang

Protect more options for arm with cc-option so that we don't get errors when
using clang instead of gcc.  Add more or different options when using clang as
well.

Author: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Revert "LLVMLinux: misc from 3.14 patches"

This reverts commit c0def38c75b72b67289d7824e02d5b326bd0be51.
Revert "kbuild: add support to generate LLVM bitcode files"

This reverts commit 8ab9896ce693920384990503723721a7123e6f1c.
Revert "kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for compilation with clang"

This reverts commit a08a7d76497d978e751159da2dae23f360056826.
Revert "Kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang"

This reverts commit bbfe23a44bef397ef036074cd9617df96716233f.
Revert "Kbuild: LLVMLinux: Adapt warnings for compilation with clang"

This reverts commit 3d2ea62cfc174200acb0b9ec84dff889867370d6.
kbuild: LLVMLinux: Adapt warnings for compilation with clang

When compiling kernel with clang, disable warnings which are too noisy, and
add the clang flag catch-undefined-behavior.

Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <mcharleb@gmail.com>
Cc: PaX Team <pageexec@freemail.hu>
kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for compilation with clang

When building the LINUX_COMPILER definition, instead of merely taking the last
line from "$(CC) -v", grep for ' version ' in the output. This supports both
gcc and clang.

Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Cc: PaX Team <pageexec@freemail.hu>
kbuild: move extra gcc checks to scripts/Makefile.extrawarn

W=... provides extra gcc checks.

Having such code in scripts/Makefile.build results in the same flags
being added to KBUILD_CFLAGS multiple times becuase
scripts/Makefile.build is invoked every time Kbuild descends into
the subdirectories.

Since the top Makefile is already too cluttered, this commit moves
all of extra gcc check stuff to a new file scripts/Makefile.extrawarn,
which is included from the top Makefile.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
CC: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Kbuild, lto: Disable LTO for asm-offsets.c

The asm-offset.c technique to fish data out of the assembler file
does not work with LTO. Just disable for the asm-offset.c build.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391846481-31491-11-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>