lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