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

Ben Pfaff blp at ovn.org
Wed Jul 25 20:01:18 UTC 2018


On Wed, Jul 25, 2018 at 03:34:52PM -0400, Aaron Conole wrote:
> 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>

Thanks, applied to master.


More information about the dev mailing list