[Compile Regression in 2.4.25-pre8][PATCH 25/42]
From: Kronos
Date: Mon Feb 02 2004 - 15:46:03 EST
it8181fb.c:162: warning: `fontname' defined but not used
fontname is used only when the driver is modular. The initializer is
useless since the variable is static.
diff -Nru -X dontdiff linux-2.4-vanilla/drivers/video/it8181fb.c linux-2.4/drivers/video/it8181fb.c
--- linux-2.4-vanilla/drivers/video/it8181fb.c Sat Jan 31 15:54:42 2004
+++ linux-2.4/drivers/video/it8181fb.c Sat Jan 31 18:12:50 2004
@@ -159,7 +159,9 @@
#define DEFAULT_CONFIG_OFFSET 0
static const char default_mode[] = "800x600-70";
-static char __initdata fontname[40] = { 0 };
+#ifndef MODULE
+static char __initdata fontname[40];
+#endif
static const char *mode_option __initdata = NULL;
static int default_bpp __initdata = DEFAULT_BPP;
static int default_res __initdata = DEFAULT_RES;
--
Reply-To: kronos@xxxxxxxxxxxxxx
Home: http://kronoz.cjb.net
No matter what you choose, you're still a luser.
-
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/