1531 Commits

Author SHA1 Message Date
Josh Poimboeuf
afdfe5f58f tools build: Add tools tree support for 'make -s'
commit e572d0887137acfc53f18175522964ec19d88175 upstream.

When doing a kernel build with 'make -s', everything is silenced except
the objtool build.  That's because the tools tree support for silent
builds is some combination of missing and broken.

Three changes are needed to fix it:

- Makefile: propagate '-s' to the sub-make's MAKEFLAGS variable so the
  tools Makefiles can see it.

- tools/scripts/Makefile.include: fix the tools Makefiles' ability to
  recognize '-s'.  The MAKE_VERSION and MAKEFLAGS checks are copied from
  the top-level Makefile.  This silences the "DESCEND objtool" message.

- tools/build/Makefile.build: add support to the tools Build files for
  recognizing '-s'.  Again the MAKE_VERSION and MAKEFLAGS checks are
  copied from the top-level Makefile.  This silences all the object
  compile/link messages.

Reported-and-Tested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Michal Marek <mmarek@suse.com>
Link: http://lkml.kernel.org/r/e8967562ef640c3ae9a76da4ae0f4e47df737c34.1484799200.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:05:52 +01:00
Greg Kroah-Hartman
80c1c8322c Linux 4.9.83 2018-02-22 15:43:56 +01:00
Greg Kroah-Hartman
3e598a7089 Linux 4.9.82 2018-02-17 13:21:21 +01:00
Greg Kroah-Hartman
7f3bd8db99 Linux 4.9.81 2018-02-13 12:36:03 +01:00
Greg Kroah-Hartman
331b057d4f Linux 4.9.80 2018-02-03 17:05:43 +01:00
Greg Kroah-Hartman
6c6f924f9c Linux 4.9.79 2018-01-31 12:55:57 +01:00
Greg Kroah-Hartman
79584a4221 Linux 4.9.78 2018-01-23 19:57:10 +01:00
Greg Kroah-Hartman
b8cf9ff79d Linux 4.9.77 2018-01-17 09:39:00 +01:00
Greg Kroah-Hartman
7bbc6ca488 Linux 4.9.76 2018-01-10 09:29:55 +01:00
Greg Kroah-Hartman
9f74755895 Linux 4.9.75 2018-01-05 15:46:36 +01:00
Greg Kroah-Hartman
07bcb2489b Linux 4.9.74 2018-01-02 20:35:18 +01:00
Linus Torvalds
b929ccccbc kbuild: add '-fno-stack-check' to kernel build options
commit 3ce120b16cc548472f80cf8644f90eda958cf1b6 upstream.

It appears that hardened gentoo enables "-fstack-check" by default for
gcc.

That doesn't work _at_all_ for the kernel, because the kernel stack
doesn't act like a user stack at all: it's much smaller, and it doesn't
auto-expand on use.  So the extra "probe one page below the stack" code
generated by -fstack-check just breaks the kernel in horrible ways,
causing infinite double faults etc.

[ I have to say, that the particular code gcc generates looks very
  stupid even for user space where it works, but that's a separate
  issue.  ]

Reported-and-tested-by: Alexander Tsoy <alexander@tsoy.me>
Reported-and-tested-by: Toralf Förster <toralf.foerster@gmx.de>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-02 20:35:10 +01:00
Greg Kroah-Hartman
b3e88217e2 Linux 4.9.73 2017-12-29 17:43:00 +01:00
Greg Kroah-Hartman
2df3979310 Linux 4.9.72 2017-12-25 14:23:47 +01:00
Greg Kroah-Hartman
b632d71014 Linux 4.9.71 2017-12-20 10:07:34 +01:00
Greg Kroah-Hartman
ee52d08d2e Linux 4.9.70 2017-12-16 16:26:04 +01:00
Masahiro Yamada
97c6687021 kbuild: do not call cc-option before KBUILD_CFLAGS initialization
[ Upstream commit 433dc2ebe7d17dd21cba7ad5c362d37323592236 ]

Some $(call cc-option,...) are invoked very early, even before
KBUILD_CFLAGS, etc. are initialized.

The returned string from $(call cc-option,...) depends on
KBUILD_CPPFLAGS, KBUILD_CFLAGS, and GCC_PLUGINS_CFLAGS.

Since they are exported, they are not empty when the top Makefile
is recursively invoked.

The recursion occurs in several places.  For example, the top
Makefile invokes itself for silentoldconfig.  "make tinyconfig",
"make rpm-pkg" are the cases, too.

In those cases, the second call of cc-option from the same line
runs a different shell command due to non-pristine KBUILD_CFLAGS.

To get the same result all the time, KBUILD_* and GCC_PLUGINS_CFLAGS
must be initialized before any call of cc-option.  This avoids
garbage data in the .cache.mk file.

