]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-Broadcom-drivers-sparse-fixes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2018 15:07:21 +0000 (11:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2018 15:07:21 +0000 (11:07 -0400)
commited5d185730318f18ba9377246032b2c33bea52ca
tree60150b002c683c5c21d1001dce04f99d7cfdfffc
parent11ad55fe44a6b45779fd02e158c4a1f8d46af65d
parent30e75d0a94131159cce5029eef6c0317238d9d8a
Merge branch 'net-Broadcom-drivers-sparse-fixes'

Florian Fainelli says:

====================
net: Broadcom drivers sparse fixes

This patch series fixes the same warning reported by sparse in bcmsysport and
bcmgenet in the code that deals with inserting the TX checksum pointers:

drivers/net/ethernet/broadcom/bcmsysport.c:1155:26: warning: cast from restricted __be16
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26: warning: incorrect type in argument 1 (different base types)
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26:    expected unsigned short [unsigned] [usertype] val
drivers/net/ethernet/broadcom/bcmsysport.c:1155:26:    got restricted __be16 [usertype] protocol

This patch fixes both issues by using the same construct and not swapping
skb->protocol but instead the values we are checking against.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>