From: Michael S. Tsirkin Date: Mon, 24 Nov 2014 11:32:16 +0000 (+0200) Subject: af_packet: fix sparse warning X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~65^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e58040b848162d77243cf499d026c6253278e29;p=pandora-kernel.git af_packet: fix sparse warning 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed