lkml.org 
[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Fix virt_to_phys() warnings
From
Date
Andrew Morton <akpm@linux-foundation.org> writes:
>
> #define virt_to_page(kaddr) pfn_to_page(PFN_DOWN(virt_to_phys(kaddr)))
>
> thereby passing an `unsigned long' where a void* was expected.
>
>
> So perhaps something along these lines:

I'm not quite sure it's the case on MIPS, but I remember on x86 one of
the reasons this was done as a macro was to avoid a include dependency
loop with struct page.

-Andi

--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-07-02 09:11    [from the cache]
©2003-2011 Jasper Spaans