Commit-ID: 75bd720d9cc5325c9627524878b6d92df18c4922 Gitweb: http://git.kernel.org/tip/75bd720d9cc5325c9627524878b6d92df18c4922 Author: Thomas Gleixner <tglx@xxxxxxxxxxxxx> AuthorDate: Mon, 3 Nov 2014 17:39:04 +0100 Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx> CommitDate: Mon, 3 Nov 2014 17:39:04 +0100 x86, PCI, ACPI: Add proper type casts to printk arguments On 32bit the resource_size_t is u32 so gcc complains stupidly: arch/x86/pci/acpi.c:271:4: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘resource_size_t’ [-Wformat=] Fixes: commit e22ce93870de ("x86, PCI, ACPI: Kill private function resource_to_addr() in arch/x86/pci/acpi.c" Reported-by: Borislav Petkov <bp@xxxxxxxxx> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Jiang Liu <jiang.liu@xxxxxxxxxxxxxxx> --- arch/x86/pci/acpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 3f72d93..151dab3 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c @@ -270,12 +270,13 @@ static acpi_status setup_resource(struct acpi_resource *acpi_res, void *data) if (r.end <= r.start) { dev_info(&info->bridge->dev, "host bridge window [%#llx-%#llx] (ignored, not CPU addressable)\n", - r.start, orig_end); + (unsigned long long)r.start, orig_end); return AE_OK; } else if (orig_end != r.end) { dev_info(&info->bridge->dev, "host bridge window [%#llx-%#llx] ([%#llx-%#llx] ignored, not CPU addressable)\n", - r.start, orig_end, r.end + 1, orig_end); + (unsigned long long)r.start, orig_end, + (unsigned long long)r.end + 1, orig_end); } } -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |