From patchwork Sat Nov 13 16:44:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 322452 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oADGjUWh003932 for ; Sat, 13 Nov 2010 16:45:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755120Ab0KMQpQ (ORCPT ); Sat, 13 Nov 2010 11:45:16 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:33178 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754736Ab0KMQpP (ORCPT ); Sat, 13 Nov 2010 11:45:15 -0500 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oADGj2TZ027364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 13 Nov 2010 16:45:04 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oADFk7CQ014216; Sat, 13 Nov 2010 16:45:02 GMT Received: from abhmt018.oracle.com by acsmt353.oracle.com with ESMTP id 775472081289666694; Sat, 13 Nov 2010 08:44:54 -0800 Received: from chimera.site (/173.50.240.230) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 13 Nov 2010 08:44:54 -0800 Date: Sat, 13 Nov 2010 08:44:33 -0800 From: Randy Dunlap To: Stephen Rothwell , linux-pci@vger.kernel.org, akpm Cc: linux-next@vger.kernel.org, LKML , Jesse Barnes Subject: [PATCH -next] pci-sysfs: fix printk warnings Message-Id: <20101113084433.67a92e8f.randy.dunlap@oracle.com> In-Reply-To: <20101112130547.c2a3c2c1.sfr@canb.auug.org.au> References: <20101112130547.c2a3c2c1.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 13 Nov 2010 16:45:31 +0000 (UTC) --- linux-next-20101112.orig/drivers/pci/pci-sysfs.c +++ linux-next-20101112/drivers/pci/pci-sysfs.c @@ -754,7 +754,8 @@ pci_mmap_resource(struct kobject *kobj, "at page 0x%08lx on %s BAR %d (start 0x%16Lx, size 0x%16Lx)\n", current->comm, vma->vm_end-vma->vm_start, vma->vm_pgoff, pci_name(pdev), i, - pci_resource_start(pdev, i), pci_resource_len(pdev, i)); + (u64)pci_resource_start(pdev, i), + (u64)pci_resource_len(pdev, i)); return -EINVAL; }