Skip to content

Commit 0af5cb3

Browse files
committed
Merge tag 'kbuild-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild updates from Masahiro Yamada: - Remove the support for -O3 (CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3) - Fix error of rpm-pkg cross-builds - Support riscv for checkstack tool - Re-enable -Wformwat warnings for Clang - Clean up modpost, Makefiles, and misc scripts * tag 'kbuild-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (30 commits) modpost: remove .symbol_white_list field entirely modpost: remove unneeded .symbol_white_list initializers modpost: add PATTERNS() helper macro modpost: shorten warning messages in report_sec_mismatch() Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in modpost" modpost: use more reliable way to get fromsec in section_rel(a)() modpost: add array range check to sec_name() modpost: refactor get_secindex() kbuild: set EXIT trap before creating temporary directory modpost: remove unused Elf_Sword macro Makefile.extrawarn: re-enable -Wformat for clang kbuild: add dtbs_prepare target kconfig: Qt5: tell the user which packages are required modpost: use sym_get_data() to get module device_table data modpost: drop executable ELF support checkstack: add riscv support for scripts/checkstack.pl kconfig: shorten the temporary directory name for cc-option scripts: headers_install.sh: Update config leak ignore entries kbuild: error out if $(INSTALL_MOD_PATH) contains % or : kbuild: error out if $(KBUILD_EXTMOD) contains % or : ...
2 parents d425207 + 672fb67 commit 0af5cb3

36 files changed

+111
-313
lines changed

Documentation/kbuild/kconfig-language.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ Future kconfig work
672672
Work on kconfig is welcomed on both areas of clarifying semantics and on
673673
evaluating the use of a full SAT solver for it. A full SAT solver can be
674674
desirable to enable more complex dependency mappings and / or queries,
675-
for instance on possible use case for a SAT solver could be that of handling
675+
for instance one possible use case for a SAT solver could be that of handling
676676
the current known recursive dependency issues. It is not known if this would
677677
address such issues but such evaluation is desirable. If support for a full SAT
678678
solver proves too complex or that it cannot address recursive dependency issues

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4783,7 +4783,6 @@ L: keyrings@vger.kernel.org
47834783
S: Maintained
47844784
F: Documentation/admin-guide/module-signing.rst
47854785
F: certs/
4786-
F: scripts/check-blacklist-hashes.awk
47874786
F: scripts/sign-file.c
47884787
F: tools/certs/
47894788

Makefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ endif
129129
$(if $(word 2, $(KBUILD_EXTMOD)), \
130130
$(error building multiple external modules is not supported))
131131

132+
$(foreach x, % :, $(if $(findstring $x, $(KBUILD_EXTMOD)), \
133+
$(error module directory path cannot contain '$x')))
134+
132135
# Remove trailing slashes
133136
ifneq ($(filter %/, $(KBUILD_EXTMOD)),)
134137
KBUILD_EXTMOD := $(shell dirname $(KBUILD_EXTMOD).)
@@ -755,8 +758,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
755758

756759
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
757760
KBUILD_CFLAGS += -O2
758-
else ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
759-
KBUILD_CFLAGS += -O3
760761
else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
761762
KBUILD_CFLAGS += -Os
762763
endif
@@ -1370,16 +1371,21 @@ endif
13701371

13711372
ifneq ($(dtstree),)
13721373

1373-
%.dtb: include/config/kernel.release scripts_dtc
1374+
%.dtb: dtbs_prepare
13741375
$(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
13751376

1376-
%.dtbo: include/config/kernel.release scripts_dtc
1377+
%.dtbo: dtbs_prepare
13771378
$(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
13781379

1379-
PHONY += dtbs dtbs_install dtbs_check
1380-
dtbs: include/config/kernel.release scripts_dtc
1380+
PHONY += dtbs dtbs_prepare dtbs_install dtbs_check
1381+
dtbs: dtbs_prepare
13811382
$(Q)$(MAKE) $(build)=$(dtstree)
13821383

1384+
# include/config/kernel.release is actually needed when installing DTBs because
1385+
# INSTALL_DTBS_PATH contains $(KERNELRELEASE). However, we do not want to make
1386+
# dtbs_install depend on it as dtbs_install may run as root.
1387+
dtbs_prepare: include/config/kernel.release scripts_dtc
1388+
13831389
ifneq ($(filter dtbs_check, $(MAKECMDGOALS)),)
13841390
export CHECK_DTBS=y
13851391
dtbs: dt_binding_check

arch/arc/configs/axs101_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CONFIG_NAMESPACES=y
99
# CONFIG_UTS_NS is not set
1010
# CONFIG_PID_NS is not set
1111
CONFIG_BLK_DEV_INITRD=y
12-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1312
CONFIG_EMBEDDED=y
1413
CONFIG_PERF_EVENTS=y
1514
# CONFIG_VM_EVENT_COUNTERS is not set

arch/arc/configs/axs103_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CONFIG_NAMESPACES=y
99
# CONFIG_UTS_NS is not set
1010
# CONFIG_PID_NS is not set
1111
CONFIG_BLK_DEV_INITRD=y
12-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1312
CONFIG_EMBEDDED=y
1413
CONFIG_PERF_EVENTS=y
1514
# CONFIG_VM_EVENT_COUNTERS is not set

arch/arc/configs/axs103_smp_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CONFIG_NAMESPACES=y
99
# CONFIG_UTS_NS is not set
1010
# CONFIG_PID_NS is not set
1111
CONFIG_BLK_DEV_INITRD=y
12-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1312
CONFIG_EMBEDDED=y
1413
CONFIG_PERF_EVENTS=y
1514
# CONFIG_VM_EVENT_COUNTERS is not set

arch/arc/configs/haps_hs_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1514
CONFIG_EXPERT=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_COMPAT_BRK is not set

arch/arc/configs/haps_hs_smp_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y
1716
# CONFIG_VM_EVENT_COUNTERS is not set

arch/arc/configs/hsdk_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CONFIG_NAMESPACES=y
99
# CONFIG_PID_NS is not set
1010
CONFIG_BLK_DEV_INITRD=y
1111
CONFIG_BLK_DEV_RAM=y
12-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1312
CONFIG_EMBEDDED=y
1413
CONFIG_PERF_EVENTS=y
1514
# CONFIG_VM_EVENT_COUNTERS is not set

arch/arc/configs/nsim_700_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
1111
# CONFIG_UTS_NS is not set
1212
# CONFIG_PID_NS is not set
1313
CONFIG_BLK_DEV_INITRD=y
14-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1514
CONFIG_KALLSYMS_ALL=y
1615
CONFIG_EMBEDDED=y
1716
CONFIG_PERF_EVENTS=y

0 commit comments

Comments
 (0)