[PATCH] tiny warning fix in drivers/cdrom/mcd.c

From: Jesper Juhl
Date: Sun Jan 30 2005 - 11:55:55 EST



Here's a small patch to fix this warning :
drivers/cdrom/mcd.c:268: warning: passing arg 1 of `mcd_setup' discards qualifiers from pointer target type

Yes, the driver is ancient, but that's no reason to not fix warnings :)


Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>

--- linux-2.6.11-rc2-bk7-orig/drivers/cdrom/mcd.c 2005-01-22 21:59:31.000000000 +0100
+++ linux-2.6.11-rc2-bk7/drivers/cdrom/mcd.c 2005-01-30 17:47:33.000000000 +0100
@@ -244,7 +244,7 @@ static struct block_device_operations mc

static struct gendisk *mcd_gendisk;

-static int __init mcd_setup(char *str)
+static int __init mcd_setup(const char *str)
{
int ints[9];




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