missing include in drivers/cdrom/cdrom.c (kernel 2.3.40)

From: Jesper Juhl (jesper.juhl@dif.dk)
Date: Fri Jan 28 2000 - 19:06:31 EST

  • Next message: David Schwartz: "RE: all zeroes/all ones used in host IP's..."

    Hi,

    I noticed that "drivers/cdrom/cdrom.c" complains about an implicit
    declaration of register_disk() - which makes sense as it does not
    #include <linux/blkdev.h> . The patch below fix this tiny problem (it's
    against 2.3.40).

    --- linux-2.3.40/drivers/cdrom/cdrom.c Wed Jan 19 03:54:21 2000
    +++ linux-2.3.40jj/drivers/cdrom/cdrom.c Sat Jan 29 00:19:05 2000
    @@ -227,6 +227,7 @@
     #include <linux/sysctl.h>
     #include <linux/proc_fs.h>
     #include <linux/init.h>
    +#include <linux/blkdev.h>
     #include <asm/fcntl.h>
     #include <asm/segment.h>
     #include <asm/uaccess.h>

    Best regards
    Jesper Juhl - jesper.juhl@dif.dk

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Jan 29 2000 - 01:19:45 EST