summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2019-12-30gcc-9: silence 'address-of-packed-member' warningLinus Torvalds1-1/+1
commit 6f303d60534c46aa1a239f29c321f95c83dda748 upstream. We already did this for clang, but now gcc has that warning too. Yes, yes, the address may be unaligned. And that's kind of the point. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick from stable linux-4.14.y commit 8e69458509d2 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: Iec954dfa4fd8bf3ea7e1db3da2e421b8f58bbb32
2019-02-12Linux 4.14.99v4.14.99Greg Kroah-Hartman1-1/+1
2019-02-06Linux 4.14.98v4.14.98Greg Kroah-Hartman1-1/+1
2019-01-31Linux 4.14.97v4.14.97Greg Kroah-Hartman1-1/+1
2019-01-26Linux 4.14.96v4.14.96Greg Kroah-Hartman1-1/+1
2019-01-23Linux 4.14.95v4.14.95Greg Kroah-Hartman1-1/+1
2019-01-16Linux 4.14.94v4.14.94Greg Kroah-Hartman1-1/+1
2019-01-13Linux 4.14.93v4.14.93Greg Kroah-Hartman1-1/+1
2019-01-13Makefile: Export clang toolchain variablesJoel Stanley1-0/+1
commit 3bd9805090af843b25f97ffe5049f20ade1d86d6 upstream. The powerpc makefile will use these in it's boot wrapper. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13kbuild: consolidate Clang compiler flagsMasahiro Yamada1-7/+6
commit 238bcbc4e07fad2fff99c5b157d0c37ccd4d093c upstream. Collect basic Clang options such as --target, --prefix, --gcc-toolchain, -no-integrated-as into a single variable CLANG_FLAGS so that it can be easily reused in other parts of Makefile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Acked-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13kbuild: add -no-integrated-as Clang option unconditionallyMasahiro Yamada1-2/+2
commit dbe27a002ef8573168cb64e181458ea23a74e2b6 upstream. We are still a way off the Clang's integrated assembler support for the kernel. Hence, -no-integrated-as is mandatory to build the kernel with Clang. If you had an ancient version of Clang that does not recognize this option, you would not be able to compile the kernel anyway. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-13kbuild: fix false positive warning/error about missing libelfMasahiro Yamada1-5/+8
[ Upstream commit ef7cfd00b2caf6edeb7f169682b64be2d0a798cf ] For the same reason as commit 25896d073d8a ("x86/build: Fix compiler support check for CONFIG_RETPOLINE"), you cannot put this $(error ...) into the parse stage of the top Makefile. Perhaps I'd propose a more sophisticated solution later, but this is the best I can do for now. Link: https://lkml.org/lkml/2017/12/25/211 Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com> Reported-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reported-by: Qian Cai <cai@lca.pw> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Qian Cai <cai@lca.pw> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-01-09Linux 4.14.92v4.14.92Greg Kroah-Hartman1-1/+1
2018-12-29Linux 4.14.91v4.14.91Greg Kroah-Hartman1-1/+1
2018-12-21Linux 4.14.90v4.14.90Greg Kroah-Hartman1-1/+1
2018-12-17Linux 4.14.89v4.14.89Greg Kroah-Hartman1-1/+1
2018-12-13Linux 4.14.88v4.14.88Greg Kroah-Hartman1-1/+1
2018-12-08Linux 4.14.87v4.14.87Greg Kroah-Hartman1-1/+1
2018-12-08disable stringop truncation warnings for nowStephen Rothwell1-0/+3
commit 217c3e0196758662aa0429863b09d1c13da1c5d6 upstream. They are too noisy Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-05Linux 4.14.86v4.14.86Greg Kroah-Hartman1-1/+1
2018-12-01Linux 4.14.85v4.14.85Greg Kroah-Hartman1-1/+1
2018-12-01kbuild: allow to use GCC toolchain not in Clang search pathStefan Agner1-3/+5
commit ef8c4ed9db80261f397f0c0bf723684601ae3b52 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-11-27Linux 4.14.84v4.14.84Greg Kroah-Hartman1-1/+1
2018-11-23Linux 4.14.83v4.14.83Greg Kroah-Hartman1-1/+1
2018-11-21Linux 4.14.82v4.14.82Greg Kroah-Hartman1-1/+1
2018-11-13Linux 4.14.81v4.14.81Greg Kroah-Hartman1-1/+1
2018-11-10Linux 4.14.80v4.14.80Greg Kroah-Hartman1-1/+1
2018-11-04Linux 4.14.79v4.14.79Greg Kroah-Hartman1-1/+1
2018-11-04kbuild: set no-integrated-as before incl. arch MakefileStefan Agner1-2/+2
[ Upstream commit 0f0e8de334c54c38818a4a5390a39aa09deff5bf ] 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: cfe17c9bbe6a ("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-10-20Linux 4.14.78v4.14.78Greg Kroah-Hartman1-1/+1
2018-10-18Linux 4.14.77v4.14.77Greg Kroah-Hartman1-1/+1
2018-10-13Linux 4.14.76v4.14.76Greg Kroah-Hartman1-1/+1
2018-10-10Linux 4.14.75v4.14.75Greg Kroah-Hartman1-1/+1
2018-10-03Linux 4.14.74v4.14.74Greg Kroah-Hartman1-1/+1
2018-09-29Linux 4.14.73v4.14.73Greg Kroah-Hartman1-1/+1
2018-09-26Linux 4.14.72v4.14.72Greg Kroah-Hartman1-1/+1
2018-09-19Linux 4.14.71v4.14.71Greg Kroah-Hartman1-1/+1
2018-09-15Linux 4.14.70v4.14.70Greg Kroah-Hartman1-1/+1
2018-09-09Linux 4.14.69v4.14.69Greg Kroah-Hartman1-1/+1
2018-09-05Linux 4.14.68v4.14.68Greg Kroah-Hartman1-1/+1
2018-09-05x86/vdso: Fix vDSO build if a retpoline is emittedAndy Lutomirski1-0/+4
commit 2e549b2ee0e358bc758480e716b881f9cabedb6a 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 76b043848fd2 ("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-08-24Linux 4.14.67v4.14.67Greg Kroah-Hartman1-1/+1
2018-08-24kbuild: suppress warnings from 'getconf LFS_*'Masahiro Yamada1-3/+3
[ Upstream commit 6d79a7b424a5630a6fcab31fd7c38af4ea9c9a0f ] 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: d7f14c66c273 ("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-22Linux 4.14.66v4.14.66Greg Kroah-Hartman1-1/+1
2018-08-18Linux 4.14.65v4.14.65Greg Kroah-Hartman1-1/+1
2018-08-17Linux 4.14.64v4.14.64Greg Kroah-Hartman1-1/+1
2018-08-15Linux 4.14.63v4.14.63Greg Kroah-Hartman1-1/+1
2018-08-09Linux 4.14.62v4.14.62Greg Kroah-Hartman1-1/+1
2018-08-06Linux 4.14.61v4.14.61Greg Kroah-Hartman1-1/+1
2018-08-03Linux 4.14.60v4.14.60Greg Kroah-Hartman1-1/+1