Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 460cf95e authored by Finn Thain's avatar Finn Thain Committed by Geert Uytterhoeven
Browse files

nubus: Use static functions where possible



This fixes a couple of warnings from 'make W=1':
drivers/nubus/nubus.c:790: warning: no previous prototype for 'nubus_probe_slot'
drivers/nubus/nubus.c:824: warning: no previous prototype for 'nubus_scan_bus'

Tested-by: default avatarStan Johnson <userm57@yahoo.com>
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 1ff2775a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -793,7 +793,7 @@ static struct nubus_board * __init nubus_add_board(int slot, int bytelanes)
	return board;
}

void __init nubus_probe_slot(int slot)
static void __init nubus_probe_slot(int slot)
{
	unsigned char dp;
	unsigned char *rp;
@@ -827,7 +827,7 @@ void __init nubus_probe_slot(int slot)
	}
}

void __init nubus_scan_bus(void)
static void __init nubus_scan_bus(void)
{
	int slot;

+0 −1
Original line number Diff line number Diff line
@@ -92,7 +92,6 @@ extern struct nubus_dev* nubus_devices;
extern struct nubus_board* nubus_boards;

/* Generic NuBus interface functions, modelled after the PCI interface */
void nubus_scan_bus(void);
#ifdef CONFIG_PROC_FS
extern void nubus_proc_init(void);
#else