]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rds: Fix endianness annotation of jhash wrappers
authorUjwal Kundur <ujwal.kundur@gmail.com>
Wed, 20 Aug 2025 17:55:48 +0000 (23:25 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Aug 2025 23:44:34 +0000 (16:44 -0700)
commit92b925297a2f233e0b16694df7b524360b8abb93
tree12aa1d75f5060ade0a2240375504b1a181ac7aa7
parent9308987803bbf289d088d5266c5c3598e3fb3ddf
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: Ujwal Kundur <ujwal.kundur@gmail.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Link: https://patch.msgid.link/20250820175550.498-3-ujwal.kundur@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rds/connection.c