- 12 Mar, 2017 1 commit
-
-
Linus Torvalds authored
-
- 05 Mar, 2017 1 commit
-
-
Linus Torvalds authored
-
- 20 Feb, 2017 1 commit
-
-
Josh Poimboeuf authored
When building a CONFIG_STACK_VALIDATION enabled kernel without the libelf devel package installed, the Makefile prints a warning: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel" But when building an out-of-tree module, the warning doesn't show. Instead it tries to use objtool, and the build fails with: /bin/sh: ./tools/objtool/objtool: No such file or directory Make sure the warning and the disabling of objtool occur in all cases, by moving the CONFIG_STACK_VALIDATION checks outside the 'ifeq ($(KBUILD_EXTMOD),)' block in the Makefile. Tested-By:
Marc MERLIN <marc@merlins.org> Suggested-by:
Jessica Yu <jeyu@redhat.com> Reported-by:
Marc MERLIN <marc@merlins.org> Signed-off-by:
Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by:
Jessica Yu <jeyu@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Michal Marek <mmarek@suse.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Fixes: 3b27a0c8 ("objtool: Detect and warn if libelf is missing and don't break the build") Link: http://lkml.kernel.org/r/b3088ae4a8698143d4851965793c61fec2135b1f.1487182864.git.jpoimboe@redhat.com Signed-off-by:
Ingo Molnar <mingo@kernel.org>
-
- 19 Feb, 2017 1 commit
-
-
Linus Torvalds authored
-
- 15 Feb, 2017 1 commit
-
-
Rémy Léone authored
Documentation shouldn't have broken links. sphinx linkcheck builder scans all documents for external links, tries to open them with urllib2, and writes an overview which ones are broken and redirected to standard output and to output.txt in the output directory. Reviewed-by:
Jani Nikula <jani.nikula@intel.com> Tested-by:
Jani Nikula <jani.nikula@intel.com> Signed-off-by:
Rémy Léone <remy.leone@gmail.com> Signed-off-by:
Jonathan Corbet <corbet@lwn.net>
-
- 12 Feb, 2017 1 commit
-
-
Linus Torvalds authored
-
- 05 Feb, 2017 1 commit
-
-
Linus Torvalds authored
-
- 03 Feb, 2017 1 commit
-
-
David Lin authored
Some versions of ARM GCC compiler such as Android toolchain throws in a '-fpic' flag by default. This causes the gcc-goto check script to fail although some config would have '-fno-pic' flag in the KBUILD_CFLAGS. This patch passes the KBUILD_CFLAGS to the check script so that the script does not rely on the default config from different compilers. Link: http://lkml.kernel.org/r/20170120234329.78868-1-dtwlin@google.com Signed-off-by:
David Lin <dtwlin@google.com> Acked-by:
Steven Rostedt <rostedt@goodmis.org> Cc: Michal Marek <mmarek@suse.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 29 Jan, 2017 1 commit
-
-
Linus Torvalds authored
-
- 26 Jan, 2017 1 commit
-
-
Josh Poimboeuf authored
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>
-
- 22 Jan, 2017 1 commit
-
-
Linus Torvalds authored
-
- 16 Jan, 2017 1 commit
-
-
Linus Torvalds authored
-
- 08 Jan, 2017 1 commit
-
-
Linus Torvalds authored
-
- 01 Jan, 2017 1 commit
-
-
Linus Torvalds authored
-
- 26 Dec, 2016 1 commit
-
-
Linus Torvalds authored
-
- 11 Dec, 2016 1 commit
-
-
Linus Torvalds authored
-
- 04 Dec, 2016 1 commit
-
-
Linus Torvalds authored
-
- 02 Dec, 2016 1 commit
-
-
Nicolas Pitre authored
When building a specific target such as bzImage, modules aren't normally built. However if CONFIG_TRIM_UNUSED_KSYMS is enabled, no built modules means none of the exported symbols are used and therefore they will all be trimmed away from the final kernel. A subsequent "make modules" will fail because modpost cannot find the needed symbols for those modules in the kernel binary. Let's make sure modules are also built whenever CONFIG_TRIM_UNUSED_KSYMS is enabled and that the kernel binary is properly rebuilt accordingly. Signed-off-by:
Nicolas Pitre <nico@linaro.org> Tested-by:
Jarod Wilson <jarod@redhat.com> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 01 Dec, 2016 1 commit
-
-
Nicolas Pitre authored
Some people are able to trigger a race where autoksyms.h is used before its empty version is even created. Let's create it at the same time as the directory holding it is created. Signed-off-by:
Nicolas Pitre <nico@linaro.org> Tested-by:
Prarit Bhargava <prarit@redhat.com> Tested-by:
Jarod Wilson <jarod@redhat.com> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 27 Nov, 2016 1 commit
-
-
Linus Torvalds authored
-
- 20 Nov, 2016 1 commit
-
-
Linus Torvalds authored
-
- 15 Nov, 2016 1 commit
-
-
Borislav Petkov authored
So Sebastian turned off the PIE for kernel builds but that was too late - Kbuild.include already uses KBUILD_CFLAGS and trying to disable gcc options with, say cc-disable-warning, fails: gcc -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs ... -Wno-sign-compare -fno-asynchronous-unwind-tables -Wframe-address -c -x c /dev/null -o .31392.tmp /dev/null:1:0: error: code model kernel does not support PIC mode because that returns an error and we can't disable the warning. For example in this case: KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) which leads to gcc issuing all those warnings again. So let's turn off PIE/PIC at the earliest possible moment, when we declare KBUILD_CFLAGS so that cc-disable-warning picks it up too. Also, we need the $(call cc-option ...) because -fno-PIE is supported since gcc v3.4 and our lowest supported gcc version is 3.2 right now. Signed-off-by:
Borislav Petkov <bp@suse.de> Cc: stable@vger.kernel.org Cc: Ben Hutchings <ben@decadent.org.uk> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by:
Michal Marek <mmarek@suse.com>
-
- 13 Nov, 2016 1 commit
-
-
Linus Torvalds authored
-
- 11 Nov, 2016 1 commit
-
-
Arnd Bergmann authored
Traditionally, we have always had warnings about uninitialized variables enabled, as this is part of -Wall, and generally a good idea [1], but it also always produced false positives, mainly because this is a variation of the halting problem and provably impossible to get right in all cases [2]. Various people have identified cases that are particularly bad for false positives, and in commit e74fc973 ("Turn off -Wmaybe-uninitialized when building with -Os"), I turned off the warning for any build that was done with CC_OPTIMIZE_FOR_SIZE. This drastically reduced the number of false positive warnings in the default build but unfortunately had the side effect of turning the warning off completely in 'allmodconfig' builds, which in turn led to a lot of warnings (both actual bugs, and remaining false positives) to go in unnoticed. With commit 877417e6 ("Kbuild: change CC_OPTIMIZE_FOR_SIZE definition") enabled the warning again for allmodcon...
-
- 08 Nov, 2016 1 commit
-
-
Sebastian Andrzej Siewior authored
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>
-
- 05 Nov, 2016 1 commit
-
-
Linus Torvalds authored
-
- 29 Oct, 2016 1 commit
-
-
Linus Torvalds authored
-
- 24 Oct, 2016 1 commit
-
-
Linus Torvalds authored
-
- 15 Oct, 2016 1 commit
-
-
Linus Torvalds authored
-
- 12 Oct, 2016 1 commit
-
-
Linus Torvalds authored
This affectively reverts commit 377ccbb4 ("Makefile: Mute warning for __builtin_return_address(>0) for tracing only") because it turns out that it really isn't tracing only - it's all over the tree. We already also had the warning disabled separately for mm/usercopy.c (which this commit also removes), and it turns out that we will also want to disable it for get_lock_parent_ip(), that is used for at least TRACE_IRQFLAGS. Which (when enabled) ends up being all over the tree. Steven Rostedt had a patch that tried to limit it to just the config options that actually triggered this, but quite frankly, the extra complexity and abstraction just isn't worth it. We have never actually had a case where the warning is actually useful, so let's just disable it globally and not worry about it. Acked-by:
Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <m...
-
- 10 Oct, 2016 1 commit
-
-
Shuah Khan authored
Move blackfin gptimers-example to samples and remove it from Documentation Makefile. Update samples Kconfig and Makefile to build gptimers-example. blackfin is the last CONFIG_BUILD_DOCSRC target in Documentation/Makefile. Hence this patch also includes changes to remove CONFIG_BUILD_DOCSRC from Makefile and lib/Kconfig.debug and updates VIDEO_PCI_SKELETON dependency on BUILD_DOCSRC. Documentation/Makefile is not deleted to avoid braking make htmldocs and make distclean. Acked-by:
Michal Marek <mmarek@suse.com> Acked-by:
Jonathan Corbet <corbet@lwn.net> Reviewed-by:
Kees Cook <keescook@chromium.org> Reported-by:
Valentin Rothberg <valentinrothberg@gmail.com> Reported-by:
Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by:
Shuah Khan <shuahkh@osg.samsung.com>
-
- 02 Oct, 2016 1 commit
-
-
Linus Torvalds authored
-
- 26 Sep, 2016 1 commit
-
-
Linus Torvalds authored
-
- 19 Sep, 2016 1 commit
-
-
Linus Torvalds authored
-
- 12 Sep, 2016 1 commit
-
-
Linus Torvalds authored
-
- 09 Sep, 2016 2 commits
-
-
Nicholas Piggin authored
Allow architectures to create arch/xxx/Makefile.postlink with targets for vmlinux, modules.ko, and clean, which will be invoked after final linking of vmlinux and modules. powerpc will use this to check vmlinux linker relocations for sanity, and may use it to fix up alternate instruction patch branch addresses. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.com>
-
Nicholas Piggin authored
Introduce LD_DEAD_CODE_DATA_ELIMINATION option for architectures to select to build with -ffunction-sections, -fdata-sections, and link with --gc-sections. It requires some work (documented) to ensure all unreferenced entrypoints are live, and requires toolchain and build verification, so it is made a per-arch option for now. On a random powerpc64le build, this yelds a significant size saving, it boots and runs fine, but there is a lot I haven't tested as yet, so these savings may be reduced if there are bugs in the link. text data bss dec filename 11169741 1180744 1923176 14273661 vmlinux 10445269 1004127 1919707 13369103 vmlinux.dce ~700K text, ~170K data, 6% removed from kernel image size. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.com>
-
- 04 Sep, 2016 1 commit
-
-
Linus Torvalds authored
-
- 28 Aug, 2016 1 commit
-
-
Linus Torvalds authored
-
- 22 Aug, 2016 1 commit
-
-
Mauro Carvalho Chehab authored
Sphinx supports LaTeX output. Sometimes, it is interesting to call it directly, instead of also generating a PDF. As it comes for free, add a target for it. Signed-off-by:
Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by:
Jonathan Corbet <corbet@lwn.net>
-