drm: Pass pointers to virt_to_page()
authorBen Hutchings <ben@decadent.org.uk>
Sun, 27 Oct 2013 21:52:39 +0000 (21:52 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 03:23:20 +0000 (13:23 +1000)
commite1e78533f2ddeabef5dc6545739211795ac4b822
tree42059a1288bbdc043da8674e285d25bcb1f3873c
parentbc212b9cf808add5b1e7a6913b10b1802c270c3c
drm: Pass pointers to virt_to_page()

Most architectures define virt_to_page() as a macro that casts its
argument such that an argument of type unsigned long will be accepted
without complaint.  However, the proper type is void *, and passing
unsigned long results in a warning on MIPS.

Compile-tested only.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_vm.c