Skip to content

Commit cc68e3b

Browse files
akpm00torvalds
authored andcommitted
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>
1 parent 3c7b204 commit cc68e3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/fscache/object-list.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static struct fscache_object *fscache_objlist_lookup(loff_t *_pos)
103103
/* banners (can't represent line 0 by pos 0 as that would involve
104104
* returning a NULL pointer) */
105105
if (pos == 0)
106-
return (struct fscache_object *) ++(*_pos);
106+
return (struct fscache_object *)(long)++(*_pos);
107107
if (pos < 3)
108108
return (struct fscache_object *)pos;
109109

0 commit comments

Comments
 (0)