Unverified Commit 390ca5bc authored by Viresh Kumar's avatar Viresh Kumar Committed by Arnd Bergmann
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 9afd20a5
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -340,7 +340,7 @@ static struct pl08x_platform_data spear6xx_pl080_plat_data = {
 * 0xD0000000		0xFD000000
 * 0xD0000000		0xFD000000
 * 0xFC000000		0xFC000000
 * 0xFC000000		0xFC000000
 */
 */
struct map_desc spear6xx_io_desc[] __initdata = {
static struct map_desc spear6xx_io_desc[] __initdata = {
	{
	{
		.virtual	= (unsigned long)VA_SPEAR6XX_ML_CPU_BASE,
		.virtual	= (unsigned long)VA_SPEAR6XX_ML_CPU_BASE,
		.pfn		= __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE),
		.pfn		= __phys_to_pfn(SPEAR_ICM3_ML1_2_BASE),
@@ -360,12 +360,12 @@ struct map_desc spear6xx_io_desc[] __initdata = {
};
};


/* This will create static memory mapping for selected devices */
/* This will create static memory mapping for selected devices */
void __init spear6xx_map_io(void)
static void __init spear6xx_map_io(void)
{
{
	iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
	iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
}
}


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


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