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

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

Post by w.. » Fri, 06 Dec 2002 13:00:14



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

     }
 }

-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

 #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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. fix warning: unused variable powernow-k6.c

simple fix to remove compiler warning

===== arch/i386/kernel/cpu/cpufreq/powernow-k6.c 1.14 vs edited =====
--- 1.14/arch/i386/kernel/cpu/cpufreq/powernow-k6.c     Mon Mar 17 05:53:03 2003

 static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
 {
-       struct cpuinfo_x86 *c = cpu_data;
        unsigned int i;

        if (policy->cpu != 0)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. serial port

3. fix warning: unused variable longrun.c

4. ufsrestore and volumes

5. drivers/block/block.o: In function `rd_blkdev_pagecache_IO' and `rd_make_request': undefined reference to `bio_size'

6. KDE1 and KDE2 on same machine PROBLEM - Caldera 2.4

7. 2.5.15 : drivers/block/paride/pcd.c minor unused var patch

8. RedHat 6.0 & Adaptec 2930CU SCSI Card

9. 2.5.15 : drivers/block/paride/pd.c minor unused var

10. fix warning in drivers/net/sis900.c

11. [5/8] fix printk() type warning in drivers/net/starfire.c

12. Warning fix in drivers/mtd/mtdblock.c

13. 2.5.40: warning fix for drivers/usb/core/usb.c