Skip to content

Commit e5eb2b2

Browse files
committed
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: - fix nommu assignment build warning - fix -Wundef preprocessor warning - reduce __thumb2__ definitions for crypto files that require it * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 9287/1: Reduce __thumb2__ definition to crypto files that require it ARM: 9284/1: include <asm/pgtable.h> from proc-macros.S to fix -Wundef warnings ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment
2 parents 9f4d0bd + 2f62847 commit e5eb2b2

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

arch/arm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
132132

133133
ifeq ($(CONFIG_THUMB2_KERNEL),y)
134134
CFLAGS_ISA :=-Wa,-mimplicit-it=always $(AFLAGS_NOWARN)
135-
AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb -D__thumb2__=2
135+
AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
136136
CFLAGS_ISA +=-mthumb
137137
else
138138
CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN)

arch/arm/crypto/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ $(obj)/%-core.S: $(src)/%-armv4.pl
5353

5454
clean-files += poly1305-core.S sha256-core.S sha512-core.S
5555

56+
aflags-thumb2-$(CONFIG_THUMB2_KERNEL) := -U__thumb2__ -D__thumb2__=1
57+
58+
AFLAGS_sha256-core.o += $(aflags-thumb2-y)
59+
AFLAGS_sha512-core.o += $(aflags-thumb2-y)
60+
5661
# massage the perlasm code a bit so we only get the NEON routine if we need it
5762
poly1305-aflags-$(CONFIG_CPU_V7) := -U__LINUX_ARM_ARCH__ -D__LINUX_ARM_ARCH__=5
5863
poly1305-aflags-$(CONFIG_KERNEL_MODE_NEON) := -U__LINUX_ARM_ARCH__ -D__LINUX_ARM_ARCH__=7
59-
AFLAGS_poly1305-core.o += $(poly1305-aflags-y)
64+
AFLAGS_poly1305-core.o += $(poly1305-aflags-y) $(aflags-thumb2-y)

arch/arm/mm/nommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void __init paging_init(const struct machine_desc *mdesc)
161161
mpu_setup();
162162

163163
/* allocate the zero page. */
164-
zero_page = memblock_alloc(PAGE_SIZE, PAGE_SIZE);
164+
zero_page = (void *)memblock_alloc(PAGE_SIZE, PAGE_SIZE);
165165
if (!zero_page)
166166
panic("%s: Failed to allocate %lu bytes align=0x%lx\n",
167167
__func__, PAGE_SIZE, PAGE_SIZE);

arch/arm/mm/proc-macros.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* VM_EXEC
77
*/
88
#include <asm/asm-offsets.h>
9+
#include <asm/pgtable.h>
910
#include <asm/thread_info.h>
1011

1112
#ifdef CONFIG_CPU_V7M

0 commit comments

Comments
 (0)