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 <[email protected]>
Signed-off-by: Francesco Fusco <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Francesco Fusco authored and David S. Miller committed 2013-12-19 00:14:53 -05:00
1 parent 020e867c75
commit 237217546d
2 files changed
+3 -2

No files matched your search

+2 -2
View 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)
{
}
+1
View 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,