summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2017-06-29Linux 4.4.75v4.4.75Greg Kroah-Hartman
2017-06-26Linux 4.4.74v4.4.74Greg Kroah-Hartman
2017-06-17Linux 4.4.73v4.4.73Greg Kroah-Hartman
2017-06-17jump label: pass kbuild_cflags when checking for asm goto supportDavid Lin
[ Upstream commit 35f860f9ba6aac56cc38e8b18916d833a83f1157 ] Some versions of ARM GCC compiler such as Android toolchain throws in a '-fpic' flag by default. This causes the gcc-goto check script to fail although some config would have '-fno-pic' flag in the KBUILD_CFLAGS. This patch passes the KBUILD_CFLAGS to the check script so that the script does not rely on the default config from different compilers. Link: http://lkml.kernel.org/r/20170120234329.78868-1-dtwlin@google.com Signed-off-by: David Lin <dtwlin@google.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Cc: Michal Marek <mmarek@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-14Linux 4.4.72v4.4.72Greg Kroah-Hartman
2017-06-07Linux 4.4.71v4.4.71Greg Kroah-Hartman
2017-05-25Linux 4.4.70v4.4.70Greg Kroah-Hartman
2017-05-20Linux 4.4.69v4.4.69Greg Kroah-Hartman
2017-05-14Linux 4.4.68v4.4.68Greg Kroah-Hartman
2017-05-08Linux 4.4.67v4.4.67Greg Kroah-Hartman
2017-05-02Linux 4.4.66v4.4.66Greg Kroah-Hartman
2017-04-30Linux 4.4.65v4.4.65Greg Kroah-Hartman
2017-04-27Linux 4.4.64v4.4.64Greg Kroah-Hartman
2017-04-21Linux 4.4.63v4.4.63Greg Kroah-Hartman
2017-04-18Linux 4.4.62v4.4.62Greg Kroah-Hartman
2017-04-12Linux 4.4.61v4.4.61Greg Kroah-Hartman
2017-04-08Linux 4.4.60v4.4.60Greg Kroah-Hartman
2017-03-31Linux 4.4.59v4.4.59Greg Kroah-Hartman
2017-03-30Linux 4.4.58v4.4.58Greg Kroah-Hartman
2017-03-26Linux 4.4.57v4.4.57Greg Kroah-Hartman
2017-03-22Linux 4.4.56v4.4.56Greg Kroah-Hartman
2017-03-18Linux 4.4.55v4.4.55Greg Kroah-Hartman
2017-03-15Linux 4.4.54v4.4.54Greg Kroah-Hartman
2017-03-12Linux 4.4.53v4.4.53Greg Kroah-Hartman
2017-02-26Linux 4.4.52v4.4.52Greg Kroah-Hartman
2017-02-23Linux 4.4.51v4.4.51Greg Kroah-Hartman
2017-02-18Linux 4.4.50v4.4.50Greg Kroah-Hartman
2017-02-14Linux 4.4.49v4.4.49Greg Kroah-Hartman
2017-02-09Linux 4.4.48v4.4.48Greg Kroah-Hartman
2017-02-04Linux 4.4.47v4.4.47Greg Kroah-Hartman
2017-02-01Linux 4.4.46v4.4.46Greg Kroah-Hartman
2017-01-26Linux 4.4.45v4.4.45Greg Kroah-Hartman
2017-01-20Linux 4.4.44v4.4.44Greg Kroah-Hartman
2017-01-15Linux 4.4.43v4.4.43Greg Kroah-Hartman
2017-01-12Linux 4.4.42v4.4.42Greg Kroah-Hartman
2017-01-09Linux 4.4.41v4.4.41Greg Kroah-Hartman
2017-01-06Linux 4.4.40v4.4.40Greg Kroah-Hartman
2016-12-15Linux 4.4.39v4.4.39Greg Kroah-Hartman
2016-12-10Linux 4.4.38v4.4.38Greg Kroah-Hartman
2016-12-08Linux 4.4.37v4.4.37Greg Kroah-Hartman
2016-12-02Linux 4.4.36v4.4.36Greg Kroah-Hartman
2016-11-26Linux 4.4.35v4.4.35Greg Kroah-Hartman
2016-11-26kbuild: Steal gcc's pie from the very beginningBorislav Petkov
commit c6a385539175ebc603da53aafb7753d39089f32e upstream. So Sebastian turned off the PIE for kernel builds but that was too late - Kbuild.include already uses KBUILD_CFLAGS and trying to disable gcc options with, say cc-disable-warning, fails: gcc -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs ... -Wno-sign-compare -fno-asynchronous-unwind-tables -Wframe-address -c -x c /dev/null -o .31392.tmp /dev/null:1:0: error: code model kernel does not support PIC mode because that returns an error and we can't disable the warning. For example in this case: KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) which leads to gcc issuing all those warnings again. So let's turn off PIE/PIC at the earliest possible moment, when we declare KBUILD_CFLAGS so that cc-disable-warning picks it up too. Also, we need the $(call cc-option ...) because -fno-PIE is supported since gcc v3.4 and our lowest supported gcc version is 3.2 right now. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-26kbuild: add -fno-PIESebastian Andrzej Siewior
commit 8ae94224c9d72fc4d9aaac93b2d7833cf46d7141 upstream. Debian started to build the gcc with -fPIE by default so the kernel build ends before it starts properly with: |kernel/bounds.c:1:0: error: code model kernel does not support PIC mode Also add to KBUILD_AFLAGS due to: |gcc -Wp,-MD,arch/x86/entry/vdso/vdso32/.note.o.d … -mfentry -DCC_USING_FENTRY … vdso/vdso32/note.S |arch/x86/entry/vdso/vdso32/note.S:1:0: sorry, unimplemented: -mfentry isn’t supported for 32-bit in combination with -fpic Tagging it stable so it is possible to compile recent stable kernels as well. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-21Linux 4.4.34v4.4.34Greg Kroah-Hartman
2016-11-18Linux 4.4.33v4.4.33Greg Kroah-Hartman
2016-11-15Linux 4.4.32v4.4.32Greg Kroah-Hartman
2016-11-10Linux 4.4.31v4.4.31Greg Kroah-Hartman
2016-11-10Disable "frame-address" warningLinus Torvalds
commit 124a3d88fa20e1869fc229d7d8c740cc81944264 upstream. Newer versions of gcc warn about the use of __builtin_return_address() with a non-zero argument when "-Wall" is specified: kernel/trace/trace_irqsoff.c: In function ‘stop_critical_timings’: kernel/trace/trace_irqsoff.c:433:86: warning: calling ‘__builtin_return_address’ with a nonzero argument is unsafe [-Wframe-address] stop_critical_timing(CALLER_ADDR0, CALLER_ADDR1); [ .. repeats a few times for other similar cases .. ] It is true that a non-zero argument is somewhat dangerous, and we do not actually have very many uses of that in the kernel - but the ftrace code does use it, and as Stephen Rostedt says: "We are well aware of the danger of using __builtin_return_address() of > 0. In fact that's part of the reason for having the "thunk" code in x86 (See arch/x86/entry/thunk_{64,32}.S). [..] it adds extra frames when tracking irqs off sections, to prevent __builtin_return_address() from accessing bad areas. In fact the thunk_32.S states: 'Trampoline to trace irqs off. (otherwise CALLER_ADDR1 might crash)'." For now, __builtin_return_address() with a non-zero argument is the best we can do, and the warning is not helpful and can end up making people miss other warnings for real problems. So disable the frame-address warning on compilers that need it. Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-31Linux 4.4.30v4.4.30Greg Kroah-Hartman