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

+1-1
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

-1
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

+12-6
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

arch/arc/configs/nsimosci_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CONFIG_NAMESPACES=y
1010
# CONFIG_UTS_NS is not set
1111
# CONFIG_PID_NS is not set
1212
CONFIG_BLK_DEV_INITRD=y
13-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1413
CONFIG_KALLSYMS_ALL=y
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y

arch/arc/configs/nsimosci_hs_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CONFIG_NAMESPACES=y
1010
# CONFIG_UTS_NS is not set
1111
# CONFIG_PID_NS is not set
1212
CONFIG_BLK_DEV_INITRD=y
13-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1413
CONFIG_KALLSYMS_ALL=y
1514
CONFIG_EMBEDDED=y
1615
CONFIG_PERF_EVENTS=y

arch/arc/configs/nsimosci_hs_smp_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_IKCONFIG_PROC=y
88
# CONFIG_UTS_NS is not set
99
# CONFIG_PID_NS is not set
1010
CONFIG_BLK_DEV_INITRD=y
11-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1211
CONFIG_PERF_EVENTS=y
1312
# CONFIG_COMPAT_BRK is not set
1413
CONFIG_KPROBES=y

arch/arc/configs/tb10x_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ CONFIG_INITRAMFS_SOURCE="../tb10x-rootfs.cpio"
1414
CONFIG_INITRAMFS_ROOT_UID=2100
1515
CONFIG_INITRAMFS_ROOT_GID=501
1616
# CONFIG_RD_GZIP is not set
17-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
1817
CONFIG_KALLSYMS_ALL=y
1918
# CONFIG_AIO is not set
2019
CONFIG_EMBEDDED=y

arch/arc/configs/vdk_hs38_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CONFIG_HIGH_RES_TIMERS=y
44
CONFIG_IKCONFIG=y
55
CONFIG_IKCONFIG_PROC=y
66
CONFIG_BLK_DEV_INITRD=y
7-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
87
CONFIG_EMBEDDED=y
98
CONFIG_PERF_EVENTS=y
109
# CONFIG_VM_EVENT_COUNTERS is not set

arch/arc/configs/vdk_hs38_smp_defconfig

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CONFIG_HIGH_RES_TIMERS=y
44
CONFIG_IKCONFIG=y
55
CONFIG_IKCONFIG_PROC=y
66
CONFIG_BLK_DEV_INITRD=y
7-
CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y
87
CONFIG_EMBEDDED=y
98
CONFIG_PERF_EVENTS=y
109
# CONFIG_VM_EVENT_COUNTERS is not set

certs/Makefile

+6-8
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@
44
#
55

66
obj-$(CONFIG_SYSTEM_TRUSTED_KEYRING) += system_keyring.o system_certificates.o
7-
obj-$(CONFIG_SYSTEM_BLACKLIST_KEYRING) += blacklist.o
7+
obj-$(CONFIG_SYSTEM_BLACKLIST_KEYRING) += blacklist.o blacklist_hashes.o
88
obj-$(CONFIG_SYSTEM_REVOCATION_LIST) += revocation_certificates.o
9-
ifneq ($(CONFIG_SYSTEM_BLACKLIST_HASH_LIST),)
109

1110
$(obj)/blacklist_hashes.o: $(obj)/blacklist_hash_list
1211
CFLAGS_blacklist_hashes.o := -I $(obj)
1312

1413
quiet_cmd_check_and_copy_blacklist_hash_list = GEN $@
1514
cmd_check_and_copy_blacklist_hash_list = \
16-
$(AWK) -f $(srctree)/scripts/check-blacklist-hashes.awk $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST) >&2; \
17-
cat $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST) > $@
15+
$(if $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST), \
16+
$(AWK) -f $(srctree)/$(src)/check-blacklist-hashes.awk $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST) >&2; \
17+
{ cat $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST); echo $(comma) NULL; } > $@, \
18+
echo NULL > $@)
1819

1920
$(obj)/blacklist_hash_list: $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST) FORCE
2021
$(call if_changed,check_and_copy_blacklist_hash_list)
21-
obj-$(CONFIG_SYSTEM_BLACKLIST_KEYRING) += blacklist_hashes.o
22-
else
23-
obj-$(CONFIG_SYSTEM_BLACKLIST_KEYRING) += blacklist_nohashes.o
24-
endif
22+
2523
targets += blacklist_hash_list
2624

2725
quiet_cmd_extract_certs = CERT $@

certs/blacklist_hashes.c

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33

44
const char __initconst *const blacklist_hashes[] = {
55
#include "blacklist_hash_list"
6-
, NULL
76
};

certs/blacklist_nohashes.c

