From mboxrd@z Thu Jan 1 00:00:00 1970 From: rjui@broadcom.com (Ray Jui) Date: Tue, 15 Sep 2015 17:39:22 -0700 Subject: [PATCH 8/8] PCI: iproc: Fix compile warnings In-Reply-To: <1442363962-29805-1-git-send-email-rjui@broadcom.com> References: <1442363962-29805-1-git-send-email-rjui@broadcom.com> Message-ID: <1442363962-29805-9-git-send-email-rjui@broadcom.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org There are several compile warnings in pcie-iproc.c related to the printing of a size_t value. This is a 32bit value on arm, and 64bit on arm64. However, the printks are for 64bit values (thus the warning). Using the %pap printk for these values (per Documentation/printk-formats.txt) corrects the issue. Signed-off-by: Jon Mason --- drivers/pci/host/pcie-iproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c index 2ba3c4b..f3481dd 100644 --- a/drivers/pci/host/pcie-iproc.c +++ b/drivers/pci/host/pcie-iproc.c @@ -244,15 +244,15 @@ static int iproc_pcie_setup_ob(struct iproc_pcie *pcie, u64 axi_addr, if (size > max_size) { dev_err(pcie->dev, - "res size 0x%llx exceeds max supported size 0x%llx\n", - (u64)size, max_size); + "res size 0x%pap exceeds max supported size 0x%llx\n", + &size, max_size); return -EINVAL; } if (size % ob->window_size) { dev_err(pcie->dev, - "res size 0x%llx needs to be multiple of " - "window size 0x%llx\n", (u64)size, ob->window_size); + "res size %pap needs to be multiple of window size %pap\n", + &size, &ob->window_size); return -EINVAL; } -- 1.9.1