summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2017-07-15Linux 4.4.77v4.4.77Greg Kroah-Hartman
2017-07-05Linux 4.4.76v4.4.76Greg Kroah-Hartman
2017-07-05jump label: fix passing kbuild_cflags when checking for asm goto supportGleb Fotengauer-Malinovskiy
commit 7292ae3d5a18fb922be496e6bb687647193569b4 upstream. The latest change of asm goto support check added passing of KBUILD_CFLAGS to compiler. When these flags reference gcc plugins that are not built yet, the check fails. When one runs "make bzImage" followed by "make modules", the kernel is always built with HAVE_JUMP_LABEL disabled, while the modules are built depending on CONFIG_JUMP_LABEL. If HAVE_JUMP_LABEL macro happens to be different, modules are built with undefined references, e.g.: ERROR: "static_key_slow_inc" [net/netfilter/xt_TEE.ko] undefined! ERROR: "static_key_slow_dec" [net/netfilter/xt_TEE.ko] undefined! ERROR: "static_key_slow_dec" [net/netfilter/nft_meta.ko] undefined! ERROR: "static_key_slow_inc" [net/netfilter/nft_meta.ko] undefined! ERROR: "nf_hooks_needed" [net/netfilter/ipvs/ip_vs.ko] undefined! ERROR: "nf_hooks_needed" [net/ipv6/ipv6.ko] undefined! ERROR: "static_key_count" [net/ipv6/ipv6.ko] undefined! ERROR: "static_key_slow_inc" [net/ipv6/ipv6.ko] undefined! This change moves the check before all these references are added to KBUILD_CFLAGS. This is correct because subsequent KBUILD_CFLAGS modifications are not relevant to this check. Reported-by: Anton V. Boyarshinov <boyarsh@altlinux.org> Fixes: 35f860f9ba6a ("jump label: pass kbuild_cflags when checking for asm goto support") Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Acked-by: David Lin <dtwlin@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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