Commit graph

1,035 commits

Author SHA1 Message Date
Greg Kroah-Hartman
53752ea210 Linux 3.18.48 2017-02-08 09:43:17 +01:00
Linus Torvalds
e6ec9d2751 Disable "frame-address" warning
commit 124a3d88fa 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-02-08 09:43:03 +01:00
Sasha Levin
8433e5c9c8 Linux 3.18.47
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2017-01-18 13:51:20 -05:00
Sasha Levin
1e20e732ff Linux 3.18.46
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-12-24 11:10:18 -05:00
Sasha Levin
ac3d826bef Linux 3.18.45
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-11-29 11:44:43 -05:00
Sebastian Andrzej Siewior
e45cc4194b kbuild: add -fno-PIE
[ Upstream commit 8ae94224c9 ]

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-11-24 19:41:33 -05:00
Sasha Levin
a6846cfd26 Linux 3.18.44
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-10-22 16:45:02 -04:00
Sasha Levin
3cab355c2f Linux 3.18.43
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-10-09 21:24:47 -04:00
Sasha Levin
a8e202812b Linux 3.18.42
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-09-17 18:55:26 -04:00
Sasha Levin
e9e1b43e9f Linux 3.18.41
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-09-02 23:42:21 -04:00
Sasha Levin
d45da77ced Linux 3.18.40
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-08-22 12:23:31 -04:00
Sasha Levin
6e0f6268e3 Linux 3.18.39
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-08-08 22:12:59 -04:00
Sasha Levin
0d1097ae44 Linux 3.18.38
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-07-29 21:41:44 -04:00
Sasha Levin
0ac0a856d9 Linux 3.18.37
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-07-13 14:19:51 -04:00
Sasha Levin
d420f00c7b Linux 3.18.36
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-06-23 00:02:29 -04:00
Sasha Levin
b507613999 Linux 3.18.35
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-06-06 19:16:46 -04:00
Arnd Bergmann
0a11bd162e kbuild: move -Wunused-const-variable to W=1 warning level
[ Upstream commit c9c6837d39 ]

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-06 19:11:02 -04:00
Arnd Bergmann
d309146022 gcov: disable tree-loop-im to reduce stack usage
[ Upstream commit c87bf43144 ]

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-06-06 19:11:02 -04:00
Sasha Levin
3b6aa07b93 Linux 3.18.34
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-05-20 21:48:04 -04:00
Sasha Levin
6b12ebc0ec Linux 3.18.33
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-05-11 00:09:19 -04:00
Sasha Levin
834125557e Linux 3.18.32
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-23 16:46:40 -04:00
Sasha Levin
f151e73cea Linux 3.18.31
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-19 07:57:18 -04:00
Sasha Levin
b36eba9b4d Linux 3.18.30
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-04-03 18:27:20 -04:00
Sasha Levin
d439e869d6 Linux 3.18.29
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-03-17 14:09:52 -04:00
Sasha Levin
0f67c5beb4 Linux 3.18.28
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-03-04 16:54:28 -05:00
Sasha Levin
2c07053b8e Linux 3.18.27
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-02-15 15:47:06 -05:00
Sasha Levin
707e840c5e Linux 3.18.26
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-01-25 07:00:19 -05:00
Sasha Levin
60917545df Linux 3.18.25
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-12-15 12:45:27 -05:00
Sasha Levin
b124030443 Linux 3.18.24
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-10-31 16:39:51 -04:00
Sasha Levin
8341455f7f Linux 3.18.23
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-10-28 22:49:46 -04:00
Sasha Levin
ac6d8ef917 Linux 3.18.22
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-10-01 10:39:05 -04:00
Sasha Levin
fcd9bfdb9d Linux 3.18.21
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-08-31 18:19:23 -04:00
Sasha Levin
e9fd6ddcab Linux 3.18.20
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-08-07 15:08:04 -04:00
Sasha Levin
22a6cbf9f3 Linux 3.18.19
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-07-20 21:13:10 -04:00
Sasha Levin
866cebe251 Linux 3.18.18
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-07-09 20:46:48 -04:00
Sasha Levin
ea5dd38e93 Linux 3.18.17
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-06-28 13:40:40 -04:00
Sasha Levin
d048c068d0 Linux 3.18.16
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-06-14 12:19:31 -04:00
Sasha Levin
324d8201ba Linux 3.18.15
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-06-13 15:17:18 -04:00
Sasha Levin
51af817611 Linux 3.18.14
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-05-20 11:04:50 -04:00
Sasha Levin
72d391fefc Linux 3.18.13
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-05-05 12:39:05 -04:00
Sasha Levin
43f497a203 Linux 3.18.12
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-20 15:48:02 -04:00
Sasha Levin
f154a14e3e Linux 3.18.11
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-03 22:46:37 -04:00
Sasha Levin
96e199f175 Linux 3.18.10
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-03-23 21:05:12 -04:00
Greg Kroah-Hartman
d1034e8379 Linux 3.18.9 2015-03-06 14:53:42 -08:00
Greg Kroah-Hartman
e5c9f0bba1 Linux 3.18.8 2015-02-26 17:49:36 -08:00
Greg Kroah-Hartman
a17f9bf1f7 Linux 3.18.7 2015-02-11 15:01:12 +08:00
Greg Kroah-Hartman
9960914954 Linux 3.18.6 2015-02-06 06:53:48 -08:00
Greg Kroah-Hartman
c2d6598eef Linux 3.18.5 2015-01-29 17:41:03 -08:00
Greg Kroah-Hartman
71745ce1b8 Linux 3.18.4 2015-01-27 08:30:10 -08:00
Greg Kroah-Hartman
219b188d28 Linux 3.18.3 2015-01-16 07:04:08 -08:00