projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66dc81e
)
gre: fix sparse warning
author
stephen hemminger
<shemminger@vyatta.com>
Mon, 1 Oct 2012 05:21:14 +0000
(
05:21
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 1 Oct 2012 21:35:31 +0000
(17:35 -0400)
Use be16 consistently when looking at flags.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ip_gre.c
b/net/ipv4/ip_gre.c
index b1871d993d226145e7faef3e866219dad56e352e..7240f8e2dd4511dde4de0bd08290bb718eab140f 100644
(file)
--- a/
net/ipv4/ip_gre.c
+++ b/
net/ipv4/ip_gre.c
@@
-222,7
+222,7
@@
static struct rtnl_link_stats64 *ipgre_get_stats64(struct net_device *dev,
/* Does key in tunnel parameters match packet */
static bool ipgre_key_match(const struct ip_tunnel_parm *p,
- __
u32
flags, __be32 key)
+ __
be16
flags, __be32 key)
{
if (p->i_flags & GRE_KEY) {
if (flags & GRE_KEY)
@@
-237,7
+237,7
@@
static bool ipgre_key_match(const struct ip_tunnel_parm *p,
static struct ip_tunnel *ipgre_tunnel_lookup(struct net_device *dev,
__be32 remote, __be32 local,
- __
u32
flags, __be32 key,
+ __
be16
flags, __be32 key,
__be16 gre_proto)
{
struct net *net = dev_net(dev);