[warnings] [8/8] fix unused function warning in drivers/block/floppy.c

wli
2002-12-05T10:46:06Z

Move unregister_devfs_entries under the #ifdef MODULE section to
avoid the warning about unused functions. viro, this is your to ack.

===== drivers/block/floppy.c 1.63 vs edited =====
--- 1.63/drivers/block/floppy.c Tue Dec 3 10:14:11 2002
+++ edited/drivers/block/floppy.c Thu Dec 5 02:07:27 2002
@@ -3977,18 +3977,6 @@
}
}

-static void unregister_devfs_entries (int drive)
-{
- int i;
-
- if (UDP->cmos < NUMBER(default_drive_params)) {
- i = 0;
- do {
- devfs_remove("floppy/%d%s", drive, table[table_sup[UDP->cmos][i]]);
- } while (table_sup[UDP->cmos][i++]);
- }
-}
-
/*
* Floppy Driver initialization
* =============================
@@ -4542,6 +4530,18 @@
#ifdef MODULE

char *floppy;
+
+static void unregister_devfs_entries (int drive)
+{
+ int i;
+
+ if (UDP->cmos < NUMBER(default_drive_params)) {
+ i = 0;
+ do {
+ devfs_remove("floppy/%d%s", drive, table[table_sup[UDP->cmos][i]]);
+ } while (table_sup[UDP->cmos][i++]);
+ }
+}

static void __init parse_floppy_cfg_string(char *cfg)
{