summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2017-04-18Linux 3.18.49v3.18.49Greg Kroah-Hartman1-1/+1
2017-02-08Linux 3.18.48v3.18.48Greg Kroah-Hartman1-1/+1
2017-02-08Disable "frame-address" warningLinus Torvalds1-0/+1
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>
2017-01-18Linux 3.18.47v3.18.47Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-12-24Linux 3.18.46v3.18.46Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-11-29Linux 3.18.45v3.18.45Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-11-25kbuild: add -fno-PIESebastian Andrzej Siewior1-0/+2
[ Upstream commit 8ae94224c9d72fc4d9aaac93b2d7833cf46d7141 ] 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. Cc: stable@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-10-22Linux 3.18.44v3.18.44Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-10-10Linux 3.18.43v3.18.43Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-09-18Linux 3.18.42v3.18.42Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-09-03Linux 3.18.41v3.18.41Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-08-22Linux 3.18.40v3.18.40Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-08-09Linux 3.18.39v3.18.39Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-07-30Linux 3.18.38v3.18.38Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-07-13Linux 3.18.37v3.18.37Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-06-23Linux 3.18.36v3.18.36Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-06-07Linux 3.18.35v3.18.35Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-06-07kbuild: move -Wunused-const-variable to W=1 warning levelArnd Bergmann1-2/+3
[ Upstream commit c9c6837d39311b0cc14cdbe7c18e815ab44aefb1 ] gcc-6 started warning by default about variables that are not used anywhere and that are marked 'const', generating many false positives in an allmodconfig build, e.g.: arch/arm/mach-davinci/board-da830-evm.c:282:20: warning: 'da830_evm_emif25_pins' defined but not used [-Wunused-const-variable=] arch/arm/plat-omap/dmtimer.c:958:34: warning: 'omap_timer_match' defined but not used [-Wunused-const-variable=] drivers/bluetooth/hci_bcm.c:625:39: warning: 'acpi_bcm_default_gpios' defined but not used [-Wunused-const-variable=] drivers/char/hw_random/omap-rng.c:92:18: warning: 'reg_map_omap4' defined but not used [-Wunused-const-variable=] drivers/devfreq/exynos/exynos5_bus.c:381:32: warning: 'exynos5_busfreq_int_pm' defined but not used [-Wunused-const-variable=] drivers/dma/mv_xor.c:1139:34: warning: 'mv_xor_dt_ids' defined but not used [-Wunused-const-variable=] This is similar to the existing -Wunused-but-set-variable warning that was added in an earlier release and that we disable by default now and only enable when W=1 is set, so it makes sense to do the same here. Once we have eliminated the majority of the warnings for both, we can put them back into the default list. We probably want this in backport kernels as well, to allow building them with gcc-6 without introducing extra warnings. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Olof Johansson <olof@lixom.net> Acked-by: Lee Jones <lee.jones@linaro.org> Cc: stable@vger.kernel.org Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-06-07gcov: disable tree-loop-im to reduce stack usageArnd Bergmann1-1/+1
[ Upstream commit c87bf431448b404a6ef5fbabd74c0e3e42157a7f ] Enabling CONFIG_GCOV_PROFILE_ALL produces us a lot of warnings like lib/lz4/lz4hc_compress.c: In function 'lz4_compresshcctx': lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1504 bytes is larger than 1024 bytes [-Wframe-larger-than=] After some investigation, I found that this behavior started with gcc-4.9, and opened https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69702. A suggested workaround for it is to use the -fno-tree-loop-im flag that turns off one of the optimization stages in gcc, so the code runs a little slower but does not use excessive amounts of stack. We could make this conditional on the gcc version, but I could not find an easy way to do this in Kbuild and the benefit would be fairly small, given that most of the gcc version in production are affected now. I'm marking this for 'stable' backports because it addresses a bug with code generation in gcc that exists in all kernel versions with the affected gcc releases. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Cc: stable@vger.kernel.org Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-05-21Linux 3.18.34v3.18.34Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-05-11Linux 3.18.33v3.18.33Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-23Linux 3.18.32v3.18.32Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-19Linux 3.18.31v3.18.31Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-04Linux 3.18.30v3.18.30Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-03-17Linux 3.18.29v3.18.29Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-03-05Linux 3.18.28v3.18.28Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-02-15Linux 3.18.27v3.18.27Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-01-25Linux 3.18.26v3.18.26Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-12-15Linux 3.18.25v3.18.25Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-10-31Linux 3.18.24v3.18.24Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-10-29Linux 3.18.23v3.18.23Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-10-01Linux 3.18.22v3.18.22Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-09-01Linux 3.18.21v3.18.21Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-08-07Linux 3.18.20v3.18.20Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-07-21Linux 3.18.19v3.18.19Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-07-10Linux 3.18.18v3.18.18Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-06-28Linux 3.18.17v3.18.17Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-06-14Linux 3.18.16v3.18.16Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-06-13Linux 3.18.15v3.18.15Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-05-20Linux 3.18.14v3.18.14Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-05-05Linux 3.18.13v3.18.13Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-20Linux 3.18.12v3.18.12Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-04Linux 3.18.11v3.18.11Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-03-24Linux 3.18.10v3.18.10Sasha Levin1-1/+1
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-03-07Linux 3.18.9v3.18.9Greg Kroah-Hartman1-1/+1
2015-02-27Linux 3.18.8v3.18.8Greg Kroah-Hartman1-1/+1
2015-02-11Linux 3.18.7v3.18.7Greg Kroah-Hartman1-1/+1
2015-02-06Linux 3.18.6v3.18.6Greg Kroah-Hartman1-1/+1
2015-01-30Linux 3.18.5v3.18.5Greg Kroah-Hartman1-1/+1
2015-01-27Linux 3.18.4v3.18.4Greg Kroah-Hartman1-1/+1