Commit 92b92529 authored by Ujwal Kundur's avatar Ujwal Kundur Committed by Jakub Kicinski
Browse files

rds: Fix endianness annotation of jhash wrappers



__ipv6_addr_jhash (wrapper around jhash2()) and __inet_ehashfn (wrapper
around jhash_3words()) work with u32 (host endian) values but accept big
endian inputs. Declare the local variables as big endian to avoid
unnecessary casts.

Flagged by Sparse.

Signed-off-by: default avatarUjwal Kundur <ujwal.kundur@gmail.com>
Reviewed-by: default avatarAllison Henderson <allison.henderson@oracle.com>
Link: https://patch.msgid.link/20250820175550.498-3-ujwal.kundur@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 93089878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment