diff options
| author | Florian Fainelli <f.fainelli@gmail.com> | 2018-04-03 01:58:55 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-04-04 18:07:21 +0300 |
| commit | 6f89421180f15867dc1472d9edf68f82b0ed5ee6 (patch) | |
| tree | 418ca577e2df43873a6264cd5bf15f6a9e7572b6 /lib/mpi/mpi-internal.h | |
| parent | b41d7cfef5696b4fb17a122d16e2fbf2a3bc0d9e (diff) | |
| download | linux-6f89421180f15867dc1472d9edf68f82b0ed5ee6.tar.xz | |
net: bcmgenet: Fix sparse warnings in bcmgenet_put_tx_csum()
skb->protocol is a __be16 which we would be calling htons() against,
while this is not wrong per-se as it correctly results in swapping the
value on LE hosts, this still upsets sparse. Adopt a similar pattern to
what other drivers do and just assign ip_ver to skb->protocol, and then
use htons() against the different constants such that the compiler can
resolve the values at build time.
Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions
