]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
lib: hash: follow-up fixups for arch hash
authorFrancesco Fusco <ffusco@redhat.com>
Wed, 18 Dec 2013 15:05:48 +0000 (16:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Dec 2013 05:14:53 +0000 (00:14 -0500)
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 <fengguang.wu@intel.com>
Signed-off-by: Francesco Fusco <ffusco@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/asm-generic/hash.h
lib/hash.c

index 05cb3421ee7e5cbf3c762821cf049016dbc0a3ab..b6312843dbd92cd6bf1a636d01212960759ccf71 100644 (file)
@@ -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)
 {
 }
 
index b89f06a2d6062598f5d541d65c1a797be295f56f..fea973f4bd57ae4f4638817becebe016fa1dd716 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <linux/jhash.h>
 #include <linux/hash.h>
+#include <linux/cache.h>
 
 static struct fast_hash_ops arch_hash_ops __read_mostly = {
        .hash  = jhash,