From: Francesco Fusco Date: Wed, 18 Dec 2013 15:05:48 +0000 (+0100) Subject: lib: hash: follow-up fixups for arch hash X-Git-Tag: v4.14-rc1~8188^2~438 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=237217546d44fe06c16b8895eecaef22f18ba5ee;p=platform%2Fkernel%2Flinux-rpi.git lib: hash: follow-up fixups for arch hash This patch adds the include file to pull in __read_mostly on some architectures e.g. ppc and also fixes up signatures in generic asm. Reported-by: Fengguang Wu Signed-off-by: Francesco Fusco Signed-off-by: David S. Miller --- diff --git a/include/asm-generic/hash.h b/include/asm-generic/hash.h index 05cb342..b631284 100644 --- a/include/asm-generic/hash.h +++ b/include/asm-generic/hash.h @@ -1,8 +1,8 @@ #ifndef __ASM_GENERIC_HASH_H #define __ASM_GENERIC_HASH_H -struct arch_hash_ops; -static inline void setup_arch_fast_hash(struct arch_hash_ops *ops) +struct fast_hash_ops; +static inline void setup_arch_fast_hash(struct fast_hash_ops *ops) { } diff --git a/lib/hash.c b/lib/hash.c index b89f06a..fea973f 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -12,6 +12,7 @@ #include #include +#include static struct fast_hash_ops arch_hash_ops __read_mostly = { .hash = jhash,