diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-06 19:33:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-06 19:33:10 -0500 |
commit | 85e1ffbd42f664965dc05f6e9851c06379f27fb2 (patch) | |
tree | 125d9a6ce2f74873a0d72c6c13903f11ab7fd51b /arch/arm | |
parent | ac5eed2b41776b05cf03aac761d3bb5e64eea24c (diff) | |
parent | d86271af64602e7c86c003b27f27c7216706ff96 (diff) |
Merge tag 'kbuild-v4.21-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull more Kbuild updates from Masahiro Yamada:
- improve boolinit.cocci and use_after_iter.cocci semantic patches
- fix alignment for kallsyms
- move 'asm goto' compiler test to Kconfig and clean up jump_label
CONFIG option
- generate asm-generic wrappers automatically if arch does not
implement mandatory UAPI headers
- remove redundant generic-y defines
- misc cleanups
* tag 'kbuild-v4.21-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kconfig: rename generated .*conf-cfg to *conf-cfg
kbuild: remove unnecessary stubs for archheader and archscripts
kbuild: use assignment instead of define ... endef for filechk_* rules
arch: remove redundant UAPI generic-y defines
kbuild: generate asm-generic wrappers if mandatory headers are missing
arch: remove stale comments "UAPI Header export list"
riscv: remove redundant kernel-space generic-y
kbuild: change filechk to surround the given command with { }
kbuild: remove redundant target cleaning on failure
kbuild: clean up rule_dtc_dt_yaml
kbuild: remove UIMAGE_IN and UIMAGE_OUT
jump_label: move 'asm goto' support test to Kconfig
kallsyms: lower alignment on ARM
scripts: coccinelle: boolinit: drop warnings on named constants
scripts: coccinelle: check for redeclaration
kconfig: remove unused "file" field of yylval union
nds32: remove redundant kernel-space generic-y
nios2: remove unneeded HAS_DMA define
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/boot/compressed/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/include/uapi/asm/Kbuild | 18 | ||||
-rw-r--r-- | arch/arm/kernel/jump_label.c | 4 | ||||
-rw-r--r-- | arch/arm/tools/Makefile | 3 |
5 files changed, 3 insertions, 26 deletions
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index a3af4dc08c3e..0b3cd7a33a26 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile | |||
@@ -32,7 +32,7 @@ targets := Image zImage xipImage bootpImage uImage | |||
32 | ifeq ($(CONFIG_XIP_KERNEL),y) | 32 | ifeq ($(CONFIG_XIP_KERNEL),y) |
33 | 33 | ||
34 | cmd_deflate_xip_data = $(CONFIG_SHELL) -c \ | 34 | cmd_deflate_xip_data = $(CONFIG_SHELL) -c \ |
35 | '$(srctree)/$(src)/deflate_xip_data.sh $< $@ || { rm -f $@; false; }' | 35 | '$(srctree)/$(src)/deflate_xip_data.sh $< $@' |
36 | 36 | ||
37 | ifeq ($(CONFIG_XIP_DEFLATED_DATA),y) | 37 | ifeq ($(CONFIG_XIP_DEFLATED_DATA),y) |
38 | quiet_cmd_mkxip = XIPZ $@ | 38 | quiet_cmd_mkxip = XIPZ $@ |
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 01bf2585a0fa..6114ae6ea466 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
@@ -170,7 +170,7 @@ check_for_bad_syms = \ | |||
170 | bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ | 170 | bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ |
171 | [ -z "$$bad_syms" ] || \ | 171 | [ -z "$$bad_syms" ] || \ |
172 | ( echo "following symbols must have non local/private scope:" >&2; \ | 172 | ( echo "following symbols must have non local/private scope:" >&2; \ |
173 | echo "$$bad_syms" >&2; rm -f $@; false ) | 173 | echo "$$bad_syms" >&2; false ) |
174 | 174 | ||
175 | check_for_multiple_zreladdr = \ | 175 | check_for_multiple_zreladdr = \ |
176 | if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" = "" ]; then \ | 176 | if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" = "" ]; then \ |
diff --git a/arch/arm/include/uapi/asm/Kbuild b/arch/arm/include/uapi/asm/Kbuild index 4d1cc1847edf..eee8f7d23899 100644 --- a/arch/arm/include/uapi/asm/Kbuild +++ b/arch/arm/include/uapi/asm/Kbuild | |||
@@ -1,24 +1,6 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
2 | # UAPI Header export list | ||
3 | include include/uapi/asm-generic/Kbuild.asm | 2 | include include/uapi/asm-generic/Kbuild.asm |
4 | 3 | ||
5 | generated-y += unistd-common.h | 4 | generated-y += unistd-common.h |
6 | generated-y += unistd-oabi.h | 5 | generated-y += unistd-oabi.h |
7 | generated-y += unistd-eabi.h | 6 | generated-y += unistd-eabi.h |
8 | |||
9 | generic-y += bitsperlong.h | ||
10 | generic-y += bpf_perf_event.h | ||
11 | generic-y += errno.h | ||
12 | generic-y += ioctl.h | ||
13 | generic-y += ipcbuf.h | ||
14 | generic-y += msgbuf.h | ||
15 | generic-y += param.h | ||
16 | generic-y += poll.h | ||
17 | generic-y += resource.h | ||
18 | generic-y += sembuf.h | ||
19 | generic-y += shmbuf.h | ||
20 | generic-y += siginfo.h | ||
21 | generic-y += socket.h | ||
22 | generic-y += sockios.h | ||
23 | generic-y += termbits.h | ||
24 | generic-y += termios.h | ||
diff --git a/arch/arm/kernel/jump_label.c b/arch/arm/kernel/jump_label.c index 90bce3d9928e..303b3ab87f7e 100644 --- a/arch/arm/kernel/jump_label.c +++ b/arch/arm/kernel/jump_label.c | |||
@@ -4,8 +4,6 @@ | |||
4 | #include <asm/patch.h> | 4 | #include <asm/patch.h> |
5 | #include <asm/insn.h> | 5 | #include <asm/insn.h> |
6 | 6 | ||
7 | #ifdef HAVE_JUMP_LABEL | ||
8 | |||
9 | static void __arch_jump_label_transform(struct jump_entry *entry, | 7 | static void __arch_jump_label_transform(struct jump_entry *entry, |
10 | enum jump_label_type type, | 8 | enum jump_label_type type, |
11 | bool is_static) | 9 | bool is_static) |
@@ -35,5 +33,3 @@ void arch_jump_label_transform_static(struct jump_entry *entry, | |||
35 | { | 33 | { |
36 | __arch_jump_label_transform(entry, type, true); | 34 | __arch_jump_label_transform(entry, type, true); |
37 | } | 35 | } |
38 | |||
39 | #endif | ||
diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile index ddb89a7db36f..27d8beb7c941 100644 --- a/arch/arm/tools/Makefile +++ b/arch/arm/tools/Makefile | |||
@@ -35,8 +35,7 @@ _dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') \ | |||
35 | 35 | ||
36 | quiet_cmd_gen_mach = GEN $@ | 36 | quiet_cmd_gen_mach = GEN $@ |
37 | cmd_gen_mach = mkdir -p $(dir $@) && \ | 37 | cmd_gen_mach = mkdir -p $(dir $@) && \ |
38 | $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \ | 38 | $(AWK) -f $(filter-out $(PHONY),$^) > $@ |
39 | { rm -f $@; /bin/false; } | ||
40 | 39 | ||
41 | $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE | 40 | $(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE |
42 | $(call if_changed,gen_mach) | 41 | $(call if_changed,gen_mach) |