Skip to content

Commit dd273a8

Browse files
committed
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
2 parents 21b27a7 + f474c8c commit dd273a8

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

arch/arm/boot/compressed/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,7 @@ CFLAGS_font.o := -Dstatic=
195195
$(obj)/font.c: $(FONTC)
196196
$(call cmd,shipped)
197197

198+
AFLAGS_hyp-stub.o := -Wa,-march=armv7-a
199+
198200
$(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S
199201
$(call cmd,shipped)

arch/arm/kernel/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ obj-$(CONFIG_DEBUG_LL) += debug.o
8888
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
8989

9090
obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o
91+
AFLAGS_hyp-stub.o :=-Wa,-march=armv7-a
9192
ifeq ($(CONFIG_ARM_PSCI),y)
9293
obj-$(CONFIG_SMP) += psci_smp.o
9394
endif

arch/arm/mm/pageattr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages,
4949
WARN_ON_ONCE(1);
5050
}
5151

52+
if (!numpages)
53+
return 0;
54+
5255
if (start < MODULES_VADDR || start >= MODULES_END)
5356
return -EINVAL;
5457

0 commit comments

Comments
 (0)