nubus: Use static functions where possible
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 13 Jan 2018 22:37:13 +0000 (17:37 -0500)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 16 Jan 2018 15:47:29 +0000 (16:47 +0100)
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: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/nubus/nubus.c
include/linux/nubus.h

index b6c97e07f15e72ffbc889be723f6f395a4483959..35056cee94b15e7fb10e5bb08674a73b22822ea8 100644 (file)
@@ -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;
 
index 55b9a4569a69c5317194aa22763c96f8de239202..e525669f1991a85066705a9d3ae62d7210c13976 100644 (file)
@@ -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