android_kernel_oneplus_msm8998/drivers/infiniband/hw/cxgb4
Arnd Bergmann 5bef71a69f infiniband: cxgb4: use %pR format string for printing resources
commit 3021376d6d12dd1be8a0a13c16dae8badb7766fd upstream.

The cxgb4 prints an MMIO resource using the "0x%x" and "%p" format
strings on the length and start, respective, but that
triggers a compiler warning when using a 64-bit resource_size_t
on a 32-bit architecture:

drivers/infiniband/hw/cxgb4/device.c: In function 'c4iw_rdev_open':
drivers/infiniband/hw/cxgb4/device.c:807:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       (void *)pci_resource_start(rdev->lldi.pdev, 2),

This changes the format string to use %pR instead, which pretty-prints
the resource, avoids the warning and is shorter.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:48 +01:00
..
cm.c iw_cxgb4: Adds support for T6 adapter 2015-10-21 23:16:38 -04:00
cq.c iw_cxgb4: Only validate the MSN for successful completions 2018-01-02 20:33:22 +01:00
device.c infiniband: cxgb4: use %pR format string for printing resources 2018-02-25 11:03:48 +01:00
ev.c InfiniBand/RDMA changes for 3.20 merge window: 2015-02-21 12:53:21 -08:00
id_table.c
iw_cxgb4.h iw_cxgb4: Remove old FRWR API 2015-10-28 22:32:29 -04:00
Kconfig
Makefile
mem.c iw_cxgb4: Remove old FRWR API 2015-10-28 22:32:29 -04:00
provider.c iw_cxgb4: Remove old FRWR API 2015-10-28 22:32:29 -04:00
qp.c RDMA/iw_cxgb4: Fix bar2 virt addr calculation for T4 chips 2016-05-11 11:21:09 +02:00
resource.c
t4.h iw_cxgb4: Adds support for T6 adapter 2015-10-21 23:16:38 -04:00
t4fw_ri_api.h iw_cxgb4: Cleanup register defines/MACROS 2015-05-05 09:18:01 -04:00
user.h