]> 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)
commita819e0c52ecff6f1a0b1e5c542143fb43479e367
treefb2ee0b811b8cf511f1d42bab3ab34b5f9d0d825
parentf605ce11f380f454d33a3dbd1d15b8ae22043b17
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: 9bfee5ecb3cf ("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