[PATCH] fix for cdrom.c implicit decl WARNING
Albert Cranford
ac9410 en bellsouth.net
Dom Ene 23 21:25:41 CST 2000
--->WARNING-------------
cdrom.c: In function `register_cdrom':
cdrom.c:357: warning: implicit declaration of function `register_disk'
--->TESTED FIX--------
--->linux/include/linux/blk.h includes "#include <linux/blkdev.h>"
--->linux/include/linux/blkdev.h has
"extern void register_disk(struct gendisk *dev, kdev_t first, unsigned minors, struct block_device_operations *ops,
long size);"
so the patch is:
--- linux-2.3.40/drivers/cdrom/cdrom.c.orig Sun Jan 23 11:49:44 2000
+++ linux/drivers/cdrom/cdrom.c Sun Jan 23 11:45:32 2000
@@ -227,6 +227,7 @@
#include <linux/sysctl.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
+#include <linux/blk.h>
#include <asm/fcntl.h>
#include <asm/segment.h>
#include <asm/uaccess.h>
--
Albert Cranford Deerfield Beach FL USA
ac9410 en bellsouth.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda