From: Patrick McHardy Date: Wed, 14 Mar 2007 23:42:29 +0000 (-0700) Subject: [JHASH]: Use const in jhash2 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8e87e014ec881ce353e1f43340157f519b5d9f30;p=deliverable%2Flinux.git [JHASH]: Use const in jhash2 Use const to avoid forcing users to cast const data. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- 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) /* 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;