diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-06 16:51:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-06 16:51:27 -0500 |
commit | dd273a8071124c2235c45d2ca756acc90ca31ed3 (patch) | |
tree | 805bb65c17779ce1f16245b56d5e9ccbd7309f27 /arch/arm | |
parent | 21b27a74ec0f4e52e001912c89570a49494705a2 (diff) | |
parent | f474c8c857d996f34c39f66bbed23faaa739fad6 (diff) |
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King:
"Just two ARM fixes this time: one to fix the hyp-stub for older ARM
CPUs, and another to fix the set_memory_xx() permission functions to
deal with zero sizes correctly"
* 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
ARM: 8544/1: set_memory_xx fixes
ARM: 8534/1: virt: fix hyp-stub build for pre-ARMv7 CPUs
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/compressed/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/kernel/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mm/pageattr.c | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 7a6a58ef8aaf..43788b1a1ac5 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
@@ -195,5 +195,7 @@ CFLAGS_font.o := -Dstatic= | |||
195 | $(obj)/font.c: $(FONTC) | 195 | $(obj)/font.c: $(FONTC) |
196 | $(call cmd,shipped) | 196 | $(call cmd,shipped) |
197 | 197 | ||
198 | AFLAGS_hyp-stub.o := -Wa,-march=armv7-a | ||
199 | |||
198 | $(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S | 200 | $(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S |
199 | $(call cmd,shipped) | 201 | $(call cmd,shipped) |
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 2c5f160be65e..ad325a8c7e1e 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile | |||
@@ -88,6 +88,7 @@ obj-$(CONFIG_DEBUG_LL) += debug.o | |||
88 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | 88 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
89 | 89 | ||
90 | obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o | 90 | obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o |
91 | AFLAGS_hyp-stub.o :=-Wa,-march=armv7-a | ||
91 | ifeq ($(CONFIG_ARM_PSCI),y) | 92 | ifeq ($(CONFIG_ARM_PSCI),y) |
92 | obj-$(CONFIG_SMP) += psci_smp.o | 93 | obj-$(CONFIG_SMP) += psci_smp.o |
93 | endif | 94 | endif |
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c index cf30daff8932..d19b1ad29b07 100644 --- a/arch/arm/mm/pageattr.c +++ b/arch/arm/mm/pageattr.c | |||
@@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages, | |||
49 | WARN_ON_ONCE(1); | 49 | WARN_ON_ONCE(1); |
50 | } | 50 | } |
51 | 51 | ||
52 | if (!numpages) | ||
53 | return 0; | ||
54 | |||
52 | if (start < MODULES_VADDR || start >= MODULES_END) | 55 | if (start < MODULES_VADDR || start >= MODULES_END) |
53 | return -EINVAL; | 56 | return -EINVAL; |
54 | 57 | ||