• Linus Walleij's avatar
    xen/netback: Pass (void *) to virt_to_page() · e36bfc0b
    Linus Walleij authored
    virt_to_page() takes a virtual address as argument but
    the driver passes an unsigned long, which works because
    the target platform(s) uses polymorphic macros to calculate
    the page.
    
    Since many architectures implement virt_to_pfn() as
    a macro, this function becomes polymorphic and accepts both a
    (unsigned long) and a (void *).
    
    Fix this up by an explicit (void *) cast.
    
    Cc: Wei Liu <wei.liu@kernel.org>
    Cc: Paul Durrant <paul@xen.org>
    Cc: xen-devel@lists.xenproject.org
    Cc: netdev@vger.kernel.org
    Acked-by: default avatarWei Liu <wei.liu@kernel.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    e36bfc0b
netback.c 46.1 KB