summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/key.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-03-07 19:53:41 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-03-08 12:29:41 +0100
commitcb4f952db3a01a2d56eb17e0eb00ce99ae5f0f50 (patch)
treee89f82054ff0bfcb143a24ab621ac6d3a7261cb7 /fs/ubifs/key.h
parentUBIFS: improve find function interface (diff)
downloadlinux-cb4f952db3a01a2d56eb17e0eb00ce99ae5f0f50.tar.xz
linux-cb4f952db3a01a2d56eb17e0eb00ce99ae5f0f50.zip
UBIFS: amend key_hash return value
... which should be uint32_t, not int. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/key.h')
-rw-r--r--fs/ubifs/key.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ubifs/key.h b/fs/ubifs/key.h
index efb3430a2581..5fa27ea031ba 100644
--- a/fs/ubifs/key.h
+++ b/fs/ubifs/key.h
@@ -381,8 +381,8 @@ static inline ino_t key_inum_flash(const struct ubifs_info *c, const void *k)
* @c: UBIFS file-system description object
* @key: the key to get hash from
*/
-static inline int key_hash(const struct ubifs_info *c,
- const union ubifs_key *key)
+static inline uint32_t key_hash(const struct ubifs_info *c,
+ const union ubifs_key *key)
{
return key->u32[1] & UBIFS_S_KEY_HASH_MASK;
}
@@ -392,7 +392,7 @@ static inline int key_hash(const struct ubifs_info *c,
* @c: UBIFS file-system description object
* @k: the key to get hash from
*/
-static inline int key_hash_flash(const struct ubifs_info *c, const void *k)
+static inline uint32_t key_hash_flash(const struct ubifs_info *c, const void *k)
{
const union ubifs_key *key = k;