Move all calls of cc-option below the config targets because target
compiler flags are unnecessary for Kconfig.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 16:25:47 +01:00
Greg Kroah-Hartman
c91efc7862 Linux 4.9.69 2017-12-14 09:28:24 +01:00
Greg Kroah-Hartman
3781db07c7 Linux 4.9.68 2017-12-09 22:01:57 +01:00
Greg Kroah-Hartman
284bbc7824 Linux 4.9.67 2017-12-05 11:24:35 +01:00
Greg Kroah-Hartman
8743ce3d7c Linux 4.9.66 2017-11-30 08:39:15 +00:00
Greg Kroah-Hartman
133e6ccf46 Linux 4.9.65 2017-11-24 08:33:43 +01:00
Greg Kroah-Hartman
563c24f65f Linux 4.9.64 2017-11-21 09:23:30 +01:00
Greg Kroah-Hartman
ea88d5c5f4 Linux 4.9.63 2017-11-18 11:22:25 +01:00
Greg Kroah-Hartman
9b609ba2c2 Linux 4.9.62 2017-11-15 15:53:21 +01:00
Greg Kroah-Hartman
5caae9d141 Linux 4.9.61 2017-11-08 10:08:37 +01:00
Greg Kroah-Hartman
06b639e5a1 Linux 4.9.60 2017-11-02 09:49:15 +01:00
Greg Kroah-Hartman
d785062ef2 Linux 4.9.59 2017-10-27 10:38:11 +02:00
Greg Kroah-Hartman
4d4a6a3f8a Linux 4.9.58 2017-10-21 17:21:39 +02:00
Greg Kroah-Hartman
5d7a76acad Linux 4.9.57 2017-10-18 09:35:42 +02:00
Greg Kroah-Hartman
9d36d3eff2 Linux 4.9.56 2017-10-12 21:24:22 +02:00
Greg Kroah-Hartman
f82786d7a9 Linux 4.9.55 2017-10-12 11:51:27 +02:00
Greg Kroah-Hartman
f37eb7b586 Linux 4.9.54 2017-10-08 10:26:32 +02:00
Greg Kroah-Hartman
1852eae92c Linux 4.9.53 2017-10-05 09:44:17 +02:00
Greg Kroah-Hartman
d59dabdc4c Linux 4.9.52 2017-09-27 14:40:05 +02:00
Greg Kroah-Hartman
089d772038 Linux 4.9.51 2017-09-20 08:20:15 +02:00
Greg Kroah-Hartman
4ad5dcaca7 Linux 4.9.50 2017-09-13 14:13:54 -07:00
Greg Kroah-Hartman
f07cb3489c Linux 4.9.49 2017-09-10 07:49:19 +02:00
Greg Kroah-Hartman
8a697a50c0 Linux 4.9.48 2017-09-07 08:35:53 +02:00
Greg Kroah-Hartman
458ca52f15 Linux 4.9.47 2017-09-02 07:08:05 +02:00
Greg Kroah-Hartman
0eed54bdbd Linux 4.9.46 2017-08-30 10:24:43 +02:00
Greg Kroah-Hartman
4b904b22bc Linux 4.9.45 2017-08-24 17:12:55 -07:00
Greg Kroah-Hartman
a97a16f18c Linux 4.9.44 2017-08-16 13:44:13 -07:00
Greg Kroah-Hartman
6da35f43ac Linux 4.9.43 2017-08-12 19:31:45 -07:00
Greg Kroah-Hartman
4c666b0d90 Linux 4.9.42 2017-08-11 08:49:50 -07:00
Greg Kroah-Hartman
db397d9c6e Linux 4.9.41 2017-08-06 19:00:06 -07:00
Greg Kroah-Hartman
efcfbfb1d8 Linux 4.9.40 2017-07-27 15:08:24 -07:00
Linus Torvalds
78fbe21d83 disable new gcc-7.1.1 warnings for now
commit bd664f6b3e376a8ef4990f87d08271cc2d01ba9a upstream.

I made the mistake of upgrading my desktop to the new Fedora 26 that
comes with gcc-7.1.1.

There's nothing wrong per se that I've noticed, but I now have 1500
lines of warnings, mostly from the new format-truncation warning
triggering all over the tree.

We use 'snprintf()' and friends in a lot of places, and often know that
the numbers are fairly small (ie a controller index or similar), but gcc
doesn't know that, and sees an 'int', and thinks that it could be some
huge number.  And then complains when our buffers are not able to fit
the name for the ten millionth controller.

These warnings aren't necessarily bad per se, and we probably want to
look through them subsystem by subsystem, but at least during the merge
window they just mean that I can't even see if somebody is introducing
any *real* problems when I pull.

So warnings disabled for now.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-27 15:07:54 -07:00
Greg Kroah-Hartman
c03917de04 4.9.39 2017-07-21 07:42:36 +02:00
Greg Kroah-Hartman
f0cd77ded5 Linux 4.9.38 2017-07-15 12:17:55 +02:00