[2.6 patch] ip2main.c: remove stale function declaration

From: Adrian Bunk
Date: Sat Oct 30 2004 - 00:57:08 EST


I'm getting the following compile warning in recent 2.6 kernels:

<-- snip -->

...
CC drivers/char/ip2main.o
...
drivers/char/ip2main.c:205: warning: 'set_modem_info' declared `static' but never defined
...

<-- snip -->


gcc is right, and the patch below removes this finction declaration.


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.10-rc1-mm2-full/drivers/char/ip2main.c.old 2004-10-30 04:27:14.000000000 +0200
+++ linux-2.6.10-rc1-mm2-full/drivers/char/ip2main.c 2004-10-30 04:27:20.000000000 +0200
@@ -202,7 +202,6 @@
static void ip2_wait_until_sent(PTTY,int);

static void set_params (i2ChanStrPtr, struct termios *);
-static int set_modem_info(i2ChanStrPtr, unsigned int, unsigned int *);
static int get_serial_info(i2ChanStrPtr, struct serial_struct __user *);
static int set_serial_info(i2ChanStrPtr, struct serial_struct __user *);


-
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/