[ovs-git] [openvswitch/ovs] 10097f: tc: Fix sparse warnings.

GitHub noreply at github.com
Wed Jul 25 20:01:16 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 10097f3f5a6ab07e17ce6a982b2f6e239d159a7e
      https://github.com/openvswitch/ovs/commit/10097f3f5a6ab07e17ce6a982b2f6e239d159a7e
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-07-25 (Wed, 25 Jul 2018)

  Changed paths:
    M lib/tc.c

  Log Message:
  -----------
  tc: Fix sparse warnings.

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>
Acked-by: Aaron Conole <aconole at redhat.com>



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list