]> git.hungrycats.org Git - linux/commit
[PATCH] call virt_to_page() with void*, not UL
authorDave Hansen <haveblue@us.ibm.com>
Fri, 27 Aug 2004 03:35:14 +0000 (20:35 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 03:35:14 +0000 (20:35 -0700)
commit3d5dc24c21c7240a1f38076786c70b466936a088
tree471f6e35ab2bf5655f0a4772c7d27eb2ee52e84e
parent0d62f010d991a32153c23e7dad5283723b60c7f8
[PATCH] call virt_to_page() with void*, not UL

I'm sure there's a good reason for these functions to take virtual addresses
as unsigned longs, so suppress the warnings and cast them to the proper types
before calling the virt/phys conversion functions

A perfectly acceptable alternative would be to go and change free_pages() to
stop taking unsigned longs for virtual addresses, but this has a much smaller
impact.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c