lkml.org 
[lkml]   [2017]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH] ksm: fasthash() can be static

Fixes: 038adb295b0c ("ksm: replace jhash2 with faster hash")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
ksm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/ksm.c b/mm/ksm.c
index ac2aa49..1c2619cbc3 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -374,7 +374,7 @@ static void __init choice_fastest_hash(void)
kfree(page);
}

-unsigned long fasthash(const void *input, size_t length)
+static unsigned long fasthash(const void *input, size_t length)
{
unsigned long checksum = 0;

\
 
 \ /
  Last update: 2017-12-31 13:38    [W:0.033 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site