Skip to content

Commit 0b33162

Browse files
committed
Merge branch 'late/fixes' into fixes
This is a series from Arnd that fixes a number of compiler warnings when building defconfigs on ARM. * late/fixes: ARM: footbridge: nw_gpio_lock is raw_spin_lock ARM: mv78xx0: correct addr_map_cfg __initdata annotation ARM: footbridge: remove RTC_IRQ definition ARM: soc: dependency warnings for errata ARM: ks8695: __arch_virt_to_dma type handling ARM: rpc: check device_register return code in ecard_probe ARM: davinci: don't mark da850_register_cpufreq as __init ARM: iop13xx: fix iq81340sc_atux_map_irq prototype ARM: iop13xx: mark iop13xx_scan_bus as __devinit ARM: mv78xx0: mark mv78xx0_timer_init as __init_refok ARM: s3c24xx: fix multiple section mismatch warnings ARM: at91: unused variable in at91_pm_verify_clocks ARM: at91: skip at91_io_desc definition for NOMMU ARM: pxa: work around duplicate definition of GPIO24_SSP1_SFRM ARM: pxa: remove sharpsl_fatal_check function ARM: pxa: define palmte2_pxa_keys conditionally ARM: pxa: Wunused-result warning in viper board file ARM: shark: fix shark_pci_init return code Fixed trivial conflicts in arch/arm/mach-at91/setup.c. Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents a4ee777 + 45ef6ac commit 0b33162

23 files changed

Lines changed: 37 additions & 81 deletions

File tree

‎arch/arm/mach-at91/pm.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ static int at91_pm_verify_clocks(void)
153153
}
154154
}
155155

156-
#ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS
156+
if (!IS_ENABLED(CONFIG_AT91_PROGRAMMABLE_CLOCKS))
157+
return 1;
158+
157159
/* PCK0..PCK3 must be disabled, or configured to use clk32k */
158160
for (i = 0; i < 4; i++) {
159161
u32 css;
@@ -167,7 +169,6 @@ static int at91_pm_verify_clocks(void)
167169
return 0;
168170
}
169171
}
170-
#endif
171172

172173
return 1;
173174
}

‎arch/arm/mach-at91/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void __init at91_init_sram(int bank, unsigned long base, unsigned int length)
8787
iotable_init(desc, 1);
8888
}
8989

90-
static struct map_desc at91_io_desc __initdata = {
90+
static struct map_desc at91_io_desc __initdata __maybe_unused = {
9191
.virtual = (unsigned long)AT91_VA_BASE_SYS,
9292
.pfn = __phys_to_pfn(AT91_BASE_SYS),
9393
.length = SZ_16K,

‎arch/arm/mach-davinci/da850.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ static struct platform_device da850_cpufreq_device = {
939939

940940
unsigned int da850_max_speed = 300000;
941941

942-
int __init da850_register_cpufreq(char *async_clk)
942+
int da850_register_cpufreq(char *async_clk)
943943
{
944944
int i;
945945

‎arch/arm/mach-footbridge/include/mach/irqs.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@
8989
#define IRQ_NETWINDER_VGA _ISA_IRQ(11)
9090
#define IRQ_NETWINDER_SOUND _ISA_IRQ(12)
9191

92-
#undef RTC_IRQ
93-
#define RTC_IRQ IRQ_ISA_RTC_ALARM
9492
#define I8042_KBD_IRQ IRQ_ISA_KEYBOARD
9593
#define I8042_AUX_IRQ (machine_is_netwinder() ? IRQ_NETWINDER_PS2MOUSE : IRQ_ISA_PS2MOUSE)
9694
#define IRQ_FLOPPYDISK IRQ_ISA_FLOPPY

‎arch/arm/mach-iop13xx/iq81340sc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
extern int init_atu;
3131

3232
static int __init
33-
iq81340sc_atux_map_irq(struct pci_dev *dev, u8 idsel, u8 pin)
33+
iq81340sc_atux_map_irq(const struct pci_dev *dev, u8 idsel, u8 pin)
3434
{
3535
WARN_ON(idsel < 1 || idsel > 2);
3636

‎arch/arm/mach-iop13xx/pci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ iop13xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
504504

505505
/* Scan an IOP13XX PCI bus. nr selects which ATU we use.
506506
*/
507-
struct pci_bus *iop13xx_scan_bus(int nr, struct pci_sys_data *sys)
507+
struct pci_bus * __devinit iop13xx_scan_bus(int nr, struct pci_sys_data *sys)
508508
{
509509
int which_atu;
510510
struct pci_bus *bus = NULL;

‎arch/arm/mach-ks8695/include/mach/memory.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ extern struct bus_type platform_bus_type;
3434
#define __arch_dma_to_virt(dev, x) ({ (void *) (is_lbus_device(dev) ? \
3535
__phys_to_virt(x) : __bus_to_virt(x)); })
3636
#define __arch_virt_to_dma(dev, x) ({ is_lbus_device(dev) ? \
37-
(dma_addr_t)__virt_to_phys(x) : (dma_addr_t)__virt_to_bus(x); })
37+
(dma_addr_t)__virt_to_phys((unsigned long)x) \
38+
: (dma_addr_t)__virt_to_bus(x); })
3839
#define __arch_pfn_to_dma(dev, pfn) \
3940
({ dma_addr_t __dma = __pfn_to_phys(pfn); \
4041
if (!is_lbus_device(dev)) \

‎arch/arm/mach-mv78xx0/addr-map.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg *cfg, i
5454
/*
5555
* Description of the windows needed by the platform code
5656
*/
57-
static struct __initdata orion_addr_map_cfg addr_map_cfg = {
57+
static struct orion_addr_map_cfg addr_map_cfg __initdata = {
5858
.num_wins = 14,
5959
.remappable_wins = 8,
6060
.win_cfg_base = win_cfg_base,

‎arch/arm/mach-mv78xx0/common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ void __init mv78xx0_init_early(void)
336336
orion_time_set_base(TIMER_VIRT_BASE);
337337
}
338338

339-
static void mv78xx0_timer_init(void)
339+
static void __init_refok mv78xx0_timer_init(void)
340340
{
341341
orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR,
342342
IRQ_MV78XX0_TIMER_1, get_tclk());

‎arch/arm/mach-pxa/cm-x2xx.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <asm/mach/map.h>
2323

2424
#include <mach/pxa25x.h>
25+
#undef GPIO24_SSP1_SFRM
2526
#include <mach/pxa27x.h>
2627
#include <mach/audio.h>
2728
#include <linux/platform_data/video-pxafb.h>

0 commit comments

Comments
 (0)