Commit dd3c33cc authored by Florian Fainelli's avatar Florian Fainelli Committed by Thomas Bogendoerfer
Browse files

MIPS: BCM63XX: Fix missing prototypes



Most of the symbols for which we do not have a prototype can actually be
made static and for the few that cannot, there is already a declaration
in a header for it.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent f64fdde9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -702,7 +702,7 @@ static struct ssb_sprom bcm63xx_sprom = {
	.boardflags_hi		= 0x0000,
};

int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
static int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
{
	if (bus->bustype == SSB_BUSTYPE_PCI) {
		memcpy(out, &bcm63xx_sprom, sizeof(struct ssb_sprom));
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ static struct platform_device bcm63xx_rng_device = {
	.resource	= rng_resources,
};

int __init bcm63xx_rng_register(void)
static int __init bcm63xx_rng_register(void)
{
	if (!BCMCPU_IS_6368())
		return -ENODEV;
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <bcm63xx_cpu.h>
#include <bcm63xx_dev_uart.h>

static struct resource uart0_resources[] = {
	{
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ static struct platform_device bcm63xx_wdt_device = {
	},
};

int __init bcm63xx_wdt_register(void)
static int __init bcm63xx_wdt_register(void)
{
	wdt_resources[0].start = bcm63xx_regset_address(RSET_WDT);
	wdt_resources[0].end = wdt_resources[0].start;
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ static inline int enable_irq_for_cpu(int cpu, struct irq_data *d,
 */

#define BUILD_IPIC_INTERNAL(width)					\
void __dispatch_internal_##width(int cpu)				\
static void __dispatch_internal_##width(int cpu)			\
{									\
	u32 pending[width / 32];					\
	unsigned int src, tgt;						\
Loading