[ovs-dev] [sparse 1/3] ofproto-dpif-upcall: Fix sparse warning.
Ethan Jackson
ethan at nicira.com
Tue Aug 13 00:49:19 UTC 2013
Acked-by: Ethan Jackson <ethan at nicira.com>
We've really got to get sparse to work with clang, this sort of thing
is going to get annoying. C'est la vie.
Ethan
On Tue, Aug 13, 2013 at 6:54 AM, Ben Pfaff <blp at nicira.com> wrote:
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
> ofproto/ofproto-dpif-upcall.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c
> index 55ada89..b451f1d 100644
> --- a/ofproto/ofproto-dpif-upcall.c
> +++ b/ofproto/ofproto-dpif-upcall.c
> @@ -547,7 +547,7 @@ recv_upcalls(struct udpif *udpif)
> || type == OVS_KEY_ATTR_UDP) {
> if (nl_attr_get_size(nla) == 4) {
> ovs_be32 attr = nl_attr_get_be32(nla);
> - hash = mhash_add(hash, (uint32_t) attr);
> + hash = mhash_add(hash, (OVS_FORCE uint32_t) attr);
> n_bytes += 4;
> } else {
> VLOG_WARN("Netlink attribute with incorrect size.");
> --
> 1.7.10.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
X-CudaMail-Whitelist-To: dev at openvswitch.org
More information about the dev
mailing list