diff options
author | Patrick McHardy <kaber@trash.net> | 2007-03-14 19:42:29 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:52 -0400 |
commit | 8e87e014ec881ce353e1f43340157f519b5d9f30 (patch) | |
tree | 694f65663570254f706ab328cf303cfd270cf74d | |
parent | f4bc177f0ff0bf41b178452877762a9f0184d1a1 (diff) |
[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>
-rw-r--r-- | include/linux/jhash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/jhash.h b/include/linux/jhash.h index 82c7ae412eec..2a2f99fbcb16 100644 --- a/include/linux/jhash.h +++ b/include/linux/jhash.h | |||
@@ -84,7 +84,7 @@ static inline u32 jhash(const void *key, u32 length, u32 initval) | |||
84 | /* A special optimized version that handles 1 or more of u32s. | 84 | /* A special optimized version that handles 1 or more of u32s. |
85 | * The length parameter here is the number of u32s in the key. | 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 | u32 a, b, c, len; | 89 | u32 a, b, c, len; |
90 | 90 | ||