Messages in this thread Patch in this message | | | Date | Thu, 05 Dec 2002 02:52:59 -0800 | From | wli@holomorp ... | Subject | [warnings] [8/8] fix unused function warning in drivers/block/floppy.c |
| |
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) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |