Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+25 -33
+14 -13
arch/arm/common/sa1111.c
··· 785 785 return ret; 786 786 } 787 787 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 - */ 801 788 static int __sa1111_probe(struct device *me, struct resource *mem, int irq) 802 789 { 803 790 struct sa1111_platform_data *pd = me->platform_data; ··· 1095 1108 #define sa1111_resume_noirq NULL 1096 1109 #endif 1097 1110 1111 + /** 1112 + * sa1111_probe - probe for a single SA1111 chip. 1113 + * @pdev: platform device. 1114 + * 1115 + * Probe for a SA1111 chip. This must be called 1116 + * before any other SA1111-specific code. 1117 + * 1118 + * Returns: 1119 + * * %-ENODEV - device not found. 1120 + * * %-ENOMEM - memory allocation failure. 1121 + * * %-EBUSY - physical address already marked in-use. 1122 + * * %-EINVAL - no platform data passed 1123 + * * %0 - successful. 1124 + */ 1098 1125 static int sa1111_probe(struct platform_device *pdev) 1099 1126 { 1100 1127 struct resource *mem;
+3
arch/arm/include/asm/dma.h
··· 12 12 extern phys_addr_t arm_dma_zone_size; \ 13 13 arm_dma_zone_size && arm_dma_zone_size < (0x100000000ULL - PAGE_OFFSET) ? \ 14 14 (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 15 18 #endif 16 19 17 20 #ifdef CONFIG_ISA_DMA_API
+1 -1
arch/arm/include/asm/domain.h
··· 8 8 #define __ASM_PROC_DOMAIN_H 9 9 10 10 #ifndef __ASSEMBLY__ 11 + #include <linux/thread_info.h> 11 12 #include <asm/barrier.h> 12 - #include <asm/thread_info.h> 13 13 #endif 14 14 15 15 /*
-4
arch/arm/include/asm/exception.h
··· 10 10 11 11 #include <linux/interrupt.h> 12 12 13 - #ifdef CONFIG_FUNCTION_GRAPH_TRACER 14 13 #define __exception_irq_entry __irq_entry 15 - #else 16 - #define __exception_irq_entry 17 - #endif 18 14 19 15 #endif /* __ASM_ARM_EXCEPTION_H */
+2 -1
arch/arm/include/asm/traps.h
··· 2 2 #ifndef _ASMARM_TRAP_H 3 3 #define _ASMARM_TRAP_H 4 4 5 + #include <linux/linkage.h> 5 6 #include <linux/list.h> 6 7 7 8 struct pt_regs; ··· 29 28 ptr < (unsigned long)&__irqentry_text_end; 30 29 } 31 30 32 - extern void __init early_trap_init(void *); 31 + extern void early_trap_init(void *); 33 32 extern void dump_backtrace_entry(unsigned long where, unsigned long from, 34 33 unsigned long frame, const char *loglvl); 35 34 extern void ptrace_break(struct pt_regs *regs);
+3 -12
arch/arm/include/asm/uaccess.h
··· 8 8 /* 9 9 * User space memory access functions 10 10 */ 11 + #include <linux/kernel.h> 11 12 #include <linux/string.h> 12 13 #include <asm/page.h> 13 14 #include <asm/domain.h> ··· 110 109 extern int __get_user_64t_2(void *); 111 110 extern int __get_user_64t_4(void *); 112 111 113 - #define __GUP_CLOBBER_1 "lr", "cc" 114 - #ifdef CONFIG_CPU_USE_DOMAINS 115 - #define __GUP_CLOBBER_2 "ip", "lr", "cc" 116 - #else 117 - #define __GUP_CLOBBER_2 "lr", "cc" 118 - #endif 119 - #define __GUP_CLOBBER_4 "lr", "cc" 120 - #define __GUP_CLOBBER_32t_8 "lr", "cc" 121 - #define __GUP_CLOBBER_8 "lr", "cc" 122 - 123 112 #define __get_user_x(__r2, __p, __e, __l, __s) \ 124 113 __asm__ __volatile__ ( \ 125 114 __asmeq("%0", "r0") __asmeq("%1", "r2") \ ··· 117 126 "bl __get_user_" #__s \ 118 127 : "=&r" (__e), "=r" (__r2) \ 119 128 : "0" (__p), "r" (__l) \ 120 - : __GUP_CLOBBER_##__s) 129 + : "ip", "lr", "cc") 121 130 122 131 /* narrowing a double-word get into a single 32bit word register: */ 123 132 #ifdef __ARMEB__ ··· 139 148 "bl __get_user_64t_" #__s \ 140 149 : "=&r" (__e), "=r" (__r2) \ 141 150 : "0" (__p), "r" (__l) \ 142 - : __GUP_CLOBBER_##__s) 151 + : "ip", "lr", "cc") 143 152 #else 144 153 #define __get_user_x_64t __get_user_x 145 154 #endif
-1
arch/arm/kernel/devtree.c
··· 13 13 #include <linux/of.h> 14 14 #include <linux/of_fdt.h> 15 15 #include <linux/of_irq.h> 16 - #include <linux/of_platform.h> 17 16 #include <linux/smp.h> 18 17 19 18 #include <asm/cputype.h>
+1 -1
arch/arm/kernel/setup.c
··· 15 15 #include <linux/console.h> 16 16 #include <linux/seq_file.h> 17 17 #include <linux/screen_info.h> 18 - #include <linux/of_platform.h> 19 18 #include <linux/init.h> 20 19 #include <linux/kexec.h> 21 20 #include <linux/libfdt.h> 21 + #include <linux/of.h> 22 22 #include <linux/of_fdt.h> 23 23 #include <linux/cpu.h> 24 24 #include <linux/interrupt.h>
+1
arch/arm/lib/memset.S
··· 17 17 ENTRY(mmioset) 18 18 WEAK(memset) 19 19 UNWIND( .fnstart ) 20 + and r1, r1, #255 @ cast to unsigned char 20 21 ands r3, r0, #3 @ 1 unaligned? 21 22 mov ip, r0 @ preserve r0 as return value 22 23 bne 6f @ 1