[Compile Regression in 2.4.25-pre8][PATCH 7/42]

From: Kronos
Date: Mon Feb 02 2004 - 14:44:14 EST


cmdlinepart.c:345: warning: `mtdpart_setup' defined but not used

Function is not used when driver is modular.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/mtd/cmdlinepart.c linux-2.4/drivers/mtd/cmdlinepart.c
--- linux-2.4-vanilla/drivers/mtd/cmdlinepart.c Fri Jun 13 16:51:34 2003
+++ linux-2.4/drivers/mtd/cmdlinepart.c Sat Jan 31 16:57:32 2004
@@ -335,7 +335,7 @@
return -EINVAL;
}

-
+#ifndef MODULE
/*
* This is the handler for our kernel parameter, called from
* main.c::checksetup(). Note that we can not yet kmalloc() anything,
@@ -348,6 +348,7 @@
}

__setup("mtdparts=", mtdpart_setup);
+#endif

EXPORT_SYMBOL(parse_cmdline_partitions);

--
Reply-To: kronos@xxxxxxxxxxxxxx
Home: http://kronoz.cjb.net
"I've seen things you people wouldn't believe...
Attack Ships on fire off the shores of Orion.
I've watched C-beams glitter in the dark off of Tanhauser Gate.
All those moments will be lost in time...like tears, in rain.
Time to die." -- Roy Batty (played by Rutger Hauer)
-
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/