From: Andrew Morton <akpm@linux-foundation.org>
Date: Wed, 26 May 2010 06:43:02 +0000 (-0700)
Subject: fs/fscache/object-list.c: fix warning on 32-bit
X-Git-Tag: firefly_0821_release~9833^2~1871
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cc68e3be7412baaa1ea2a2df9e88770f1753da78;p=firefly-linux-kernel-4.4.55.git

fs/fscache/object-list.c: fix warning on 32-bit

fs/fscache/object-list.c: In function 'fscache_objlist_lookup':
fs/fscache/object-list.c:105: warning: cast to pointer from integer of different size

Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

diff --git a/fs/fscache/object-list.c b/fs/fscache/object-list.c
index 1e1f286dd70e..4a8eb31c5338 100644
--- a/fs/fscache/object-list.c
+++ b/fs/fscache/object-list.c
@@ -103,7 +103,7 @@ static struct fscache_object *fscache_objlist_lookup(loff_t *_pos)
 	/* banners (can't represent line 0 by pos 0 as that would involve
 	 * returning a NULL pointer) */
 	if (pos == 0)
-		return (struct fscache_object *) ++(*_pos);
+		return (struct fscache_object *)(long)++(*_pos);
 	if (pos < 3)
 		return (struct fscache_object *)pos;