virt: vbox: use %pap format for printing resource_size_t
authorArnd Bergmann <arnd@arndb.de>
Thu, 21 Dec 2017 16:15:18 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Dec 2017 17:06:59 +0000 (18:06 +0100)
commit0b598e4f877ba28603985031b98d4d592464ade7
treede12d7e6f73f80b95eba54a9d7349eba119fe2fa
parent1443f5b4fb451fdc894e4845ca67b370ed897a94
virt: vbox: use %pap format for printing resource_size_t

resource_size_t may be larger than pointers depending on configuration,
so we can run into this build warning:

drivers/virt/vboxguest/vboxguest_linux.c: In function 'vbg_pci_probe':
drivers/virt/vboxguest/vboxguest_linux.c:295:4: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
drivers/virt/vboxguest/vboxguest_linux.c:367:4: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

This uses the special %pap to print the address by reference.

Fixes: 0ba002bc4393 ("virt: Add vboxguest driver for Virtual Box Guest integration")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/vboxguest/vboxguest_linux.c