Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0797cbd8 authored by Lance Richardson's avatar Lance Richardson Committed by David S. Miller
Browse files

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: default avatarLance Richardson <lrichard@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30d3d83a
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -325,7 +325,8 @@ extern u32 fib_multipath_secret __read_mostly;


static inline int fib_multipath_hash(__be32 saddr, __be32 daddr)
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);
void fib_select_multipath(struct fib_result *res, int hash);