Commit 8437e7610c2d3e06f87f71fb82e10ed4b291812a
Committed by
David S. Miller
1 parent
4c67525849
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
vti: fix sparse bit endian warnings
Use be32_to_cpu instead of htonl to keep sparse happy. Signed-off-by: Stephen Hemminger <shemminger@vyatta.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
net/ipv4/ip_vti.c
... | ... | @@ -374,7 +374,7 @@ |
374 | 374 | |
375 | 375 | memset(&fl4, 0, sizeof(fl4)); |
376 | 376 | flowi4_init_output(&fl4, tunnel->parms.link, |
377 | - htonl(tunnel->parms.i_key), RT_TOS(tos), | |
377 | + be32_to_cpu(tunnel->parms.i_key), RT_TOS(tos), | |
378 | 378 | RT_SCOPE_UNIVERSE, |
379 | 379 | IPPROTO_IPIP, 0, |
380 | 380 | dst, tiph->saddr, 0, 0); |
... | ... | @@ -441,7 +441,7 @@ |
441 | 441 | struct flowi4 fl4; |
442 | 442 | memset(&fl4, 0, sizeof(fl4)); |
443 | 443 | flowi4_init_output(&fl4, tunnel->parms.link, |
444 | - htonl(tunnel->parms.i_key), | |
444 | + be32_to_cpu(tunnel->parms.i_key), | |
445 | 445 | RT_TOS(iph->tos), RT_SCOPE_UNIVERSE, |
446 | 446 | IPPROTO_IPIP, 0, |
447 | 447 | iph->daddr, iph->saddr, 0, 0); |