Skip to content

Commit ca1aaf9

Browse files
committed
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
2 parents dca45ef + bd60aaf commit ca1aaf9

File tree

7 files changed

+26
-11
lines changed

7 files changed

+26
-11
lines changed

arch/arm/mach-mmp/devices.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void pxa_usb_phy_deinit(void __iomem *phy_reg)
238238
static u64 __maybe_unused usb_dma_mask = ~(u32)0;
239239

240240
#if IS_ENABLED(CONFIG_PHY_PXA_USB)
241-
struct resource pxa168_usb_phy_resources[] = {
241+
static struct resource pxa168_usb_phy_resources[] = {
242242
[0] = {
243243
.start = PXA168_U2O_PHYBASE,
244244
.end = PXA168_U2O_PHYBASE + USB_PHY_RANGE,
@@ -259,7 +259,7 @@ struct platform_device pxa168_device_usb_phy = {
259259
#endif /* CONFIG_PHY_PXA_USB */
260260

261261
#if IS_ENABLED(CONFIG_USB_MV_UDC)
262-
struct resource pxa168_u2o_resources[] = {
262+
static struct resource pxa168_u2o_resources[] = {
263263
/* regbase */
264264
[0] = {
265265
.start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,
@@ -294,7 +294,7 @@ struct platform_device pxa168_device_u2o = {
294294
#endif /* CONFIG_USB_MV_UDC */
295295

296296
#if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O)
297-
struct resource pxa168_u2oehci_resources[] = {
297+
static struct resource pxa168_u2oehci_resources[] = {
298298
[0] = {
299299
.start = PXA168_U2O_REGBASE,
300300
.end = PXA168_U2O_REGBASE + USB_REG_RANGE,
@@ -321,7 +321,7 @@ struct platform_device pxa168_device_u2oehci = {
321321
#endif
322322

323323
#if IS_ENABLED(CONFIG_USB_MV_OTG)
324-
struct resource pxa168_u2ootg_resources[] = {
324+
static struct resource pxa168_u2ootg_resources[] = {
325325
/* regbase */
326326
[0] = {
327327
.start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,

arch/arm/mach-spear/generic.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ extern struct pl022_ssp_controller pl022_plat_data;
2525
extern struct pl08x_platform_data pl080_plat_data;
2626

2727
void __init spear_setup_of_timer(void);
28-
void __init spear3xx_clk_init(void __iomem *misc_base,
29-
void __iomem *soc_config_base);
3028
void __init spear3xx_map_io(void);
3129
void __init spear3xx_dt_init_irq(void);
32-
void __init spear6xx_clk_init(void __iomem *misc_base);
3330
void __init spear13xx_map_io(void);
3431
void __init spear13xx_l2x0_init(void);
3532

arch/arm/mach-spear/spear3xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/amba/pl022.h>
1414
#include <linux/amba/pl080.h>
1515
#include <linux/clk.h>
16+
#include <linux/clk/spear.h>
1617
#include <linux/io.h>
1718
#include <asm/mach/map.h>
1819
#include "pl080.h"

arch/arm/mach-spear/spear6xx.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <linux/amba/pl08x.h>
1414
#include <linux/clk.h>
15+
#include <linux/clk/spear.h>
1516
#include <linux/err.h>
1617
#include <linux/of.h>
1718
#include <linux/of_address.h>
@@ -339,7 +340,7 @@ static struct pl08x_platform_data spear6xx_pl080_plat_data = {
339340
* 0xD0000000 0xFD000000
340341
* 0xFC000000 0xFC000000
341342
*/
342-
struct map_desc spear6xx_io_desc[] __initdata = {
343+
static struct map_desc spear6xx_io_desc[] __initdata = {
343344
{
344345
.virtual = (unsigned long)VA_SPEAR6XX_ML_CPU_BASE,
345346
.pfn = __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE),
@@ -359,12 +360,12 @@ struct map_desc spear6xx_io_desc[] __initdata = {
359360
};
360361

361362
/* This will create static memory mapping for selected devices */
362-
void __init spear6xx_map_io(void)
363+
static void __init spear6xx_map_io(void)
363364
{
364365
iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
365366
}
366367

367-
void __init spear6xx_timer_init(void)
368+
static void __init spear6xx_timer_init(void)
368369
{
369370
char pclk_name[] = "pll3_clk";
370371
struct clk *gpt_clk, *pclk;
@@ -394,7 +395,7 @@ void __init spear6xx_timer_init(void)
394395
}
395396

396397
/* Add auxdata to pass platform data */
397-
struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = {
398+
static struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = {
398399
OF_DEV_AUXDATA("arm,pl080", SPEAR_ICM3_DMA_BASE, NULL,
399400
&spear6xx_pl080_plat_data),
400401
{}

drivers/clk/spear/spear3xx_clock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <linux/clk.h>
1010
#include <linux/clkdev.h>
11+
#include <linux/clk/spear.h>
1112
#include <linux/err.h>
1213
#include <linux/io.h>
1314
#include <linux/of_platform.h>

drivers/clk/spear/spear6xx_clock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
#include <linux/clkdev.h>
10+
#include <linux/clk/spear.h>
1011
#include <linux/io.h>
1112
#include <linux/spinlock_types.h>
1213
#include "clk.h"

include/linux/clk/spear.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88
#ifndef __LINUX_CLK_SPEAR_H
99
#define __LINUX_CLK_SPEAR_H
1010

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+
1125
#ifdef CONFIG_MACH_SPEAR1310
1226
void __init spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base);
1327
#else

0 commit comments

Comments
 (0)