提交 23721754 编写于 作者: F Francesco Fusco 提交者: David S. Miller

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: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NFrancesco Fusco <ffusco@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 020e867c
#ifndef __ASM_GENERIC_HASH_H #ifndef __ASM_GENERIC_HASH_H
#define __ASM_GENERIC_HASH_H #define __ASM_GENERIC_HASH_H
struct arch_hash_ops; struct fast_hash_ops;
static inline void setup_arch_fast_hash(struct arch_hash_ops *ops) static inline void setup_arch_fast_hash(struct fast_hash_ops *ops)
{ {
} }
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/jhash.h> #include <linux/jhash.h>
#include <linux/hash.h> #include <linux/hash.h>
#include <linux/cache.h>
static struct fast_hash_ops arch_hash_ops __read_mostly = { static struct fast_hash_ops arch_hash_ops __read_mostly = {
.hash = jhash, .hash = jhash,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册