[PATCH] typeof __page_to_pfn with SPARSEMEM=y
authorRandy Dunlap <randy.dunlap@oracle.com>
Sat, 10 Feb 2007 09:42:59 +0000 (01:42 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:17 +0000 (10:51 -0800)
commitf05b6284ee5d3be51ebe22284fc4b25fc586f380
tree05624a17093734a56797cc0ec1757fbd74b905f8
parent5a88a13d0624769088ae220e40c2f542f1661eb3
[PATCH] typeof __page_to_pfn with SPARSEMEM=y

With CONFIG_SPARSEMEM=y:

mm/rmap.c:579: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'int'

Make __page_to_pfn() return unsigned long.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/memory_model.h