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

Kronos
2004-02-02T19:42:25Z

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@kronoz.cjb.net
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)