From: David Howells Fix iiEllisCleanup(), which is static but only used if the driver is being built as a module, by wrapping it in #ifdef MODULE as the function that calls it is. Signed-off-by: David Howells Cc: Jiri Slaby Signed-off-by: Andrew Morton --- drivers/char/ip2/i2ellis.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/char/ip2/i2ellis.c~ip2-fix-iielliscleanup-as-it-is-static-but-not-always-used drivers/char/ip2/i2ellis.c --- a/drivers/char/ip2/i2ellis.c~ip2-fix-iielliscleanup-as-it-is-static-but-not-always-used +++ a/drivers/char/ip2/i2ellis.c @@ -95,10 +95,12 @@ iiEllisInit(void) // This routine performs any required cleanup of the iiEllis subsystem. // //****************************************************************************** +#ifdef MODULE static void iiEllisCleanup(void) { } +#endif //****************************************************************************** // Function: iiSetAddress(pB, address, delay) _