Skip to content

Commit 2372175

Browse files
Francesco Fuscodavem330
authored andcommitted
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]>
1 parent 020e867 commit 2372175

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/asm-generic/hash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef __ASM_GENERIC_HASH_H
22
#define __ASM_GENERIC_HASH_H
33

4-
struct arch_hash_ops;
5-
static inline void setup_arch_fast_hash(struct arch_hash_ops *ops)
4+
struct fast_hash_ops;
5+
static inline void setup_arch_fast_hash(struct fast_hash_ops *ops)
66
{
77
}
88

lib/hash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <linux/jhash.h>
1414
#include <linux/hash.h>
15+
#include <linux/cache.h>
1516

1617
static struct fast_hash_ops arch_hash_ops __read_mostly = {
1718
.hash = jhash,

0 commit comments

Comments
 (0)