Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew Morton and committed by
Linus Torvalds
cc68e3be 3c7b2045

+1 -1
+1 -1
fs/fscache/object-list.c
··· 103 103 /* banners (can't represent line 0 by pos 0 as that would involve 104 104 * returning a NULL pointer) */ 105 105 if (pos == 0) 106 - return (struct fscache_object *) ++(*_pos); 106 + return (struct fscache_object *)(long)++(*_pos); 107 107 if (pos < 3) 108 108 return (struct fscache_object *)pos; 109 109