]> git.baikalelectronics.ru Git - kernel.git/commit
fou: fix some member types in guehdr
authorXin Long <lucien.xin@gmail.com>
Sun, 10 Dec 2017 08:56:00 +0000 (16:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 19:10:06 +0000 (14:10 -0500)
commitbca55b80470b78d0a38db44aaadc5ba2aef45770
treefb2ee0b811b8cf511f1d42bab3ab34b5f9d0d825
parent7d1e67fbc43a012a4fa2b5219eac5c7c9977063f
fou: fix some member types in guehdr

guehdr struct is used to build or parse gue packets, which
are always in big endian. It's better to define all guehdr
members as __beXX types.

Also, in validate_gue_flags it's not good to use a __be32
variable for both Standard flags(__be16) and Private flags
(__be32), and pass it to other funcions.

This patch could fix a bunch of sparse warnings from fou.

Fixes: 11bd45bc7a19 ("gue: Add infrastructure for flags and options")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gue.h