-6
This file was deleted.
File renamed without changes.

init/Kconfig

+5-11
Original file line numberDiff line numberDiff line change
@@ -1411,13 +1411,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE
14111411
with the "-O2" compiler flag for best performance and most
14121412
helpful compile-time warnings.
14131413

1414-
config CC_OPTIMIZE_FOR_PERFORMANCE_O3
1415-
bool "Optimize more for performance (-O3)"
1416-
depends on ARC
1417-
help
1418-
Choosing this option will pass "-O3" to your compiler to optimize
1419-
the kernel yet more for performance.
1420-
14211414
config CC_OPTIMIZE_FOR_SIZE
14221415
bool "Optimize for size (-Os)"
14231416
help
@@ -1733,16 +1726,17 @@ config KALLSYMS_ALL
17331726
help
17341727
Normally kallsyms only contains the symbols of functions for nicer
17351728
OOPS messages and backtraces (i.e., symbols from the text and inittext
1736-
sections). This is sufficient for most cases. And only in very rare
1737-
cases (e.g., when a debugger is used) all symbols are required (e.g.,
1738-
names of variables from the data sections, etc).
1729+
sections). This is sufficient for most cases. And only if you want to
1730+
enable kernel live patching, or other less common use cases (e.g.,
1731+
when a debugger is used) all symbols are required (i.e., names of
1732+
variables from the data sections, etc).
17391733

17401734
This option makes sure that all symbols are loaded into the kernel
17411735
image (i.e., symbols from all sections) in cost of increased kernel
17421736
size (depending on the kernel configuration, it may be 300KiB or
17431737
something like this).
17441738

1745-
Say N unless you really need all symbols.
1739+
Say N unless you really need all symbols, or kernel live patching.
17461740

17471741
config KALLSYMS_ABSOLUTE_PERCPU
17481742
bool

scripts/Kconfig.include

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ failure = $(if-success,$(1),n,y)
2525

2626
# $(cc-option,<flag>)
2727
# Return y if the compiler supports <flag>, n otherwise
28-
cc-option = $(success,mkdir .tmp_$$$$; trap "rm -rf .tmp_$$$$" EXIT; $(CC) -Werror $(CLANG_FLAGS) $(1) -c -x c /dev/null -o .tmp_$$$$/tmp.o)
28+
cc-option = $(success,trap "rm -rf .tmp_$$" EXIT; mkdir .tmp_$$; $(CC) -Werror $(CLANG_FLAGS) $(1) -c -x c /dev/null -o .tmp_$$/tmp.o)
2929

3030
# $(ld-option,<flag>)
3131
# Return y if the linker supports <flag>, n otherwise

scripts/Makefile.build

+2-3
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,8 @@ $(subdir-modorder): $(obj)/%/modules.order: $(obj)/% ;
358358

359359
quiet_cmd_ar_builtin = AR $@
360360
cmd_ar_builtin = rm -f $@; \
361-
echo $(patsubst $(obj)/%,%,$(real-prereqs)) | \
362-
sed -E 's:([^ ]+):$(obj)/\1:g' | \
363-
xargs $(AR) cDPrST $@
361+
$(if $(real-prereqs), printf "$(obj)/%s " $(patsubst $(obj)/%,%,$(real-prereqs)) | xargs) \
362+
$(AR) cDPrST $@
364363

365364
$(obj)/built-in.a: $(real-obj-y) FORCE
366365
$(call if_changed,ar_builtin)

scripts/Makefile.compiler

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ TMPOUT = $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/).tmp_$$$$
2121
# automatically cleaned up.
2222
try-run = $(shell set -e; \
2323
TMP=$(TMPOUT)/tmp; \
24-
mkdir -p $(TMPOUT); \
2524
trap "rm -rf $(TMPOUT)" EXIT; \
25+
mkdir -p $(TMPOUT); \
2626
if ($(1)) >/dev/null 2>&1; \
2727
then echo "$(2)"; \
2828
else echo "$(3)"; \

scripts/Makefile.extrawarn

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ else
4747

4848
ifdef CONFIG_CC_IS_CLANG
4949
KBUILD_CFLAGS += -Wno-initializer-overrides
50-
KBUILD_CFLAGS += -Wno-format
5150
KBUILD_CFLAGS += -Wno-sign-compare
5251
KBUILD_CFLAGS += -Wno-format-zero-length
5352
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast)

scripts/Makefile.modinst

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ INSTALL_MOD_DIR ?= extra
1818
dst := $(MODLIB)/$(INSTALL_MOD_DIR)
1919
endif
2020

21+
$(foreach x, % :, $(if $(findstring $x, $(dst)), \
22+
$(error module installation path cannot contain '$x')))
23+
2124
suffix-y :=
2225
suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz
2326
suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz

