Commit Graph

1406 Commits

Author SHA1 Message Date
5ff1ad556a Linux 4.14.85 2018-12-01 09:43:00 +01:00
9d844b0e66 kbuild: allow to use GCC toolchain not in Clang search path
commit ef8c4ed9db upstream.

When using a GCC cross toolchain which is not in a compiled in
Clang search path, Clang reverts to the system assembler and
linker. This leads to assembler or linker errors, depending on
which tool is first used for a given architecture.

It seems that Clang is not searching $PATH for a matching
assembler or linker.

Make sure that Clang picks up the correct assembler or linker by
passing the cross compilers bin directory as search path.

This allows to use Clang provided by distributions with GCC
toolchains not in /usr/bin.

Link: https://github.com/ClangBuiltLinux/linux/issues/78
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-and-tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[nc: Adjust context]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-01 09:42:57 +01:00
4201a586f1 Linux 4.14.84 2018-11-27 16:10:52 +01:00
1d4bd2e4e1 Linux 4.14.83 2018-11-23 08:19:27 +01:00
a21f3c11b4 Linux 4.14.82 2018-11-21 09:24:18 +01:00
2e390c4878 Linux 4.14.81 2018-11-13 11:15:18 -08:00
0b047cbc44 Linux 4.14.80 2018-11-10 07:48:36 -08:00
50961e4888 Linux 4.14.79 2018-11-04 14:52:51 +01:00
6cfb67394a kbuild: set no-integrated-as before incl. arch Makefile
[ Upstream commit 0f0e8de334 ]

In order to make sure compiler flag detection for ARM works
correctly the no-integrated-as flags need to be set before
including the arch specific Makefile.

Fixes: cfe17c9bbe ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-04 14:52:43 +01:00
e7405910ca Linux 4.14.78 2018-10-20 09:48:54 +02:00
8263087bf6 Linux 4.14.77 2018-10-18 09:16:28 +02:00
0b46ce3e34 Linux 4.14.76 2018-10-13 09:27:30 +02:00
8e6a9240b1 Linux 4.14.75 2018-10-10 08:54:28 +02:00
e6abbe80c8 Linux 4.14.74 2018-10-03 17:01:00 -07:00
3b65f403d7 Linux 4.14.73 2018-09-29 03:06:07 -07:00
2cc4d36536 Linux 4.14.72 2018-09-26 08:38:16 +02:00
1244bbb3e9 Linux 4.14.71 2018-09-19 22:43:49 +02:00
5dfe87ac34 Linux 4.14.70 2018-09-15 09:45:37 +02:00
7fe7a0f4c5 Linux 4.14.69 2018-09-09 19:56:02 +02:00
ee13f7edca Linux 4.14.68 2018-09-05 09:26:42 +02:00
4587db4c2a x86/vdso: Fix vDSO build if a retpoline is emitted
commit 2e549b2ee0 upstream.

Currently, if the vDSO ends up containing an indirect branch or
call, GCC will emit the "external thunk" style of retpoline, and it
will fail to link.

Fix it by building the vDSO with inline retpoline thunks.

I haven't seen any reports of this triggering on an unpatched
kernel.

Fixes: commit 76b043848f ("x86/retpoline: Add initial retpoline support")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Matt Rickard <matt@softrans.com.au>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jason Vas Dias <jason.vas.dias@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/c76538cd3afbe19c6246c2d1715bc6a60bd63985.1534448381.git.luto@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-05 09:26:37 +02:00
f4c88459f7 Linux 4.14.67 2018-08-24 13:09:23 +02:00
edf81993dc kbuild: suppress warnings from 'getconf LFS_*'
[ Upstream commit 6d79a7b424 ]

