Re: 2.6.10-rc2-mm2

From: William Lee Irwin III
Date: Thu Nov 18 2004 - 07:48:13 EST


On Thu, Nov 18, 2004 at 02:15:38AM -0800, Andrew Morton wrote:
> +parport_pc-config_pci=n-build-fix.patch
> parport build fix

This patch resolves the following warning by removing a const qualifier
conflicting with __setup's expected function type.

drivers/parport/parport_pc.c:3323: warning: initialization from incompatible pointer type


Index: mm2-2.6.10-rc2/drivers/parport/parport_pc.c
===================================================================
--- mm2-2.6.10-rc2.orig/drivers/parport/parport_pc.c 2004-11-18 02:55:03.000000000 -0800
+++ mm2-2.6.10-rc2/drivers/parport/parport_pc.c 2004-11-18 03:56:11.208617728 -0800
@@ -3155,8 +3155,8 @@
}

#ifdef CONFIG_PCI
-static int __init parport_init_mode_setup(const char *str) {
-
+static int __init parport_init_mode_setup(char *str)
+{
printk(KERN_DEBUG "parport_pc.c: Specified parameter parport_init_mode=%s\n", str);

if (!strcmp (str, "spp"))
-
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/