summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2019-12-13Linux 4.19.89v4.19.89Greg Kroah-Hartman1-1/+1
2019-12-13kbuild: fix single target build for external moduleMasahiro Yamada1-8/+3
[ Upstream commit e07db28eea38ed4e332b3a89f3995c86b713cb5b ] Building a single target in an external module fails due to missing .tmp_versions directory. For example, $ make -C /lib/modules/$(uname -r)/build M=$PWD foo.o will fail in the following way: CC [M] /home/masahiro/foo/foo.o /bin/sh: 1: cannot create /home/masahiro/foo/.tmp_versions/foo.mod: Directory nonexistent This is because $(cmd_crmodverdir) is executed only before building /, %/, %.ko single targets of external modules. Create .tmp_versions in the 'prepare' target. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05Linux 4.19.88v4.19.88Greg Kroah-Hartman1-1/+1
2019-12-01Linux 4.19.87v4.19.87Greg Kroah-Hartman1-1/+1
2019-11-24Linux 4.19.86v4.19.86Greg Kroah-Hartman1-1/+1
2019-11-20Linux 4.19.85v4.19.85Greg Kroah-Hartman1-1/+1
2019-11-12Linux 4.19.84v4.19.84Greg Kroah-Hartman1-1/+1
2019-11-10Linux 4.19.83v4.19.83Greg Kroah-Hartman1-1/+1
2019-11-10kbuild: add -fcf-protection=none when using retpoline flagsSeth Forshee1-0/+6
[ Upstream commit 29be86d7f9cb18df4123f309ac7857570513e8bc ] The gcc -fcf-protection=branch option is not compatible with -mindirect-branch=thunk-extern. The latter is used when CONFIG_RETPOLINE is selected, and this will fail to build with a gcc which has -fcf-protection=branch enabled by default. Adding -fcf-protection=none when building with retpoline enabled prevents such build failures. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-06Linux 4.19.82v4.19.82Greg Kroah-Hartman1-1/+1
2019-10-29Linux 4.19.81v4.19.81Greg Kroah-Hartman1-1/+1
2019-10-17Linux 4.19.80v4.19.80Greg Kroah-Hartman1-1/+1
2019-10-11Linux 4.19.79v4.19.79Greg Kroah-Hartman1-1/+1
2019-10-07Linux 4.19.78v4.19.78Greg Kroah-Hartman1-1/+1
2019-10-05Linux 4.19.77v4.19.77Greg Kroah-Hartman1-1/+1
2019-10-01Linux 4.19.76v4.19.76Greg Kroah-Hartman1-1/+1
2019-09-21Linux 4.19.75v4.19.75Greg Kroah-Hartman1-1/+1
2019-09-19Linux 4.19.74v4.19.74Greg Kroah-Hartman1-1/+1
2019-09-16Linux 4.19.73v4.19.73Greg Kroah-Hartman1-1/+1
2019-09-10Linux 4.19.72v4.19.72Greg Kroah-Hartman1-1/+1
2019-09-06Linux 4.19.71v4.19.71Greg Kroah-Hartman1-1/+1
2019-09-06Linux 4.19.70v4.19.70Greg Kroah-Hartman1-1/+1
2019-08-29Linux 4.19.69v4.19.69Greg Kroah-Hartman1-1/+1
2019-08-25Linux 4.19.68v4.19.68Greg Kroah-Hartman1-1/+1
2019-08-16Linux 4.19.67v4.19.67Greg Kroah-Hartman1-1/+1
2019-08-09Linux 4.19.66v4.19.66Greg Kroah-Hartman1-1/+1
2019-08-06Linux 4.19.65v4.19.65Greg Kroah-Hartman1-1/+1
2019-08-06kbuild: initialize CLANG_FLAGS correctly in the top MakefileMasahiro Yamada1-1/+2
commit 5241ab4cf42d3a93b933b55d3d53f43049081fa1 upstream. CLANG_FLAGS is initialized by the following line: CLANG_FLAGS := --target=$(notdir $(CROSS_COMPILE:%-=%)) ..., which is run only when CROSS_COMPILE is set. Some build targets (bindeb-pkg etc.) recurse to the top Makefile. When you build the kernel with Clang but without CROSS_COMPILE, the same compiler flags such as -no-integrated-as are accumulated into CLANG_FLAGS. If you run 'make CC=clang' and then 'make CC=clang bindeb-pkg', Kbuild will recompile everything needlessly due to the build command change. Fix this by correctly initializing CLANG_FLAGS. Fixes: 238bcbc4e07f ("kbuild: consolidate Clang compiler flags") Cc: <stable@vger.kernel.org> # v5.0+ Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-04Linux 4.19.64v4.19.64Greg Kroah-Hartman1-1/+1
2019-07-31Linux 4.19.63v4.19.63Greg Kroah-Hartman1-1/+1
2019-07-31kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGSNathan Chancellor1-0/+1
[ Upstream commit 589834b3a0097a4908f4112eac0ca2feb486fa32 ] In commit ebcc5928c5d9 ("arm64: Silence gcc warnings about arch ABI drift"), the arm64 Makefile added -Wno-psabi to KBUILD_CFLAGS, which is a GCC only option so clang rightfully complains: warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] https://clang.llvm.org/docs/DiagnosticsReference.html#wunknown-warning-option However, by default, this is merely a warning so the build happily goes on with a slew of these warnings in the process. Commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to cc-option to support clang") worked around this behavior in cc-option by adding -Werror so that unknown flags cause an error. However, this all happens silently and when an unknown flag is added to the build unconditionally like -Wno-psabi, cc-option will always fail because there is always an unknown flag in the list of flags. This manifested as link time failures in the arm64 libstub because -fno-stack-protector didn't get added to KBUILD_CFLAGS. To avoid these weird cryptic failures in the future, make clang behave like gcc and immediately error when it encounters an unknown flag by adding -Werror=unknown-warning-option to CLANG_FLAGS. This can be added unconditionally for clang because it is supported by at least 3.0.0, according to godbolt [1] and 4.0.0, according to its documentation [2], which is far earlier than we typically support. [1]: https://godbolt.org/z/7F7rm3 [2]: https://releases.llvm.org/4.0.0/tools/clang/docs/DiagnosticsReference.html#wunknown-warning-option Link: https://github.com/ClangBuiltLinux/linux/issues/511 Link: https://github.com/ClangBuiltLinux/linux/issues/517 Suggested-by: Peter Smith <peter.smith@linaro.org> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-28Linux 4.19.62v4.19.62Greg Kroah-Hartman1-1/+1
2019-07-26Linux 4.19.61v4.19.61Greg Kroah-Hartman1-1/+1
2019-07-21Linux 4.19.60v4.19.60Greg Kroah-Hartman1-1/+1
2019-07-14Linux 4.19.59v4.19.59Greg Kroah-Hartman1-1/+1
2019-07-10Linux 4.19.58v4.19.58Greg Kroah-Hartman1-1/+1
2019-07-03Linux 4.19.57v4.19.57Greg Kroah-Hartman1-1/+1
2019-06-25Linux 4.19.56v4.19.56Greg Kroah-Hartman1-1/+1
2019-06-25gcc-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>
2019-06-22Linux 4.19.55v4.19.55Greg Kroah-Hartman1-1/+1
2019-06-22Linux 4.19.54v4.19.54Greg Kroah-Hartman1-1/+1
2019-06-19Linux 4.19.53v4.19.53Greg Kroah-Hartman1-1/+1
2019-06-17Linux 4.19.52v4.19.52Greg Kroah-Hartman1-1/+1
2019-06-15Linux 4.19.51v4.19.51Greg Kroah-Hartman1-1/+1
2019-06-11Linux 4.19.50v4.19.50Greg Kroah-Hartman1-1/+1
2019-06-09Linux 4.19.49v4.19.49Greg Kroah-Hartman1-1/+1
2019-06-04Linux 4.19.48v4.19.48Greg Kroah-Hartman1-1/+1
2019-06-04jump_label: move 'asm goto' support test to KconfigMasahiro Yamada1-7/+0
commit e9666d10a5677a494260d60d1fa0b73cc7646eb3 upstream. Currently, CONFIG_JUMP_LABEL just means "I _want_ to use jump label". The jump label is controlled by HAVE_JUMP_LABEL, which is defined like this: #if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL) # define HAVE_JUMP_LABEL #endif We can improve this by testing 'asm goto' support in Kconfig, then make JUMP_LABEL depend on CC_HAS_ASM_GOTO. Ugly #ifdef HAVE_JUMP_LABEL will go away, and CONFIG_JUMP_LABEL will match to the real kernel capability. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Tested-by: Sedat Dilek <sedat.dilek@gmail.com> [nc: Fix trivial conflicts in 4.19 arch/xtensa/kernel/jump_label.c doesn't exist yet Ensured CC_HAVE_ASM_GOTO and HAVE_JUMP_LABEL were sufficiently eliminated] Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-31Linux 4.19.47v4.19.47Greg Kroah-Hartman1-1/+1
2019-05-25Linux 4.19.46v4.19.46Greg Kroah-Hartman1-1/+1