Skip to content

Commit 390ca5b

Browse files
vireshkarndb
authored andcommitted
ARM: spear6xx: Staticize few definitions
Fix warnings with clang like: arch/arm/mach-spear/spear6xx.c:365:13: warning: no previous prototype for function 'spear6xx_map_io' [-Wmissing-prototypes] by making few definitions static. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 9afd20a commit 390ca5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm/mach-spear/spear6xx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static struct pl08x_platform_data spear6xx_pl080_plat_data = {
340340
* 0xD0000000 0xFD000000
341341
* 0xFC000000 0xFC000000
342342
*/
343-
struct map_desc spear6xx_io_desc[] __initdata = {
343+
static struct map_desc spear6xx_io_desc[] __initdata = {
344344
{
345345
.virtual = (unsigned long)VA_SPEAR6XX_ML_CPU_BASE,
346346
.pfn = __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE),
@@ -360,12 +360,12 @@ struct map_desc spear6xx_io_desc[] __initdata = {
360360
};
361361

362362
/* This will create static memory mapping for selected devices */
363-
void __init spear6xx_map_io(void)
363+
static void __init spear6xx_map_io(void)
364364
{
365365
iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
366366
}
367367

368-
void __init spear6xx_timer_init(void)
368+
static void __init spear6xx_timer_init(void)
369369
{
370370
char pclk_name[] = "pll3_clk";
371371
struct clk *gpt_clk, *pclk;
@@ -395,7 +395,7 @@ void __init spear6xx_timer_init(void)
395395
}
396396

397397
/* Add auxdata to pass platform data */
398-
struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = {
398+
static struct of_dev_auxdata spear6xx_auxdata_lookup[] __initdata = {
399399
OF_DEV_AUXDATA("arm,pl080", SPEAR_ICM3_DMA_BASE, NULL,
400400
&spear6xx_pl080_plat_data),
401401
{}

0 commit comments

Comments
 (0)