提交 f2a031b6 编写于 作者: G George Spelvin 提交者: Linus Torvalds

Rename other copy of hash_string to hashlen_string

The original name was simply hash_string(), but that conflicted with a
function with that name in drivers/base/power/trace.c, and I decided
that calling it "hashlen_" was better anyway.

But you have to do it in two places.

[ This caused build errors for architectures that don't define
  CONFIG_DCACHE_WORD_ACCESS   - Linus ]
Signed-off-by: NGeorge Spelvin <linux@sciencehorizons.net>
Reported-by: NGuenter Roeck <linux@roeck-us.net>
Fixes: fcfd2fbf ("fs/namei.c: Add hashlen_string() function")
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 037369b8
...@@ -1962,7 +1962,7 @@ unsigned int full_name_hash(const char *name, unsigned int len) ...@@ -1962,7 +1962,7 @@ unsigned int full_name_hash(const char *name, unsigned int len)
EXPORT_SYMBOL(full_name_hash); EXPORT_SYMBOL(full_name_hash);
/* Return the "hash_len" (hash and length) of a null-terminated string */ /* Return the "hash_len" (hash and length) of a null-terminated string */
u64 hash_string(const char *name) u64 hashlen_string(const char *name)
{ {
unsigned long hash = init_name_hash(); unsigned long hash = init_name_hash();
unsigned long len = 0, c; unsigned long len = 0, c;
...@@ -1975,7 +1975,7 @@ u64 hash_string(const char *name) ...@@ -1975,7 +1975,7 @@ u64 hash_string(const char *name)
} while (c); } while (c);
return hashlen_create(end_name_hash(hash), len); return hashlen_create(end_name_hash(hash), len);
} }
EXPORT_SYMBOL(hash_string); EXPORT_SYMBOL(hashlen_string);
/* /*
* We know there's a real path component here of at least * We know there's a real path component here of at least
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册