diff options
| author | David S. Miller <davem@davemloft.net> | 2016-01-09 05:30:50 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-01-09 05:30:50 +0300 |
| commit | b351a0633e771676f94262a209ae28699eb26038 (patch) | |
| tree | cf1a9892c9950d1060f8dcbc6d62c35ad51faa18 /include | |
| parent | 9b59377b756670d9516e72276b6c4efa92137b5f (diff) | |
| parent | ad64b8be71e3a37ea43745aa69817c4bcd489987 (diff) | |
| download | linux-b351a0633e771676f94262a209ae28699eb26038.tar.xz | |
Merge branch 'net-sparse-warnings'
Lance Richardson says:
====================
ipv4: fix various issues reported by sparse
This trivial patch series addresses a number of endianness- and
lock-related issues reported by sparse.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -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 9f4df68105ab..7029527725dd 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); |
