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

From: Jens Axboe (axboe@suse.de)
Date: Fri Jan 28 2000 - 18:10:26 EST


On Sat, Jan 29 2000, Jesper Juhl wrote:
> 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>

Real fix is in 2.3.41-4 - don't include blkdev, since register_disk()
does not belong there.

-- 
*  Jens Axboe <axboe@suse.de>
*  Linux CD-ROM Maintainer
*  http://www.kernel.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 : Mon Jan 31 2000 - 21:00:22 EST