• Linus Walleij's avatar
    ARC: init: Pass a pointer to virt_to_pfn() in init · c8092025
    Linus Walleij authored
    Functions that work on a pointer to virtual memory such as
    virt_to_pfn() and users of that function such as
    virt_to_page() are supposed to pass a pointer to virtual
    memory, ideally a (void *) or other pointer. However since
    many architectures implement virt_to_pfn() as a macro,
    this function becomes polymorphic and accepts both a
    (unsigned long) and a (void *).
    
    Fix up the offending call in arch/arc with an explicit cast.
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    c8092025
init.c 5.38 KB