[PATCH] 2.5.2-pre8: drivers/char/lp.c compile error

Frank Davis (fdavis@si.rr.com)
Sat, 5 Jan 2002 01:47:09 -0500 (EST)


Hello all,
The following patch should do the trick.
Regards,
Frank

--- drivers/char/lp.c.old Sat Jan 5 00:25:41 2002
+++ drivers/char/lp.c Sat Jan 5 01:44:23 2002
@@ -683,7 +683,7 @@

static kdev_t lp_console_device (struct console *c)
{
- return MKDEV(LP_MAJOR, CONSOLE_LP);
+ return mk_kdev(LP_MAJOR, CONSOLE_LP);
}

static struct console lpcons = {

On Sat, 5 Jan 2002, Frank Davis wrote:

> Hello all,
>
> While 'make bzImage', I received the following error:
>
> ...
> lp.c: In function 'lp_console_device':
> lp.c:686: imcompatible type in return
> lp.c:687: warning: control reaches end of non-void function
> Amake[2]: *** [lp.o] Error 1
> make[2]: Leaving directory '/usr/src/linux/drivers/char'
> ...
>
> Regards,
> Frank
>
>

-
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/