Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <fengguang.wu@intel.com>
Signed-off-by: Francesco Fusco <ffusco@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Francesco Fusco and committed by
David S. Miller
23721754 020e867c

+3 -2
+2 -2
include/asm-generic/hash.h
··· 1 1 #ifndef __ASM_GENERIC_HASH_H 2 2 #define __ASM_GENERIC_HASH_H 3 3 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) 6 6 { 7 7 } 8 8
+1
lib/hash.c
··· 12 12 13 13 #include <linux/jhash.h> 14 14 #include <linux/hash.h> 15 + #include <linux/cache.h> 15 16 16 17 static struct fast_hash_ops arch_hash_ops __read_mostly = { 17 18 .hash = jhash,