projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4bc177
)
[JHASH]: Use const in jhash2
author
Patrick McHardy
<kaber@trash.net>
Wed, 14 Mar 2007 23:42:29 +0000
(16:42 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:25:52 +0000
(22:25 -0700)
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>
include/linux/jhash.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/jhash.h
b/include/linux/jhash.h
index 82c7ae412eece2f25ae413daf6f4d5794b60b92e..2a2f99fbcb16ef6336ee17e66f539b5c3d4f194e 100644
(file)
--- 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)
/* A special optimized version that handles 1 or more of u32s.
* The length parameter here is the number of u32s in the key.
*/
-static inline u32 jhash2(u32 *k, u32 length, u32 initval)
+static inline u32 jhash2(
const
u32 *k, u32 length, u32 initval)
{
u32 a, b, c, len;