[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141124.161603.798932139185654908.davem@davemloft.net>
Date: Mon, 24 Nov 2014 16:16:03 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mst@...hat.com
Cc: linux-kernel@...r.kernel.org, dborkman@...hat.com,
edumazet@...gle.com, atzm@...atosphere.co.jp,
hannes@...essinduktion.org, therbert@...gle.com,
netdev@...r.kernel.org
Subject: Re: [PATCH] af_packet: fix sparse warning
From: "Michael S. Tsirkin" <mst@...hat.com>
Date: Mon, 24 Nov 2014 13:32:16 +0200
> af_packet produces lots of these:
> net/packet/af_packet.c:384:39: warning: incorrect type in return expression (different modifiers)
> net/packet/af_packet.c:384:39: expected struct page [pure] *
> net/packet/af_packet.c:384:39: got struct page *
>
> this seems to be because sparse does not realize that _pure
> refers to function, not the returned pointer.
>
> Tweak code slightly to avoid the warning.
>
> Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
Applied, please report the sparse bug if you haven't already.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists