diff options
author | Lance Richardson <lrichard@redhat.com> | 2016-01-06 17:22:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-08 21:30:43 -0500 |
commit | 0797cbd8e2741c69a4d416d8f669639a064db8d1 (patch) | |
tree | 620a7224a4852ac094e08079ea503bce566cb6ff /include/net/ip_fib.h | |
parent | 30d3d83a7dcef7a26c5c48e548bdd6a76754cbcd (diff) | |
download | op-kernel-dev-0797cbd8e2741c69a4d416d8f669639a064db8d1.zip op-kernel-dev-0797cbd8e2741c69a4d416d8f669639a064db8d1.tar.gz |
ipv4: eliminate endianness warnings in ip_fib.h
fib_multipath_hash() computes a hash using __be32 values, force
cast these to u32 to pacify sparse.
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 9f4df68..7029527 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -325,7 +325,8 @@ extern u32 fib_multipath_secret __read_mostly; static inline int fib_multipath_hash(__be32 saddr, __be32 daddr) { - return jhash_2words(saddr, daddr, fib_multipath_secret) >> 1; + return jhash_2words((__force u32)saddr, (__force u32)daddr, + fib_multipath_secret) >> 1; } void fib_select_multipath(struct fib_result *res, int hash); |