diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 09:05:40 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 09:05:40 -0500 |
commit | 7822eee1acbbea254212ad69ac99aae7986461da (patch) | |
tree | d7168d2e23130e3e6c36a731edc29eadd5128fc2 /arch | |
parent | 0e55f0b0037c91bf269f7975ad353c31d8d12c32 (diff) | |
parent | 8c0c774dd7b4aa0e0b69f483a70c7f41995139ef (diff) |
Merge branch 'warning-fixes' into next/fixes-non-critical
These are fixes for compiler warnings that for the most
part were introduced during the 3.8 cycle but are otherwise
harmless.
* warning-fixes:
scripts/sortextable: silence script output
ARM: s3c: i2c: add platform_device forward declaration
ARM: mvebu: allow selecting mvebu without Armada XP
ARM: pick Versatile by default for !MMU
ARM: integrator: fix build with INTEGRATOR_AP off
ARM: integrator/versatile: fix NOMMU warnings
ARM: sa1100: don't warn about mach/ide.h
ARM: shmobile: fix defconfig warning on CONFIG_USB
ARM: w90x900: fix legacy assembly syntax
ARM: samsung: fix assembly syntax for new gas
ARM: disable virt_to_bus/virt_to_bus almost everywhere
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/Kconfig | 7 | ||||
-rw-r--r-- | arch/arm/configs/marzen_defconfig | 1 | ||||
-rw-r--r-- | arch/arm/configs/shark_defconfig | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/dma.h | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/memory.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/common.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-integrator/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/Makefile | 5 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/debug-macro.S | 12 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/entry-macro.S | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/pm-h1940.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/sleep-s3c2410.S | 12 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/sleep-s3c2412.S | 12 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/lart.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-versatile/Kconfig | 5 | ||||
-rw-r--r-- | arch/arm/mach-versatile/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/entry-macro.S | 4 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/debug-macro.S | 18 |
20 files changed, 53 insertions, 50 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 67874b82a4ed..b934d90a61e4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -261,7 +261,8 @@ config MMU | |||
261 | # | 261 | # |
262 | choice | 262 | choice |
263 | prompt "ARM system type" | 263 | prompt "ARM system type" |
264 | default ARCH_MULTIPLATFORM | 264 | default ARCH_VERSATILE if !MMU |
265 | default ARCH_MULTIPLATFORM if MMU | ||
265 | 266 | ||
266 | config ARCH_MULTIPLATFORM | 267 | config ARCH_MULTIPLATFORM |
267 | bool "Allow multiple platforms to be selected" | 268 | bool "Allow multiple platforms to be selected" |
@@ -1450,6 +1451,10 @@ config ISA_DMA | |||
1450 | bool | 1451 | bool |
1451 | select ISA_DMA_API | 1452 | select ISA_DMA_API |
1452 | 1453 | ||
1454 | config ARCH_NO_VIRT_TO_BUS | ||
1455 | def_bool y | ||
1456 | depends on !ARCH_RPC && !ARCH_NETWINDER && !ARCH_SHARK | ||
1457 | |||
1453 | # Select ISA DMA interface | 1458 | # Select ISA DMA interface |
1454 | config ISA_DMA_API | 1459 | config ISA_DMA_API |
1455 | bool | 1460 | bool |
diff --git a/arch/arm/configs/marzen_defconfig b/arch/arm/configs/marzen_defconfig index 728a43c446f8..afb17d630d44 100644 --- a/arch/arm/configs/marzen_defconfig +++ b/arch/arm/configs/marzen_defconfig | |||
@@ -83,7 +83,6 @@ CONFIG_USB=y | |||
83 | CONFIG_USB_RCAR_PHY=y | 83 | CONFIG_USB_RCAR_PHY=y |
84 | CONFIG_MMC=y | 84 | CONFIG_MMC=y |
85 | CONFIG_MMC_SDHI=y | 85 | CONFIG_MMC_SDHI=y |
86 | CONFIG_USB=y | ||
87 | CONFIG_USB_EHCI_HCD=y | 86 | CONFIG_USB_EHCI_HCD=y |
88 | CONFIG_USB_OHCI_HCD=y | 87 | CONFIG_USB_OHCI_HCD=y |
89 | CONFIG_USB_OHCI_HCD_PLATFORM=y | 88 | CONFIG_USB_OHCI_HCD_PLATFORM=y |
diff --git a/arch/arm/configs/shark_defconfig b/arch/arm/configs/shark_defconfig index caa07db90cf5..e319b2c56f11 100644 --- a/arch/arm/configs/shark_defconfig +++ b/arch/arm/configs/shark_defconfig | |||
@@ -73,7 +73,6 @@ CONFIG_PARTITION_ADVANCED=y | |||
73 | CONFIG_NLS_CODEPAGE_437=m | 73 | CONFIG_NLS_CODEPAGE_437=m |
74 | CONFIG_NLS_CODEPAGE_850=m | 74 | CONFIG_NLS_CODEPAGE_850=m |
75 | CONFIG_NLS_ISO8859_1=m | 75 | CONFIG_NLS_ISO8859_1=m |
76 | # CONFIG_ENABLE_WARN_DEPRECATED is not set | ||
77 | # CONFIG_ENABLE_MUST_CHECK is not set | 76 | # CONFIG_ENABLE_MUST_CHECK is not set |
78 | CONFIG_DEBUG_KERNEL=y | 77 | CONFIG_DEBUG_KERNEL=y |
79 | # CONFIG_SCHED_DEBUG is not set | 78 | # CONFIG_SCHED_DEBUG is not set |
diff --git a/arch/arm/include/asm/dma.h b/arch/arm/include/asm/dma.h index 5694a0d6576b..58b8c6a0ab1f 100644 --- a/arch/arm/include/asm/dma.h +++ b/arch/arm/include/asm/dma.h | |||
@@ -105,7 +105,7 @@ extern void set_dma_sg(unsigned int chan, struct scatterlist *sg, int nr_sg); | |||
105 | */ | 105 | */ |
106 | extern void __set_dma_addr(unsigned int chan, void *addr); | 106 | extern void __set_dma_addr(unsigned int chan, void *addr); |
107 | #define set_dma_addr(chan, addr) \ | 107 | #define set_dma_addr(chan, addr) \ |
108 | __set_dma_addr(chan, bus_to_virt(addr)) | 108 | __set_dma_addr(chan, (void *)__bus_to_virt(addr)) |
109 | 109 | ||
110 | /* Set the DMA byte count for this channel | 110 | /* Set the DMA byte count for this channel |
111 | * | 111 | * |
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 73cf03aa981e..b11105c8599a 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -245,6 +245,7 @@ static inline void *phys_to_virt(phys_addr_t x) | |||
245 | #define __bus_to_pfn(x) __phys_to_pfn(x) | 245 | #define __bus_to_pfn(x) __phys_to_pfn(x) |
246 | #endif | 246 | #endif |
247 | 247 | ||
248 | #ifdef CONFIG_VIRT_TO_BUS | ||
248 | static inline __deprecated unsigned long virt_to_bus(void *x) | 249 | static inline __deprecated unsigned long virt_to_bus(void *x) |
249 | { | 250 | { |
250 | return __virt_to_bus((unsigned long)x); | 251 | return __virt_to_bus((unsigned long)x); |
@@ -254,6 +255,7 @@ static inline __deprecated void *bus_to_virt(unsigned long x) | |||
254 | { | 255 | { |
255 | return (void *)__bus_to_virt(x); | 256 | return (void *)__bus_to_virt(x); |
256 | } | 257 | } |
258 | #endif | ||
257 | 259 | ||
258 | /* | 260 | /* |
259 | * Conversion between a struct page and a physical address. | 261 | * Conversion between a struct page and a physical address. |
diff --git a/arch/arm/mach-integrator/common.h b/arch/arm/mach-integrator/common.h index 79197d8b34aa..72516658be1e 100644 --- a/arch/arm/mach-integrator/common.h +++ b/arch/arm/mach-integrator/common.h | |||
@@ -1,10 +1,5 @@ | |||
1 | #include <linux/amba/serial.h> | 1 | #include <linux/amba/serial.h> |
2 | #ifdef CONFIG_ARCH_INTEGRATOR_AP | ||
3 | extern struct amba_pl010_data ap_uart_data; | 2 | extern struct amba_pl010_data ap_uart_data; |
4 | #else | ||
5 | /* Not used without Integrator/AP support anyway */ | ||
6 | struct amba_pl010_data ap_uart_data {}; | ||
7 | #endif | ||
8 | void integrator_init_early(void); | 3 | void integrator_init_early(void); |
9 | int integrator_init(bool is_cp); | 4 | int integrator_init(bool is_cp); |
10 | void integrator_reserve(void); | 5 | void integrator_reserve(void); |
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index 39c060f75e47..81461d218717 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -71,7 +71,7 @@ int __init integrator_init(bool is_cp) | |||
71 | * hard-code them. The Integator/CP and forward have proper cell IDs. | 71 | * hard-code them. The Integator/CP and forward have proper cell IDs. |
72 | * Else we leave them undefined to the bus driver can autoprobe them. | 72 | * Else we leave them undefined to the bus driver can autoprobe them. |
73 | */ | 73 | */ |
74 | if (!is_cp) { | 74 | if (!is_cp && IS_ENABLED(CONFIG_ARCH_INTEGRATOR_AP)) { |
75 | rtc_device.periphid = 0x00041030; | 75 | rtc_device.periphid = 0x00041030; |
76 | uart0_device.periphid = 0x00041010; | 76 | uart0_device.periphid = 0x00041010; |
77 | uart1_device.periphid = 0x00041010; | 77 | uart1_device.periphid = 0x00041010; |
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 26762bf41308..592c168f4b62 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -94,7 +94,7 @@ void __iomem *ap_syscon_base; | |||
94 | * f1b00000 1b000000 GPIO | 94 | * f1b00000 1b000000 GPIO |
95 | */ | 95 | */ |
96 | 96 | ||
97 | static struct map_desc ap_io_desc[] __initdata = { | 97 | static struct map_desc ap_io_desc[] __initdata __maybe_unused = { |
98 | { | 98 | { |
99 | .virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE), | 99 | .virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE), |
100 | .pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE), | 100 | .pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE), |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 7322838c0447..01a888d7b0b8 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -78,7 +78,7 @@ static void __iomem *intcp_con_base; | |||
78 | * fcb00000 cb000000 CP system control | 78 | * fcb00000 cb000000 CP system control |
79 | */ | 79 | */ |
80 | 80 | ||
81 | static struct map_desc intcp_io_desc[] __initdata = { | 81 | static struct map_desc intcp_io_desc[] __initdata __maybe_unused = { |
82 | { | 82 | { |
83 | .virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE), | 83 | .virtual = IO_ADDRESS(INTEGRATOR_HDR_BASE), |
84 | .pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE), | 84 | .pfn = __phys_to_pfn(INTEGRATOR_HDR_BASE), |
diff --git a/arch/arm/mach-mvebu/Makefile b/arch/arm/mach-mvebu/Makefile index 99df4df680fd..da93bcbc74c1 100644 --- a/arch/arm/mach-mvebu/Makefile +++ b/arch/arm/mach-mvebu/Makefile | |||
@@ -3,7 +3,8 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ | |||
3 | 3 | ||
4 | AFLAGS_coherency_ll.o := -Wa,-march=armv7-a | 4 | AFLAGS_coherency_ll.o := -Wa,-march=armv7-a |
5 | 5 | ||
6 | obj-y += system-controller.o | 6 | obj-y += system-controller.o |
7 | obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o irq-armada-370-xp.o addr-map.o coherency.o coherency_ll.o pmsu.o | 7 | obj-$(CONFIG_MACH_ARMADA_370_XP) += armada-370-xp.o |
8 | obj-$(CONFIG_ARCH_MVEBU) += addr-map.o coherency.o coherency_ll.o pmsu.o irq-armada-370-xp.o | ||
8 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o | 9 | obj-$(CONFIG_SMP) += platsmp.o headsmp.o |
9 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | 10 | obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o |
diff --git a/arch/arm/mach-s3c24xx/include/mach/debug-macro.S b/arch/arm/mach-s3c24xx/include/mach/debug-macro.S index 4135de87d1f7..13ed33c69113 100644 --- a/arch/arm/mach-s3c24xx/include/mach/debug-macro.S +++ b/arch/arm/mach-s3c24xx/include/mach/debug-macro.S | |||
@@ -40,17 +40,17 @@ | |||
40 | addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) | 40 | addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) |
41 | addne \rd, \rx, #(S3C24XX_VA_GPIO - S3C24XX_VA_UART) | 41 | addne \rd, \rx, #(S3C24XX_VA_GPIO - S3C24XX_VA_UART) |
42 | bic \rd, \rd, #0xff000 | 42 | bic \rd, \rd, #0xff000 |
43 | ldr \rd, [ \rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0) ] | 43 | ldr \rd, [\rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0)] |
44 | and \rd, \rd, #0x00ff0000 | 44 | and \rd, \rd, #0x00ff0000 |
45 | teq \rd, #0x00440000 @ is it 2440? | 45 | teq \rd, #0x00440000 @ is it 2440? |
46 | 1004: | 46 | 1004: |
47 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 47 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
48 | moveq \rd, \rd, lsr #SHIFT_2440TXF | 48 | moveq \rd, \rd, lsr #SHIFT_2440TXF |
49 | tst \rd, #S3C2410_UFSTAT_TXFULL | 49 | tst \rd, #S3C2410_UFSTAT_TXFULL |
50 | .endm | 50 | .endm |
51 | 51 | ||
52 | .macro fifo_full_s3c2410 rd, rx | 52 | .macro fifo_full_s3c2410 rd, rx |
53 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 53 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
54 | tst \rd, #S3C2410_UFSTAT_TXFULL | 54 | tst \rd, #S3C2410_UFSTAT_TXFULL |
55 | .endm | 55 | .endm |
56 | 56 | ||
@@ -68,18 +68,18 @@ | |||
68 | addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) | 68 | addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) |
69 | addne \rd, \rx, #(S3C24XX_VA_GPIO - S3C24XX_VA_UART) | 69 | addne \rd, \rx, #(S3C24XX_VA_GPIO - S3C24XX_VA_UART) |
70 | bic \rd, \rd, #0xff000 | 70 | bic \rd, \rd, #0xff000 |
71 | ldr \rd, [ \rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0) ] | 71 | ldr \rd, [\rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0)] |
72 | and \rd, \rd, #0x00ff0000 | 72 | and \rd, \rd, #0x00ff0000 |
73 | teq \rd, #0x00440000 @ is it 2440? | 73 | teq \rd, #0x00440000 @ is it 2440? |
74 | 74 | ||
75 | 10000: | 75 | 10000: |
76 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 76 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
77 | andne \rd, \rd, #S3C2410_UFSTAT_TXMASK | 77 | andne \rd, \rd, #S3C2410_UFSTAT_TXMASK |
78 | andeq \rd, \rd, #S3C2440_UFSTAT_TXMASK | 78 | andeq \rd, \rd, #S3C2440_UFSTAT_TXMASK |
79 | .endm | 79 | .endm |
80 | 80 | ||
81 | .macro fifo_level_s3c2410 rd, rx | 81 | .macro fifo_level_s3c2410 rd, rx |
82 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 82 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
83 | and \rd, \rd, #S3C2410_UFSTAT_TXMASK | 83 | and \rd, \rd, #S3C2410_UFSTAT_TXMASK |
84 | .endm | 84 | .endm |
85 | 85 | ||
diff --git a/arch/arm/mach-s3c24xx/include/mach/entry-macro.S b/arch/arm/mach-s3c24xx/include/mach/entry-macro.S index 7615a14773fa..6a21beeba1da 100644 --- a/arch/arm/mach-s3c24xx/include/mach/entry-macro.S +++ b/arch/arm/mach-s3c24xx/include/mach/entry-macro.S | |||
@@ -31,10 +31,10 @@ | |||
31 | 31 | ||
32 | @@ try the interrupt offset register, since it is there | 32 | @@ try the interrupt offset register, since it is there |
33 | 33 | ||
34 | ldr \irqstat, [ \base, #INTPND ] | 34 | ldr \irqstat, [\base, #INTPND ] |
35 | teq \irqstat, #0 | 35 | teq \irqstat, #0 |
36 | beq 1002f | 36 | beq 1002f |
37 | ldr \irqnr, [ \base, #INTOFFSET ] | 37 | ldr \irqnr, [\base, #INTOFFSET ] |
38 | mov \tmp, #1 | 38 | mov \tmp, #1 |
39 | tst \irqstat, \tmp, lsl \irqnr | 39 | tst \irqstat, \tmp, lsl \irqnr |
40 | bne 1001f | 40 | bne 1001f |
diff --git a/arch/arm/mach-s3c24xx/pm-h1940.S b/arch/arm/mach-s3c24xx/pm-h1940.S index c93bf2db9f4d..6183a688012b 100644 --- a/arch/arm/mach-s3c24xx/pm-h1940.S +++ b/arch/arm/mach-s3c24xx/pm-h1940.S | |||
@@ -30,4 +30,4 @@ | |||
30 | 30 | ||
31 | h1940_pm_return: | 31 | h1940_pm_return: |
32 | mov r0, #S3C2410_PA_GPIO | 32 | mov r0, #S3C2410_PA_GPIO |
33 | ldr pc, [ r0, #S3C2410_GSTATUS3 - S3C24XX_VA_GPIO ] | 33 | ldr pc, [r0, #S3C2410_GSTATUS3 - S3C24XX_VA_GPIO] |
diff --git a/arch/arm/mach-s3c24xx/sleep-s3c2410.S b/arch/arm/mach-s3c24xx/sleep-s3c2410.S index dd5b6388a5a5..65200ae72c90 100644 --- a/arch/arm/mach-s3c24xx/sleep-s3c2410.S +++ b/arch/arm/mach-s3c24xx/sleep-s3c2410.S | |||
@@ -45,9 +45,9 @@ ENTRY(s3c2410_cpu_suspend) | |||
45 | ldr r4, =S3C2410_REFRESH | 45 | ldr r4, =S3C2410_REFRESH |
46 | ldr r5, =S3C24XX_MISCCR | 46 | ldr r5, =S3C24XX_MISCCR |
47 | ldr r6, =S3C2410_CLKCON | 47 | ldr r6, =S3C2410_CLKCON |
48 | ldr r7, [ r4 ] @ get REFRESH (and ensure in TLB) | 48 | ldr r7, [r4] @ get REFRESH (and ensure in TLB) |
49 | ldr r8, [ r5 ] @ get MISCCR (and ensure in TLB) | 49 | ldr r8, [r5] @ get MISCCR (and ensure in TLB) |
50 | ldr r9, [ r6 ] @ get CLKCON (and ensure in TLB) | 50 | ldr r9, [r6] @ get CLKCON (and ensure in TLB) |
51 | 51 | ||
52 | orr r7, r7, #S3C2410_REFRESH_SELF @ SDRAM sleep command | 52 | orr r7, r7, #S3C2410_REFRESH_SELF @ SDRAM sleep command |
53 | orr r8, r8, #S3C2410_MISCCR_SDSLEEP @ SDRAM power-down signals | 53 | orr r8, r8, #S3C2410_MISCCR_SDSLEEP @ SDRAM power-down signals |
@@ -61,8 +61,8 @@ ENTRY(s3c2410_cpu_suspend) | |||
61 | @@ align next bit of code to cache line | 61 | @@ align next bit of code to cache line |
62 | .align 5 | 62 | .align 5 |
63 | s3c2410_do_sleep: | 63 | s3c2410_do_sleep: |
64 | streq r7, [ r4 ] @ SDRAM sleep command | 64 | streq r7, [r4] @ SDRAM sleep command |
65 | streq r8, [ r5 ] @ SDRAM power-down config | 65 | streq r8, [r5] @ SDRAM power-down config |
66 | streq r9, [ r6 ] @ CPU sleep | 66 | streq r9, [r6] @ CPU sleep |
67 | 1: beq 1b | 67 | 1: beq 1b |
68 | mov pc, r14 | 68 | mov pc, r14 |
diff --git a/arch/arm/mach-s3c24xx/sleep-s3c2412.S b/arch/arm/mach-s3c24xx/sleep-s3c2412.S index c82418ed714d..5adaceb7da13 100644 --- a/arch/arm/mach-s3c24xx/sleep-s3c2412.S +++ b/arch/arm/mach-s3c24xx/sleep-s3c2412.S | |||
@@ -57,12 +57,12 @@ s3c2412_sleep_enter1: | |||
57 | * retry, as simply returning causes the system to lock. | 57 | * retry, as simply returning causes the system to lock. |
58 | */ | 58 | */ |
59 | 59 | ||
60 | ldrne r9, [ r1 ] | 60 | ldrne r9, [r1] |
61 | strne r9, [ r1 ] | 61 | strne r9, [r1] |
62 | ldrne r9, [ r2 ] | 62 | ldrne r9, [r2] |
63 | strne r9, [ r2 ] | 63 | strne r9, [r2] |
64 | ldrne r9, [ r3 ] | 64 | ldrne r9, [r3] |
65 | strne r9, [ r3 ] | 65 | strne r9, [r3] |
66 | bne s3c2412_sleep_enter1 | 66 | bne s3c2412_sleep_enter1 |
67 | 67 | ||
68 | mov pc, r14 | 68 | mov pc, r14 |
diff --git a/arch/arm/mach-sa1100/lart.c b/arch/arm/mach-sa1100/lart.c index f69f78fc3ddd..bca7e60b24d3 100644 --- a/arch/arm/mach-sa1100/lart.c +++ b/arch/arm/mach-sa1100/lart.c | |||
@@ -24,9 +24,6 @@ | |||
24 | 24 | ||
25 | #include "generic.h" | 25 | #include "generic.h" |
26 | 26 | ||
27 | |||
28 | #warning "include/asm/arch-sa1100/ide.h needs fixing for lart" | ||
29 | |||
30 | static struct mcp_plat_data lart_mcp_data = { | 27 | static struct mcp_plat_data lart_mcp_data = { |
31 | .mccr0 = MCCR0_ADM, | 28 | .mccr0 = MCCR0_ADM, |
32 | .sclk_rate = 11981000, | 29 | .sclk_rate = 11981000, |
diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig index 63d8e9f81b99..1dba3688275f 100644 --- a/arch/arm/mach-versatile/Kconfig +++ b/arch/arm/mach-versatile/Kconfig | |||
@@ -25,4 +25,9 @@ config MACH_VERSATILE_DT | |||
25 | Include support for the ARM(R) Versatile/PB platform, | 25 | Include support for the ARM(R) Versatile/PB platform, |
26 | using the device tree for discovery | 26 | using the device tree for discovery |
27 | 27 | ||
28 | config MACH_VERSATILE_AUTO | ||
29 | def_bool y | ||
30 | depends on !ARCH_VERSATILE_PB && !MACH_VERSATILE_AB | ||
31 | select MACH_VERSATILE_DT | ||
32 | |||
28 | endmenu | 33 | endmenu |
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 5d5929450366..60c092cfdae3 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -114,7 +114,7 @@ void __init versatile_init_irq(void) | |||
114 | writel(PIC_MASK, VA_SIC_BASE + SIC_INT_PIC_ENABLE); | 114 | writel(PIC_MASK, VA_SIC_BASE + SIC_INT_PIC_ENABLE); |
115 | } | 115 | } |
116 | 116 | ||
117 | static struct map_desc versatile_io_desc[] __initdata = { | 117 | static struct map_desc versatile_io_desc[] __initdata __maybe_unused = { |
118 | { | 118 | { |
119 | .virtual = IO_ADDRESS(VERSATILE_SYS_BASE), | 119 | .virtual = IO_ADDRESS(VERSATILE_SYS_BASE), |
120 | .pfn = __phys_to_pfn(VERSATILE_SYS_BASE), | 120 | .pfn = __phys_to_pfn(VERSATILE_SYS_BASE), |
diff --git a/arch/arm/mach-w90x900/include/mach/entry-macro.S b/arch/arm/mach-w90x900/include/mach/entry-macro.S index e286daca6827..0ff612ac95ba 100644 --- a/arch/arm/mach-w90x900/include/mach/entry-macro.S +++ b/arch/arm/mach-w90x900/include/mach/entry-macro.S | |||
@@ -19,8 +19,8 @@ | |||
19 | 19 | ||
20 | mov \base, #AIC_BA | 20 | mov \base, #AIC_BA |
21 | 21 | ||
22 | ldr \irqnr, [ \base, #AIC_IPER] | 22 | ldr \irqnr, [\base, #AIC_IPER] |
23 | ldr \irqnr, [ \base, #AIC_ISNR] | 23 | ldr \irqnr, [\base, #AIC_ISNR] |
24 | cmp \irqnr, #0 | 24 | cmp \irqnr, #0 |
25 | 25 | ||
26 | .endm | 26 | .endm |
diff --git a/arch/arm/plat-samsung/include/plat/debug-macro.S b/arch/arm/plat-samsung/include/plat/debug-macro.S index 207e275362a8..f3a9cff6d5d4 100644 --- a/arch/arm/plat-samsung/include/plat/debug-macro.S +++ b/arch/arm/plat-samsung/include/plat/debug-macro.S | |||
@@ -14,12 +14,12 @@ | |||
14 | /* The S5PV210/S5PC110 implementations are as belows. */ | 14 | /* The S5PV210/S5PC110 implementations are as belows. */ |
15 | 15 | ||
16 | .macro fifo_level_s5pv210 rd, rx | 16 | .macro fifo_level_s5pv210 rd, rx |
17 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 17 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
18 | and \rd, \rd, #S5PV210_UFSTAT_TXMASK | 18 | and \rd, \rd, #S5PV210_UFSTAT_TXMASK |
19 | .endm | 19 | .endm |
20 | 20 | ||
21 | .macro fifo_full_s5pv210 rd, rx | 21 | .macro fifo_full_s5pv210 rd, rx |
22 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 22 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
23 | tst \rd, #S5PV210_UFSTAT_TXFULL | 23 | tst \rd, #S5PV210_UFSTAT_TXFULL |
24 | .endm | 24 | .endm |
25 | 25 | ||
@@ -27,7 +27,7 @@ | |||
27 | * most widely re-used */ | 27 | * most widely re-used */ |
28 | 28 | ||
29 | .macro fifo_level_s3c2440 rd, rx | 29 | .macro fifo_level_s3c2440 rd, rx |
30 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 30 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
31 | and \rd, \rd, #S3C2440_UFSTAT_TXMASK | 31 | and \rd, \rd, #S3C2440_UFSTAT_TXMASK |
32 | .endm | 32 | .endm |
33 | 33 | ||
@@ -36,7 +36,7 @@ | |||
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | .macro fifo_full_s3c2440 rd, rx | 38 | .macro fifo_full_s3c2440 rd, rx |
39 | ldr \rd, [ \rx, # S3C2410_UFSTAT ] | 39 | ldr \rd, [\rx, # S3C2410_UFSTAT] |
40 | tst \rd, #S3C2440_UFSTAT_TXFULL | 40 | tst \rd, #S3C2440_UFSTAT_TXFULL |
41 | .endm | 41 | .endm |
42 | 42 | ||
@@ -45,11 +45,11 @@ | |||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | .macro senduart,rd,rx | 47 | .macro senduart,rd,rx |
48 | strb \rd, [\rx, # S3C2410_UTXH ] | 48 | strb \rd, [\rx, # S3C2410_UTXH] |
49 | .endm | 49 | .endm |
50 | 50 | ||
51 | .macro busyuart, rd, rx | 51 | .macro busyuart, rd, rx |
52 | ldr \rd, [ \rx, # S3C2410_UFCON ] | 52 | ldr \rd, [\rx, # S3C2410_UFCON] |
53 | tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? | 53 | tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? |
54 | beq 1001f @ | 54 | beq 1001f @ |
55 | @ FIFO enabled... | 55 | @ FIFO enabled... |
@@ -60,7 +60,7 @@ | |||
60 | 60 | ||
61 | 1001: | 61 | 1001: |
62 | @ busy waiting for non fifo | 62 | @ busy waiting for non fifo |
63 | ldr \rd, [ \rx, # S3C2410_UTRSTAT ] | 63 | ldr \rd, [\rx, # S3C2410_UTRSTAT] |
64 | tst \rd, #S3C2410_UTRSTAT_TXFE | 64 | tst \rd, #S3C2410_UTRSTAT_TXFE |
65 | beq 1001b | 65 | beq 1001b |
66 | 66 | ||
@@ -68,7 +68,7 @@ | |||
68 | .endm | 68 | .endm |
69 | 69 | ||
70 | .macro waituart,rd,rx | 70 | .macro waituart,rd,rx |
71 | ldr \rd, [ \rx, # S3C2410_UFCON ] | 71 | ldr \rd, [\rx, # S3C2410_UFCON] |
72 | tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? | 72 | tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? |
73 | beq 1001f @ | 73 | beq 1001f @ |
74 | @ FIFO enabled... | 74 | @ FIFO enabled... |
@@ -79,7 +79,7 @@ | |||
79 | b 1002f | 79 | b 1002f |
80 | 1001: | 80 | 1001: |
81 | @ idle waiting for non fifo | 81 | @ idle waiting for non fifo |
82 | ldr \rd, [ \rx, # S3C2410_UTRSTAT ] | 82 | ldr \rd, [\rx, # S3C2410_UTRSTAT] |
83 | tst \rd, #S3C2410_UTRSTAT_TXFE | 83 | tst \rd, #S3C2410_UTRSTAT_TXFE |
84 | beq 1001b | 84 | beq 1001b |
85 | 85 | ||