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

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>

+37 -81
+3 -2
arch/arm/mach-at91/pm.c
··· 153 153 } 154 154 } 155 155 156 - #ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS 156 + if (!IS_ENABLED(CONFIG_AT91_PROGRAMMABLE_CLOCKS)) 157 + return 1; 158 + 157 159 /* PCK0..PCK3 must be disabled, or configured to use clk32k */ 158 160 for (i = 0; i < 4; i++) { 159 161 u32 css; ··· 169 167 return 0; 170 168 } 171 169 } 172 - #endif 173 170 174 171 return 1; 175 172 }
+1 -1
arch/arm/mach-at91/setup.c
··· 87 87 iotable_init(desc, 1); 88 88 } 89 89 90 - static struct map_desc at91_io_desc __initdata = { 90 + static struct map_desc at91_io_desc __initdata __maybe_unused = { 91 91 .virtual = (unsigned long)AT91_VA_BASE_SYS, 92 92 .pfn = __phys_to_pfn(AT91_BASE_SYS), 93 93 .length = SZ_16K,
+1 -1
arch/arm/mach-davinci/da850.c
··· 939 939 940 940 unsigned int da850_max_speed = 300000; 941 941 942 - int __init da850_register_cpufreq(char *async_clk) 942 + int da850_register_cpufreq(char *async_clk) 943 943 { 944 944 int i; 945 945
-2
arch/arm/mach-footbridge/include/mach/irqs.h
··· 89 89 #define IRQ_NETWINDER_VGA _ISA_IRQ(11) 90 90 #define IRQ_NETWINDER_SOUND _ISA_IRQ(12) 91 91 92 - #undef RTC_IRQ 93 - #define RTC_IRQ IRQ_ISA_RTC_ALARM 94 92 #define I8042_KBD_IRQ IRQ_ISA_KEYBOARD 95 93 #define I8042_AUX_IRQ (machine_is_netwinder() ? IRQ_NETWINDER_PS2MOUSE : IRQ_ISA_PS2MOUSE) 96 94 #define IRQ_FLOPPYDISK IRQ_ISA_FLOPPY
+1 -1
arch/arm/mach-iop13xx/iq81340sc.c
··· 30 30 extern int init_atu; 31 31 32 32 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) 34 34 { 35 35 WARN_ON(idsel < 1 || idsel > 2); 36 36
+1 -1
arch/arm/mach-iop13xx/pci.c
··· 504 504 505 505 /* Scan an IOP13XX PCI bus. nr selects which ATU we use. 506 506 */ 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) 508 508 { 509 509 int which_atu; 510 510 struct pci_bus *bus = NULL;
+2 -1
arch/arm/mach-ks8695/include/mach/memory.h
··· 34 34 #define __arch_dma_to_virt(dev, x) ({ (void *) (is_lbus_device(dev) ? \ 35 35 __phys_to_virt(x) : __bus_to_virt(x)); }) 36 36 #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); }) 38 39 #define __arch_pfn_to_dma(dev, pfn) \ 39 40 ({ dma_addr_t __dma = __pfn_to_phys(pfn); \ 40 41 if (!is_lbus_device(dev)) \
+1 -1
arch/arm/mach-mv78xx0/addr-map.c
··· 54 54 /* 55 55 * Description of the windows needed by the platform code 56 56 */ 57 - static struct __initdata orion_addr_map_cfg addr_map_cfg = { 57 + static struct orion_addr_map_cfg addr_map_cfg __initdata = { 58 58 .num_wins = 14, 59 59 .remappable_wins = 8, 60 60 .win_cfg_base = win_cfg_base,
+1 -1
arch/arm/mach-mv78xx0/common.c
··· 336 336 orion_time_set_base(TIMER_VIRT_BASE); 337 337 } 338 338 339 - static void mv78xx0_timer_init(void) 339 + static void __init_refok mv78xx0_timer_init(void) 340 340 { 341 341 orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR, 342 342 IRQ_MV78XX0_TIMER_1, get_tclk());
+1
arch/arm/mach-pxa/cm-x2xx.c
··· 22 22 #include <asm/mach/map.h> 23 23 24 24 #include <mach/pxa25x.h> 25 + #undef GPIO24_SSP1_SFRM 25 26 #include <mach/pxa27x.h> 26 27 #include <mach/audio.h> 27 28 #include <linux/platform_data/video-pxafb.h>
+2
arch/arm/mach-pxa/palmte2.c
··· 105 105 .gpio_power = GPIO_NR_PALMTE2_SD_POWER, 106 106 }; 107 107 108 + #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 108 109 /****************************************************************************** 109 110 * GPIO keys 110 111 ******************************************************************************/ ··· 133 132 .platform_data = &palmte2_pxa_keys_data, 134 133 }, 135 134 }; 135 + #endif 136 136 137 137 /****************************************************************************** 138 138 * Backlight
-48
arch/arm/mach-pxa/sharpsl_pm.c
··· 55 55 #ifdef CONFIG_PM 56 56 static int sharpsl_off_charge_battery(void); 57 57 static int sharpsl_check_battery_voltage(void); 58 - static int sharpsl_fatal_check(void); 59 58 #endif 60 59 static int sharpsl_check_battery_temp(void); 61 60 static int sharpsl_ac_check(void); ··· 682 683 683 684 dev_dbg(sharpsl_pm.dev, "SharpSL resuming...\n"); 684 685 685 - return 0; 686 - } 687 - 688 - /* 689 - * Check for fatal battery errors 690 - * Fatal returns -1 691 - */ 692 - static int sharpsl_fatal_check(void) 693 - { 694 - int buff[5], temp, i, acin; 695 - 696 - dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check entered\n"); 697 - 698 - /* Check AC-Adapter */ 699 - acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); 700 - 701 - if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) { 702 - sharpsl_pm.machinfo->charge(0); 703 - udelay(100); 704 - sharpsl_pm.machinfo->discharge(1); /* enable discharge */ 705 - mdelay(SHARPSL_WAIT_DISCHARGE_ON); 706 - } 707 - 708 - if (sharpsl_pm.machinfo->discharge1) 709 - sharpsl_pm.machinfo->discharge1(1); 710 - 711 - /* Check battery : check inserting battery ? */ 712 - for (i = 0; i < 5; i++) { 713 - buff[i] = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT); 714 - mdelay(SHARPSL_CHECK_BATTERY_WAIT_TIME_VOLT); 715 - } 716 - 717 - if (sharpsl_pm.machinfo->discharge1) 718 - sharpsl_pm.machinfo->discharge1(0); 719 - 720 - if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) { 721 - udelay(100); 722 - sharpsl_pm.machinfo->charge(1); 723 - sharpsl_pm.machinfo->discharge(0); 724 - } 725 - 726 - temp = get_select_val(buff); 727 - dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %ld\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT)); 728 - 729 - if ((acin && (temp < sharpsl_pm.machinfo->fatal_acin_volt)) || 730 - (!acin && (temp < sharpsl_pm.machinfo->fatal_noacin_volt))) 731 - return -1; 732 686 return 0; 733 687 } 734 688
+1 -2
arch/arm/mach-pxa/viper.c
··· 768 768 769 769 static int __init viper_tpm_setup(char *str) 770 770 { 771 - strict_strtoul(str, 10, &viper_tpm); 772 - return 1; 771 + return strict_strtoul(str, 10, &viper_tpm) >= 0; 773 772 } 774 773 775 774 __setup("tpm=", viper_tpm_setup);
+3 -1
arch/arm/mach-rpc/ecard.c
··· 960 960 *ecp = ec; 961 961 slot_to_expcard[slot] = ec; 962 962 963 - device_register(&ec->dev); 963 + rc = device_register(&ec->dev); 964 + if (rc) 965 + goto nodev; 964 966 965 967 return 0; 966 968
+3 -3
arch/arm/mach-s3c24xx/irq-s3c2416.c
··· 232 232 233 233 /* IRQ initialisation code */ 234 234 235 - static int __init s3c2416_add_sub(unsigned int base, 235 + static int s3c2416_add_sub(unsigned int base, 236 236 void (*demux)(unsigned int, 237 237 struct irq_desc *), 238 238 struct irq_chip *chip, ··· 251 251 return 0; 252 252 } 253 253 254 - static void __init s3c2416_irq_add_second(void) 254 + static void s3c2416_irq_add_second(void) 255 255 { 256 256 unsigned long pend; 257 257 unsigned long last; ··· 287 287 } 288 288 } 289 289 290 - static int __init s3c2416_irq_add(struct device *dev, 290 + static int s3c2416_irq_add(struct device *dev, 291 291 struct subsys_interface *sif) 292 292 { 293 293 printk(KERN_INFO "S3C2416: IRQ Support\n");
+2 -2
arch/arm/mach-s3c24xx/irq-s3c2443.c
··· 222 222 223 223 /* IRQ initialisation code */ 224 224 225 - static int __init s3c2443_add_sub(unsigned int base, 225 + static int s3c2443_add_sub(unsigned int base, 226 226 void (*demux)(unsigned int, 227 227 struct irq_desc *), 228 228 struct irq_chip *chip, ··· 241 241 return 0; 242 242 } 243 243 244 - static int __init s3c2443_irq_add(struct device *dev, 244 + static int s3c2443_irq_add(struct device *dev, 245 245 struct subsys_interface *sif) 246 246 { 247 247 printk("S3C2443: IRQ Support\n");
+1 -1
arch/arm/mach-s3c24xx/simtec-usb.c
··· 104 104 }; 105 105 106 106 107 - int usb_simtec_init(void) 107 + int __init usb_simtec_init(void) 108 108 { 109 109 int ret; 110 110
+1 -1
arch/arm/mach-shark/pci.c
··· 41 41 static int __init shark_pci_init(void) 42 42 { 43 43 if (!machine_is_shark()) 44 - return; 44 + return -ENODEV; 45 45 46 46 pcibios_min_io = 0x6000; 47 47 pcibios_min_mem = 0x50000000;
+2 -2
arch/arm/mach-tegra/Kconfig
··· 16 16 select ARM_ERRATA_742230 17 17 select ARM_ERRATA_751472 18 18 select ARM_ERRATA_754327 19 - select ARM_ERRATA_764369 19 + select ARM_ERRATA_764369 if SMP 20 20 select PL310_ERRATA_727915 if CACHE_L2X0 21 21 select PL310_ERRATA_769419 if CACHE_L2X0 22 22 select CPU_FREQ_TABLE if CPU_FREQ ··· 37 37 select ARM_ERRATA_743622 38 38 select ARM_ERRATA_751472 39 39 select ARM_ERRATA_754322 40 - select ARM_ERRATA_764369 40 + select ARM_ERRATA_764369 if SMP 41 41 select PL310_ERRATA_769419 if CACHE_L2X0 42 42 select CPU_FREQ_TABLE if CPU_FREQ 43 43 help
+2 -2
arch/arm/mach-ux500/Kconfig
··· 5 5 default y 6 6 select ARM_GIC 7 7 select HAS_MTU 8 - select PL310_ERRATA_753970 8 + select PL310_ERRATA_753970 if CACHE_PL310 9 9 select ARM_ERRATA_754322 10 - select ARM_ERRATA_764369 10 + select ARM_ERRATA_764369 if SMP 11 11 select CACHE_L2X0 12 12 select PINCTRL 13 13 select PINCTRL_NOMADIK
+4 -4
drivers/char/ds1620.c
··· 74 74 75 75 static inline void netwinder_lock(unsigned long *flags) 76 76 { 77 - spin_lock_irqsave(&nw_gpio_lock, *flags); 77 + raw_spin_lock_irqsave(&nw_gpio_lock, *flags); 78 78 } 79 79 80 80 static inline void netwinder_unlock(unsigned long *flags) 81 81 { 82 - spin_unlock_irqrestore(&nw_gpio_lock, *flags); 82 + raw_spin_unlock_irqrestore(&nw_gpio_lock, *flags); 83 83 } 84 84 85 85 static inline void netwinder_set_fan(int i) 86 86 { 87 87 unsigned long flags; 88 88 89 - spin_lock_irqsave(&nw_gpio_lock, flags); 89 + raw_spin_lock_irqsave(&nw_gpio_lock, flags); 90 90 nw_gpio_modify_op(GPIO_FAN, i ? GPIO_FAN : 0); 91 - spin_unlock_irqrestore(&nw_gpio_lock, flags); 91 + raw_spin_unlock_irqrestore(&nw_gpio_lock, flags); 92 92 } 93 93 94 94 static inline int netwinder_get_fan(void)
+2 -2
drivers/char/nwflash.c
··· 583 583 * we want to write a bit pattern XXX1 to Xilinx to enable 584 584 * the write gate, which will be open for about the next 2ms. 585 585 */ 586 - spin_lock_irqsave(&nw_gpio_lock, flags); 586 + raw_spin_lock_irqsave(&nw_gpio_lock, flags); 587 587 nw_cpld_modify(CPLD_FLASH_WR_ENABLE, CPLD_FLASH_WR_ENABLE); 588 - spin_unlock_irqrestore(&nw_gpio_lock, flags); 588 + raw_spin_unlock_irqrestore(&nw_gpio_lock, flags); 589 589 590 590 /* 591 591 * let the ISA bus to catch on...
+2 -2
sound/oss/waveartist.c
··· 1482 1482 { 1483 1483 unsigned long flags; 1484 1484 1485 - spin_lock_irqsave(&nw_gpio_lock, flags); 1485 + raw_spin_lock_irqsave(&nw_gpio_lock, flags); 1486 1486 nw_cpld_modify(CPLD_UNMUTE, devc->spkr_mute_state ? 0 : CPLD_UNMUTE); 1487 - spin_unlock_irqrestore(&nw_gpio_lock, flags); 1487 + raw_spin_unlock_irqrestore(&nw_gpio_lock, flags); 1488 1488 } 1489 1489 1490 1490 static void