• Paul Mundt's avatar
    nommu: provide follow_pfn(). · dfc2f91a
    Paul Mundt authored
    With the introduction of follow_pfn() as an exported symbol, modules have
    begun making use of it. Unfortunately this was not reflected on nommu at
    the time, so the in-tree users have subsequently all blown up with link
    errors there.
    
    This provides a simple follow_pfn() that just returns addr >> PAGE_SHIFT,
    which will do the right thing on nommu. There is no need to do range
    checking within the vma, as the find_vma() case will already take care of
    this.
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    dfc2f91a
nommu.c 46.4 KB