diff options
author | Arnd Bergmann | 2017-12-21 17:15:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-12-21 18:06:59 +0100 |
commit | 0b598e4f877ba28603985031b98d4d592464ade7 (patch) | |
tree | de12d7e6f73f80b95eba54a9d7349eba119fe2fa /virt/kvm/vfio.c | |
parent | 1443f5b4fb451fdc894e4845ca67b370ed897a94 (diff) |
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>
Diffstat (limited to 'virt/kvm/vfio.c')
0 files changed, 0 insertions, 0 deletions