Merge tag 'arm-fixes-6.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc

Pull ARM SoC fixes from Arnd Bergmann:
"These are three fixes for build warnings that came in during the merge
window"

* tag 'arm-fixes-6.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
ARM: mmp: Make some symbols static
ARM: spear6xx: Staticize few definitions
clk: spear: Move prototype to accessible header

+26 -11
+4 -4
arch/arm/mach-mmp/devices.c
··· 238 static u64 __maybe_unused usb_dma_mask = ~(u32)0; 239 240 #if IS_ENABLED(CONFIG_PHY_PXA_USB) 241 - struct resource pxa168_usb_phy_resources[] = { 242 [0] = { 243 .start = PXA168_U2O_PHYBASE, 244 .end = PXA168_U2O_PHYBASE + USB_PHY_RANGE, ··· 259 #endif /* CONFIG_PHY_PXA_USB */ 260 261 #if IS_ENABLED(CONFIG_USB_MV_UDC) 262 - struct resource pxa168_u2o_resources[] = { 263 /* regbase */ 264 [0] = { 265 .start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET, ··· 294 #endif /* CONFIG_USB_MV_UDC */ 295 296 #if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O) 297 - struct resource pxa168_u2oehci_resources[] = { 298 [0] = { 299 .start = PXA168_U2O_REGBASE, 300 .end = PXA168_U2O_REGBASE + USB_REG_RANGE, ··· 321 #endif 322 323 #if IS_ENABLED(CONFIG_USB_MV_OTG) 324 - struct resource pxa168_u2ootg_resources[] = { 325 /* regbase */ 326 [0] = { 327 .start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,
··· 238 static u64 __maybe_unused usb_dma_mask = ~(u32)0; 239 240 #if IS_ENABLED(CONFIG_PHY_PXA_USB) 241 + static struct resource pxa168_usb_phy_resources[] = { 242 [0] = { 243 .start = PXA168_U2O_PHYBASE, 244 .end = PXA168_U2O_PHYBASE + USB_PHY_RANGE, ··· 259 #endif /* CONFIG_PHY_PXA_USB */ 260 261 #if IS_ENABLED(CONFIG_USB_MV_UDC) 262 + static struct resource pxa168_u2o_resources[] = { 263 /* regbase */ 264 [0] = { 265 .start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET, ··· 294 #endif /* CONFIG_USB_MV_UDC */ 295 296 #if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O) 297 + static struct resource pxa168_u2oehci_resources[] = { 298 [0] = { 299 .start = PXA168_U2O_REGBASE, 300 .end = PXA168_U2O_REGBASE + USB_REG_RANGE, ··· 321 #endif 322 323 #if IS_ENABLED(CONFIG_USB_MV_OTG) 324 + static struct resource pxa168_u2ootg_resources[] = { 325 /* regbase */ 326 [0] = { 327 .start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,
-3
arch/arm/mach-spear/generic.h
··· 25 extern struct pl08x_platform_data pl080_plat_data; 26 27 void __init spear_setup_of_timer(void); 28 - void __init spear3xx_clk_init(void __iomem *misc_base, 29 - void __iomem *soc_config_base); 30 void __init spear3xx_map_io(void); 31 void __init spear3xx_dt_init_irq(void); 32 - void __init spear6xx_clk_init(void __iomem *misc_base); 33 void __init spear13xx_map_io(void); 34 void __init spear13xx_l2x0_init(void); 35
··· 25 extern struct pl08x_platform_data pl080_plat_data; 26 27 void __init spear_setup_of_timer(void); 28 void __init spear3xx_map_io(void); 29 void __init spear3xx_dt_init_irq(void); 30 void __init spear13xx_map_io(void); 31 void __init spear13xx_l2x0_init(void); 32
+1
arch/arm/mach-spear/spear3xx.c
··· 13 #include <linux/amba/pl022.h> 14 #include <linux/amba/pl080.h> 15 #include <linux/clk.h> 16 #include <linux/io.h> 17 #include <asm/mach/map.h> 18 #include "pl080.h"
··· 13 #include <linux/amba/pl022.h> 14 #include <linux/amba/pl080.h> 15 #include <linux/clk.h> 16 + #include <linux/clk/spear.h> 17 #include <linux/io.h> 18 #include <asm/mach/map.h> 19 #include "pl080.h"
+5 -4
arch/arm/mach-spear/spear6xx.c
··· 12 13 #include <linux/amba/pl08x.h> 14 #include <linux/clk.h> 15 #include <linux/err.h> 16 #include <linux/of.h> 17 #include <linux/of_address.h> ··· 340 * 0xD0000000 0xFD000000 341 * 0xFC000000 0xFC000000 342 */ 343 - struct map_desc spear6xx_io_desc[] __initdata = { 344 { 345 .virtual = (unsigned long)VA_SPEAR6XX_ML_CPU_BASE, 346 .pfn = __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE), ··· 360 }; 361 362 /* This will create static memory mapping for selected devices */ 363 - void __init spear6xx_map_io(void) 364 { 365 iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc)); 366 } 367 368 - void __init spear6xx_timer_init(void) 369 { 370 char pclk_name[] = "pll3_clk"; 371 struct clk *gpt_clk, *pclk; ··· 395 } 396 397 /* Add auxdata to pass platform data */ 398 - struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = { 399 OF_DEV_AUXDATA("arm,pl080", SPEAR_ICM3_DMA_BASE, NULL, 400 &spear6xx_pl080_plat_data), 401 {}
··· 12 13 #include <linux/amba/pl08x.h> 14 #include <linux/clk.h> 15 + #include <linux/clk/spear.h> 16 #include <linux/err.h> 17 #include <linux/of.h> 18 #include <linux/of_address.h> ··· 339 * 0xD0000000 0xFD000000 340 * 0xFC000000 0xFC000000 341 */ 342 + static struct map_desc spear6xx_io_desc[] __initdata = { 343 { 344 .virtual = (unsigned long)VA_SPEAR6XX_ML_CPU_BASE, 345 .pfn = __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE), ··· 359 }; 360 361 /* This will create static memory mapping for selected devices */ 362 + static void __init spear6xx_map_io(void) 363 { 364 iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc)); 365 } 366 367 + static void __init spear6xx_timer_init(void) 368 { 369 char pclk_name[] = "pll3_clk"; 370 struct clk *gpt_clk, *pclk; ··· 394 } 395 396 /* Add auxdata to pass platform data */ 397 + static struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = { 398 OF_DEV_AUXDATA("arm,pl080", SPEAR_ICM3_DMA_BASE, NULL, 399 &spear6xx_pl080_plat_data), 400 {}
+1
drivers/clk/spear/spear3xx_clock.c
··· 8 9 #include <linux/clk.h> 10 #include <linux/clkdev.h> 11 #include <linux/err.h> 12 #include <linux/io.h> 13 #include <linux/of_platform.h>
··· 8 9 #include <linux/clk.h> 10 #include <linux/clkdev.h> 11 + #include <linux/clk/spear.h> 12 #include <linux/err.h> 13 #include <linux/io.h> 14 #include <linux/of_platform.h>
+1
drivers/clk/spear/spear6xx_clock.c
··· 7 */ 8 9 #include <linux/clkdev.h> 10 #include <linux/io.h> 11 #include <linux/spinlock_types.h> 12 #include "clk.h"
··· 7 */ 8 9 #include <linux/clkdev.h> 10 + #include <linux/clk/spear.h> 11 #include <linux/io.h> 12 #include <linux/spinlock_types.h> 13 #include "clk.h"
+14
include/linux/clk/spear.h
··· 8 #ifndef __LINUX_CLK_SPEAR_H 9 #define __LINUX_CLK_SPEAR_H 10 11 #ifdef CONFIG_MACH_SPEAR1310 12 void __init spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base); 13 #else
··· 8 #ifndef __LINUX_CLK_SPEAR_H 9 #define __LINUX_CLK_SPEAR_H 10 11 + #ifdef CONFIG_ARCH_SPEAR3XX 12 + void __init spear3xx_clk_init(void __iomem *misc_base, 13 + void __iomem *soc_config_base); 14 + #else 15 + static inline void __init spear3xx_clk_init(void __iomem *misc_base, 16 + void __iomem *soc_config_base) {} 17 + #endif 18 + 19 + #ifdef CONFIG_ARCH_SPEAR6XX 20 + void __init spear6xx_clk_init(void __iomem *misc_base); 21 + #else 22 + static inline void __init spear6xx_clk_init(void __iomem *misc_base) {} 23 + #endif 24 + 25 #ifdef CONFIG_MACH_SPEAR1310 26 void __init spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base); 27 #else