Skip to content

Commit c9cacf7

Browse files
committed
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM updates from Russell King: - fix some kernel-doc warnings - fix stack depot IRQ stack filter - cast memset() byte to unsigned char - explicitly include correct DI includes - fix ARCH_LOW_ADDRESS_LIMIT with CONFIG_ZONE_DMA - fix get_user() problems when linker uses a veneer - make including linux/uaccess.h self-contained on ARM * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 9326/1: make <linux/uaccess.h> self-contained for ARM ARM: 9324/1: fix get_user() broken with veneer ARM: 9323/1: mm: Fix ARCH_LOW_ADDRESS_LIMIT when CONFIG_ZONE_DMA ARM: 9322/1: Explicitly include correct DT includes ARM: 9321/1: memset: cast the constant byte to unsigned char ARM: 9320/1: fix stack depot IRQ stack filter ARM: 9319/1: sa1111: fix sa1111_probe kernel-doc warnings
2 parents 8c04bdd + c7368dd commit c9cacf7

File tree

9 files changed

+25
-33
lines changed

9 files changed

+25
-33
lines changed

arch/arm/common/sa1111.c

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -785,19 +785,6 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
785785
return ret;
786786
}
787787

788-
/**
789-
* sa1111_probe - probe for a single SA1111 chip.
790-
* @phys_addr: physical address of device.
791-
*
792-
* Probe for a SA1111 chip. This must be called
793-
* before any other SA1111-specific code.
794-
*
795-
* Returns:
796-
* %-ENODEV device not found.
797-
* %-EBUSY physical address already marked in-use.
798-
* %-EINVAL no platform data passed
799-
* %0 successful.
800-
*/
801788
static int __sa1111_probe(struct device *me, struct resource *mem, int irq)
802789
{
803790
struct sa1111_platform_data *pd = me->platform_data;
@@ -1108,6 +1095,20 @@ static int sa1111_resume_noirq(struct device *dev)
11081095
#define sa1111_resume_noirq NULL
11091096
#endif
11101097

1098+
/**
1099+
* sa1111_probe - probe for a single SA1111 chip.
1100+
* @pdev: platform device.
1101+
*
1102+
* Probe for a SA1111 chip. This must be called
1103+
* before any other SA1111-specific code.
1104+
*
1105+
* Returns:
1106+
* * %-ENODEV - device not found.
1107+
* * %-ENOMEM - memory allocation failure.
1108+
* * %-EBUSY - physical address already marked in-use.
1109+
* * %-EINVAL - no platform data passed
1110+
* * %0 - successful.
1111+
*/
11111112
static int sa1111_probe(struct platform_device *pdev)
11121113
{
11131114
struct resource *mem;

arch/arm/include/asm/dma.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
extern phys_addr_t arm_dma_zone_size; \
1313
arm_dma_zone_size && arm_dma_zone_size < (0x100000000ULL - PAGE_OFFSET) ? \
1414
(PAGE_OFFSET + arm_dma_zone_size) : 0xffffffffUL; })
15+
16+
extern phys_addr_t arm_dma_limit;
17+
#define ARCH_LOW_ADDRESS_LIMIT arm_dma_limit
1518
#endif
1619

1720
#ifdef CONFIG_ISA_DMA_API

arch/arm/include/asm/domain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#define __ASM_PROC_DOMAIN_H
99

1010
#ifndef __ASSEMBLY__
11+
#include <linux/thread_info.h>
1112
#include <asm/barrier.h>
12-
#include <asm/thread_info.h>
1313
#endif
1414

1515
/*

arch/arm/include/asm/exception.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
#include <linux/interrupt.h>
1212

13-
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
1413
#define __exception_irq_entry __irq_entry
15-
#else
16-
#define __exception_irq_entry
17-
#endif
1814

1915
#endif /* __ASM_ARM_EXCEPTION_H */

arch/arm/include/asm/traps.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#ifndef _ASMARM_TRAP_H
33
#define _ASMARM_TRAP_H
44

5+
#include <linux/linkage.h>
56
#include <linux/list.h>
67

78
struct pt_regs;
@@ -28,7 +29,7 @@ static inline int __in_irqentry_text(unsigned long ptr)
2829
ptr < (unsigned long)&__irqentry_text_end;
2930
}
3031

31-
extern void __init early_trap_init(void *);
32+
extern void early_trap_init(void *);
3233
extern void dump_backtrace_entry(unsigned long where, unsigned long from,
3334
unsigned long frame, const char *loglvl);
3435
extern void ptrace_break(struct pt_regs *regs);

arch/arm/include/asm/uaccess.h

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/*
99
* User space memory access functions
1010
*/
11+
#include <linux/kernel.h>
1112
#include <linux/string.h>
1213
#include <asm/page.h>
1314
#include <asm/domain.h>
@@ -109,24 +110,14 @@ extern int __get_user_64t_1(void *);
109110
extern int __get_user_64t_2(void *);
110111
extern int __get_user_64t_4(void *);
111112

112-
#define __GUP_CLOBBER_1 "lr", "cc"
113-
#ifdef CONFIG_CPU_USE_DOMAINS
114-
#define __GUP_CLOBBER_2 "ip", "lr", "cc"
115-
#else
116-
#define __GUP_CLOBBER_2 "lr", "cc"
117-
#endif
118-
#define __GUP_CLOBBER_4 "lr", "cc"
119-
#define __GUP_CLOBBER_32t_8 "lr", "cc"
120-
#define __GUP_CLOBBER_8 "lr", "cc"
121-
122113
#define __get_user_x(__r2, __p, __e, __l, __s) \
123114
__asm__ __volatile__ ( \
124115
__asmeq("%0", "r0") __asmeq("%1", "r2") \
125116
__asmeq("%3", "r1") \
126117
"bl __get_user_" #__s \
127118
: "=&r" (__e), "=r" (__r2) \
128119
: "0" (__p), "r" (__l) \
129-
: __GUP_CLOBBER_##__s)
120+
: "ip", "lr", "cc")
130121

131122
/* narrowing a double-word get into a single 32bit word register: */
132123
#ifdef __ARMEB__
@@ -148,7 +139,7 @@ extern int __get_user_64t_4(void *);
148139
"bl __get_user_64t_" #__s \
149140
: "=&r" (__e), "=r" (__r2) \
150141
: "0" (__p), "r" (__l) \
151-
: __GUP_CLOBBER_##__s)
142+
: "ip", "lr", "cc")
152143
#else
153144
#define __get_user_x_64t __get_user_x
154145
#endif

arch/arm/kernel/devtree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <linux/of.h>
1414
#include <linux/of_fdt.h>
1515
#include <linux/of_irq.h>
16-
#include <linux/of_platform.h>
1716
#include <linux/smp.h>
1817

1918
#include <asm/cputype.h>

arch/arm/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#include <linux/console.h>
1616
#include <linux/seq_file.h>
1717
#include <linux/screen_info.h>
18-
#include <linux/of_platform.h>
1918
#include <linux/init.h>
2019
#include <linux/kexec.h>
2120
#include <linux/libfdt.h>
21+
#include <linux/of.h>
2222
#include <linux/of_fdt.h>
2323
#include <linux/cpu.h>
2424
#include <linux/interrupt.h>

arch/arm/lib/memset.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ENTRY(__memset)
1717
ENTRY(mmioset)
1818
WEAK(memset)
1919
UNWIND( .fnstart )
20+
and r1, r1, #255 @ cast to unsigned char
2021
ands r3, r0, #3 @ 1 unaligned?
2122
mov ip, r0 @ preserve r0 as return value
2223
bne 6f @ 1

0 commit comments

Comments
 (0)