From: Gerrit Renker Date: Mon, 5 Jan 2009 01:14:46 +0000 (-0800) Subject: tun: Eliminate sparse signedness warning X-Git-Tag: v2.6.29-rc1~502^2~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=745417e20684e4951afcabfe74583a3884e54980;p=linux-2.6-omap-h63xx.git tun: Eliminate sparse signedness warning register_pernet_gen_device() expects 'int*', found via sparse. CHECK drivers/net/tun.c drivers/net/tun.c:1245:36: warning: incorrect type in argument 1 (different signedness) drivers/net/tun.c:1245:36: expected int *id drivers/net/tun.c:1245:36: got unsigned int static [toplevel] * Signed-off-by: Gerrit Renker Signed-off-by: David S. Miller --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 69f9a0ec764..d7b81e4fdd5 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -213,7 +213,7 @@ static int check_filter(struct tap_filter *filter, const struct sk_buff *skb) /* Network device part of the driver */ -static unsigned int tun_net_id; +static int tun_net_id; struct tun_net { struct list_head dev_list; };