]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_vlan: declare push_vid with host byte order
authorDavide Caratti <dcaratti@redhat.com>
Fri, 23 Mar 2018 18:31:30 +0000 (19:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Mar 2018 01:54:07 +0000 (21:54 -0400)
commit3ac1c775ddf9a7d8b7447a996ec2c6a9b9abe81d
tree33d5ac08e6b6186b34c2539a4b0f07b30e6039d1
parent89d8d24b1f1213cdc8a2e32a49d757ef5e7582fe
net/sched: act_vlan: declare push_vid with host byte order

use u16 in place of __be16 to suppress the following sparse warnings:

 net/sched/act_vlan.c:150:26: warning: incorrect type in assignment (different base types)
 net/sched/act_vlan.c:150:26: expected restricted __be16 [usertype] push_vid
 net/sched/act_vlan.c:150:26: got unsigned short
 net/sched/act_vlan.c:151:21: warning: restricted __be16 degrades to integer
 net/sched/act_vlan.c:208:26: warning: incorrect type in assignment (different base types)
 net/sched/act_vlan.c:208:26: expected unsigned short [unsigned] [usertype] tcfv_push_vid
 net/sched/act_vlan.c:208:26: got restricted __be16 [usertype] push_vid

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_vlan.c