scripts/Makefile.package

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ rpm-pkg:
5656
$(MAKE) clean
5757
$(CONFIG_SHELL) $(MKSPEC) >$(objtree)/kernel.spec
5858
$(call cmd,src_tar,$(KERNELPATH),kernel.spec)
59-
+rpmbuild $(RPMOPTS) --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz \
59+
+rpmbuild $(RPMOPTS) --target $(UTS_MACHINE)-linux -ta $(KERNELPATH).tar.gz \
6060
--define='_smp_mflags %{nil}'
6161

6262
# binrpm-pkg
@@ -66,7 +66,7 @@ binrpm-pkg:
6666
$(MAKE) -f $(srctree)/Makefile
6767
$(CONFIG_SHELL) $(MKSPEC) prebuilt > $(objtree)/binkernel.spec
6868
+rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \
69-
$(UTS_MACHINE) -bb $(objtree)/binkernel.spec
69+
$(UTS_MACHINE)-linux -bb $(objtree)/binkernel.spec
7070

7171
PHONY += deb-pkg
7272
deb-pkg:

scripts/checkstack.pl

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# AArch64, PARISC ports by Kyle McMartin
1717
# sparc port by Martin Habets <errandir_news@mph.eclipse.co.uk>
1818
# ppc64le port by Breno Leitao <leitao@debian.org>
19+
# riscv port by Wadim Mueller <wafgo01@gmail.com>
1920
#
2021
# Usage:
2122
# objdump -d vmlinux | scripts/checkstack.pl [arch]
@@ -108,6 +109,9 @@
108109
} elsif ($arch eq 'sparc' || $arch eq 'sparc64') {
109110
# f0019d10: 9d e3 bf 90 save %sp, -112, %sp
110111
$re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o;
112+
} elsif ($arch =~ /^riscv(64)?$/) {
113+
#ffffffff8036e868: c2010113 addi sp,sp,-992
114+
$re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
111115
} else {
112116
print("wrong or unknown architecture \"$arch\"\n");
113117
exit

scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h

Whitespace-only changes.

scripts/dummy-tools/gcc

+2-6
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,8 @@ fi
9696

9797
# To set GCC_PLUGINS
9898
if arg_contain -print-file-name=plugin "$@"; then
99-
plugin_dir=$(mktemp -d)
100-
101-
mkdir -p $plugin_dir/include
102-
touch $plugin_dir/include/plugin-version.h
103-
104-
echo $plugin_dir
99+
# Use $0 to find the in-tree dummy directory
100+
echo "$(dirname "$(readlink -f "$0")")/dummy-plugin-dir"
105101
exit 0
106102
fi
107103

scripts/headers_install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ configs=$(sed -e '
7070
#
7171
# The format is <file-name>:<CONFIG-option> in each line.
7272
config_leak_ignores="
73-
arch/alpha/include/uapi/asm/setup.h:CONFIG_ALPHA_LEGACY_START_ADDRESS
7473
arch/arc/include/uapi/asm/page.h:CONFIG_ARC_PAGE_SIZE_16K
7574
arch/arc/include/uapi/asm/page.h:CONFIG_ARC_PAGE_SIZE_4K
7675
arch/arc/include/uapi/asm/swab.h:CONFIG_ARC_HAS_SWAPE
@@ -84,7 +83,6 @@ arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT
8483
arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION
8584
arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64
8685
arch/x86/include/uapi/asm/mman.h:CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
87-
include/uapi/asm-generic/fcntl.h:CONFIG_64BIT
8886
include/uapi/linux/atmdev.h:CONFIG_COMPAT
8987
include/uapi/linux/eventpoll.h:CONFIG_PM_SLEEP
9088
include/uapi/linux/hw_breakpoint.h:CONFIG_HAVE_MIXED_BREAKPOINTS_REGS

scripts/kconfig/qconf-cfg.sh

+1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ fi
2020
echo >&2 "*"
2121
echo >&2 "* Could not find Qt5 via ${HOSTPKG_CONFIG}."
2222
echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
23+
echo >&2 "* You need $PKG"
2324
echo >&2 "*"
2425
exit 1

scripts/mod/file2alias.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -1571,9 +1571,7 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
15711571
zeros = calloc(1, sym->st_size);
15721572
symval = zeros;
15731573
} else {
1574-
symval = (void *)info->hdr
1575-
+ info->sechdrs[get_secindex(info, sym)].sh_offset
1576-
+ sym->st_value;
1574+
symval = sym_get_data(info, sym);
15771575
}
15781576

15791577
/* First handle the "special" cases */

0 commit comments

Comments
 (0)