lkml.org 
[lkml]   [2004]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] ip2main.c: remove stale function declaration
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@stusta.de>

--- 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [from the cache]
©2003-2011 Jasper Spaans