Skip to contentSkip to conversation

lib: hash: follow-up fixups for arch hash

PATCH New Francesco Fusco 1 participant 1 message Dec 18, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/asm-generic/hash.h | 4 ++--
 lib/hash.c                 | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
include/asm-generic/hash.h +2 -2
index 05cb342..b631284 100644
@@ -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)
 {
 }
 
lib/hash.c +1 -0
index b89f06a..fea973f 100644
@@ -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,
Signature · 1 line
1.8.3.1