Commit 8e87e014ec881ce353e1f43340157f519b5d9f30
Committed by
David S. Miller
1 parent
f4bc177f0f
Exists in
master
and in
7 other branches
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
include/linux/jhash.h
... | ... | @@ -84,7 +84,7 @@ |
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 |