Netdev List
 help / color / mirror / Atom feed
* Sparse warnings in IPV6 GRE
@ 2012-10-10 18:54 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2012-10-10 18:54 UTC (permalink / raw)
  To: Dmitry Kozlov; +Cc: netdev

Looks like IPV6 GRE is probably not byte-endian safe?

  CHECK   net/ipv6/ip6_gre.c
net/ipv6/ip6_gre.c:472:37: warning: restricted __be32 degrades to integer
net/ipv6/ip6_gre.c:484:23: warning: restricted __be32 degrades to integer
net/ipv6/ip6_gre.c:964:26: warning: incorrect type in assignment (different base types)
net/ipv6/ip6_gre.c:964:26:    expected unsigned char [unsigned] [addressable] [usertype] flowic_proto
net/ipv6/ip6_gre.c:964:26:    got restricted __be16 [usertype] protocol
net/ipv6/ip6_gre.c:1510:33: warning: incorrect type in assignment (different base types)
net/ipv6/ip6_gre.c:1510:33:    expected restricted __be32 [usertype] flowinfo
net/ipv6/ip6_gre.c:1510:33:    got unsigned int

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-10 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-10 18:54 Sparse warnings in IPV6 GRE Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox