[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Fix virt_to_phys() warnings
    Andrew Morton <> 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.


    -- -- Speaking for myself only.

     \ /
      Last update: 2009-07-02 09:11    [W:0.018 / U:86.760 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site