Skip to content

Commit dd3c33c

Browse files
ffainellitsbogend
authored andcommitted
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: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent f64fdde commit dd3c33c

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

arch/mips/bcm63xx/boards/board_bcm963xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ static struct ssb_sprom bcm63xx_sprom = {
702702
.boardflags_hi = 0x0000,
703703
};
704704

705-
int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
705+
static int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
706706
{
707707
if (bus->bustype == SSB_BUSTYPE_PCI) {
708708
memcpy(out, &bcm63xx_sprom, sizeof(struct ssb_sprom));

arch/mips/bcm63xx/dev-rng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static struct platform_device bcm63xx_rng_device = {
2626
.resource = rng_resources,
2727
};
2828

29-
int __init bcm63xx_rng_register(void)
29+
static int __init bcm63xx_rng_register(void)
3030
{
3131
if (!BCMCPU_IS_6368())
3232
return -ENODEV;

arch/mips/bcm63xx/dev-uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/kernel.h>
1111
#include <linux/platform_device.h>
1212
#include <bcm63xx_cpu.h>
13+
#include <bcm63xx_dev_uart.h>
1314

1415
static struct resource uart0_resources[] = {
1516
{

arch/mips/bcm63xx/dev-wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static struct platform_device bcm63xx_wdt_device = {
3434
},
3535
};
3636

37-
int __init bcm63xx_wdt_register(void)
37+
static int __init bcm63xx_wdt_register(void)
3838
{
3939
wdt_resources[0].start = bcm63xx_regset_address(RSET_WDT);
4040
wdt_resources[0].end = wdt_resources[0].start;

arch/mips/bcm63xx/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static inline int enable_irq_for_cpu(int cpu, struct irq_data *d,
7272
*/
7373

7474
#define BUILD_IPIC_INTERNAL(width) \
75-
void __dispatch_internal_##width(int cpu) \
75+
static void __dispatch_internal_##width(int cpu) \
7676
{ \
7777
u32 pending[width / 32]; \
7878
unsigned int src, tgt; \

arch/mips/bcm63xx/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void __init plat_mem_setup(void)
159159
board_setup();
160160
}
161161

162-
int __init bcm63xx_register_devices(void)
162+
static int __init bcm63xx_register_devices(void)
163163
{
164164
/* register gpiochip */
165165
bcm63xx_gpio_init();

arch/mips/bcm63xx/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int bcm63xx_timer_set(int id, int monotonic, unsigned int countdown_us)
178178

179179
EXPORT_SYMBOL(bcm63xx_timer_set);
180180

181-
int bcm63xx_timer_init(void)
181+
static int bcm63xx_timer_init(void)
182182
{
183183
int ret, irq;
184184
u32 reg;

0 commit comments

Comments
 (0)