Skip to content

Commit

Permalink
lib: hash: follow-up fixups for arch hash
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Francesco Fusco authored and davem330 committed Dec 19, 2013
1 parent 020e867 commit 2372175
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-generic/hash.h
Original file line number Diff line number Diff line change
@@ -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)
{
}

Expand Down
1 change: 1 addition & 0 deletions lib/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2372175

Please sign in to comment.