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

Ben Pfaff blp at ovn.org
Wed Jul 25 18:19:17 UTC 2018

On Wed, Jul 25, 2018 at 11:06:55AM -0700, Ben Pfaff wrote:
> 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>

Oops, this is not complete.  I sent v2.

More information about the dev mailing list