On Sun, Nov 13, 2005 at 10:24:15PM -0800, Ben Greear wrote:
> This been dealt with already?
> 
> /home/greear/git/linux-2.6/drivers/net/wan/pc300_tty.c: In function 
> `cpc_tty_rx_work':
> /home/greear/git/linux-2.6/drivers/net/wan/pc300_tty.c:692: warning: 
> passing arg 1 of `kfree' discards qualifiers from pointer target type

It would seem not.  Got a patch?  The one below gets rid of the
warning, but is there something better?

John

diff --git a/drivers/net/wan/pc300_tty.c b/drivers/net/wan/pc300_tty.c
index 52f26b9..931cbdf 100644
--- a/drivers/net/wan/pc300_tty.c
+++ b/drivers/net/wan/pc300_tty.c
@@ -689,7 +689,7 @@ static void cpc_tty_rx_work(void * data)
                                        }
                                }       
                                cpc_tty->buf_rx.first = 
cpc_tty->buf_rx.first->next;
-                               kfree(buf);
+                               kfree((void *)buf);
                                buf = cpc_tty->buf_rx.first;
                                flg_rx = 1;
                        }
-- 
John W. Linville
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to