Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[JHASH]: Use const in jhash2

Use const to avoid forcing users to cast const data.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Patrick McHardy and committed by
David S. Miller
8e87e014 f4bc177f

+1 -1
+1 -1
include/linux/jhash.h
··· 84 84 /* A special optimized version that handles 1 or more of u32s. 85 85 * The length parameter here is the number of u32s in the key. 86 86 */ 87 - static inline u32 jhash2(u32 *k, u32 length, u32 initval) 87 + static inline u32 jhash2(const u32 *k, u32 length, u32 initval) 88 88 { 89 89 u32 a, b, c, len; 90 90