[ovs-dev] [PATCH v2] tc: Fix sparse warnings.

Aaron Conole aconole at redhat.com
Wed Jul 25 19:34:52 UTC 2018


Ben Pfaff <blp at ovn.org> writes:

> Fixes the following warnings:
>
>     ../lib/tc.c:817:37: error: incorrect type in assignment (different base types)
>     ../lib/tc.c:817:37:    expected restricted ovs_be16 [usertype] vlan_push_tpid
>     ../lib/tc.c:817:37:    got unsigned short
>     ../lib/tc.c:1522:54: error: incorrect type in argument 2 (different base types)
>     ../lib/tc.c:1522:54:    expected unsigned short [unsigned] [usertype] tpid
>     ../lib/tc.c:1522:54:    got restricted ovs_be16 [usertype] vlan_push_tpid
>
> CC: Jianbo Liu <jianbol at mellanox.com>
> CC: Simon Horman <simon.horman at netronome.com>
> Fixes: 61e8655cfc7a ("tc: Add VLAN tpid for push action")
> Signed-off-by: Ben Pfaff <blp at ovn.org>
> ---

Looks good - passed with sparse 0.5.2

Acked-by: Aaron Conole <aconole at redhat.com>


More information about the dev mailing list