Suppress warnings for systems that do not recognize LFS_*.

 getconf: no such configuration parameter `LFS_CFLAGS'
 getconf: no such configuration parameter `LFS_LDFLAGS'
 getconf: no such configuration parameter `LFS_LIBS'

Fixes: d7f14c66c2 ("kbuild: Enable Large File Support for hostprogs")
Reported-by: Chen Feng <puck.chen@hisilicon.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-24 13:09:17 +02:00
c5f7d3c4da Linux 4.14.66 2018-08-22 07:46:11 +02:00
4cea13b661 Linux 4.14.65 2018-08-18 10:48:00 +02:00
7251bd56d9 Linux 4.14.64 2018-08-17 21:01:12 +02:00
9d5cd9f2a4 Linux 4.14.63 2018-08-15 18:13:02 +02:00
1aa1166efa Linux 4.14.62 2018-08-09 12:16:40 +02:00
2ae6c0413b Linux 4.14.61 2018-08-06 16:20:52 +02:00
deaacd62c2 Linux 4.14.60 2018-08-03 07:50:45 +02:00
53208e12fa Linux 4.14.59 2018-07-28 07:55:45 +02:00
e94f784fdd turn off -Wattribute-alias
Starting with gcc-8.1, we get a warning about all system call definitions,
which use an alias between functions with incompatible prototypes, e.g.:

In file included from ../mm/process_vm_access.c:19:
../include/linux/syscalls.h:211:18: warning: 'sys_process_vm_readv' alias between functions of incompatible types 'long int(pid_t,  const struct iovec *, long unsigned int,  const struct iovec *, long unsigned int,  long unsigned int)' {aka 'long int(int,  const struct iovec *, long unsigned int,  const struct iovec *, long unsigned int,  long unsigned int)'} and 'long int(long int,  long int,  long int,  long int,  long int,  long int)' [-Wattribute-alias]
  asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \
                  ^~~
../include/linux/syscalls.h:207:2: note: in expansion of macro '__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
../include/linux/syscalls.h:201:36: note: in expansion of macro 'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
../mm/process_vm_access.c:300:1: note: in expansion of macro 'SYSCALL_DEFINE6'
 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec,
 ^~~~~~~~~~~~~~~
../include/linux/syscalls.h:215:18: note: aliased declaration here
  asmlinkage long SyS##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \
                  ^~~
../include/linux/syscalls.h:207:2: note: in expansion of macro '__SYSCALL_DEFINEx'
  __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
  ^~~~~~~~~~~~~~~~~
../include/linux/syscalls.h:201:36: note: in expansion of macro 'SYSCALL_DEFINEx'
 #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__)
                                    ^~~~~~~~~~~~~~~
../mm/process_vm_access.c:300:1: note: in expansion of macro 'SYSCALL_DEFINE6'
 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec,

This is really noisy and does not indicate a real problem. In the latest
mainline kernel, this was addressed by commit bee2003177 ("disable
-Wattribute-alias warning for SYSCALL_DEFINEx()"), which seems too invasive
to backport.

This takes a much simpler approach and just disables the warning across the
kernel.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-28 07:55:45 +02:00
f952480a8f Linux 4.14.58 2018-07-25 11:25:11 +02:00
ecc160ece6 Linux 4.14.57 2018-07-22 14:28:52 +02:00
cff26c95b2 Linux 4.14.56 2018-07-17 11:39:34 +02:00
1e92e81355 Linux 4.14.55 2018-07-11 16:29:25 +02:00
5893f4c3fb Linux 4.14.54 2018-07-08 15:30:53 +02:00
fa745a1bd9 Linux 4.14.53 2018-07-03 11:25:05 +02:00
a26899e0ba Linux 4.14.52 2018-06-26 08:06:33 +08:00
33445c07cd Linux 4.14.51 2018-06-21 04:03:02 +09:00
cda6fd4d93 Linux 4.14.50 2018-06-16 09:45:18 +02:00
70d7bbd9b5 Linux 4.14.49 2018-06-11 22:49:22 +02:00
2c6025ebc7 Linux 4.14.48 2018-06-05 11:42:00 +02:00
96b086a7bf kbuild: clang: disable unused variable warnings only when constant
commit 0a5f417674 upstream.

Currently, GCC disables -Wunused-const-variable, but not
-Wunused-variable, so warns unused variables if they are
non-constant.

While, Clang does not warn unused variables at all regardless of
the const qualifier because -Wno-unused-const-variable is implied
by the stronger option -Wno-unused-variable.

Disable -Wunused-const-variable instead of -Wunused-variable so that
GCC and Clang work in the same way.

Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-05 11:41:57 +02:00
151b144bc6 kbuild: clang: remove crufty HOSTCFLAGS
commit df16aaac26 upstream.

When compiling with `make CC=clang HOSTCC=clang`, I was seeing warnings
that clang did not recognize -fno-delete-null-pointer-checks for HOSTCC
targets.  These were added in commit 61163efae0 ("kbuild: LLVMLinux:
Add Kbuild support for building kernel with Clang").

Clang does not support -fno-delete-null-pointer-checks, so adding it to
HOSTCFLAGS if HOSTCC is clang does not make sense.

It's not clear why the other warnings were disabled, and just for
HOSTCFLAGS, but I can remove them, add -Werror to HOSTCFLAGS and compile
with clang just fine.

Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-05 11:41:57 +02:00
57a3ca7835 Linux 4.14.47 2018-05-30 22:32:31 +02:00
bf4367d790 Linux 4.14.46 2018-05-30 12:19:59 +02:00
2c2b15bb0e Linux 4.14.45 2018-05-30 07:52:42 +02:00
102b97d624 Linux 4.14.44 2018-05-25 16:18:02 +02:00
1dff08485b Linux 4.14.43 2018-05-22 18:54:07 +02:00