aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-01-06 19:33:10 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-01-06 19:33:10 -0500
commit85e1ffbd42f664965dc05f6e9851c06379f27fb2 (patch)
tree125d9a6ce2f74873a0d72c6c13903f11ab7fd51b /arch/arm
parentac5eed2b41776b05cf03aac761d3bb5e64eea24c (diff)
parentd86271af64602e7c86c003b27f27c7216706ff96 (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/Makefile2
-rw-r--r--arch/arm/boot/compressed/Makefile2
-rw-r--r--arch/arm/include/uapi/asm/Kbuild18
-rw-r--r--arch/arm/kernel/jump_label.c4
-rw-r--r--arch/arm/tools/Makefile3
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
32ifeq ($(CONFIG_XIP_KERNEL),y) 32ifeq ($(CONFIG_XIP_KERNEL),y)
33 33
34cmd_deflate_xip_data = $(CONFIG_SHELL) -c \ 34cmd_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
37ifeq ($(CONFIG_XIP_DEFLATED_DATA),y) 37ifeq ($(CONFIG_XIP_DEFLATED_DATA),y)
38quiet_cmd_mkxip = XIPZ $@ 38quiet_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 = \
170bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ 170bad_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
175check_for_multiple_zreladdr = \ 175check_for_multiple_zreladdr = \
176if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" = "" ]; then \ 176if [ $(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
3include include/uapi/asm-generic/Kbuild.asm 2include include/uapi/asm-generic/Kbuild.asm
4 3
5generated-y += unistd-common.h 4generated-y += unistd-common.h
6generated-y += unistd-oabi.h 5generated-y += unistd-oabi.h
7generated-y += unistd-eabi.h 6generated-y += unistd-eabi.h
8
9generic-y += bitsperlong.h
10generic-y += bpf_perf_event.h
11generic-y += errno.h
12generic-y += ioctl.h
13generic-y += ipcbuf.h
14generic-y += msgbuf.h
15generic-y += param.h
16generic-y += poll.h
17generic-y += resource.h
18generic-y += sembuf.h
19generic-y += shmbuf.h
20generic-y += siginfo.h
21generic-y += socket.h
22generic-y += sockios.h
23generic-y += termbits.h
24generic-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
9static void __arch_jump_label_transform(struct jump_entry *entry, 7static 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
36quiet_cmd_gen_mach = GEN $@ 36quiet_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)