Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23721754 authored by Francesco Fusco's avatar Francesco Fusco Committed by David S. Miller
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarFrancesco Fusco <ffusco@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 020e867c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#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 −0
Original line number Diff line number Diff line
@@ -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,