From: akpm@linux-foundation.org Subject: [patch 15/17] drivers/scsi/mvsas.c: fix build warnings Date: Fri, 28 Mar 2008 14:48:42 -0700 Message-ID: <200803282148.m2SLmgoG012258@imap1.linux-foundation.org> Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:43841 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757348AbYC1V7G (ORCPT ); Fri, 28 Mar 2008 17:59:06 -0400 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James.Bottomley@HansenPartnership.com Cc: linux-scsi@vger.kernel.org, akpm@linux-foundation.org, jeff@garzik.org, kewei@marvell.com, oliver.pntr@gmail.com From: Andrew Morton powerpc: drivers/scsi/mvsas.c: In function 'mvs_update_phyinfo': drivers/scsi/mvsas.c:2536: warning: format '%llX' expects type 'long long unsigned int', but argument 5 has type 'u64' drivers/scsi/mvsas.c:2536: warning: format '%llX' expects type 'long long unsigned int', but argument 6 has type 'u64' we do not know what type the architecture uses to implement u64 hence we cannot print them directly. Cc: James Bottomley Cc: Oliver Pinter Cc: Ke Wei Cc: Jeff Garzik Signed-off-by: Andrew Morton --- drivers/scsi/mvsas.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/scsi/mvsas.c~drivers-scsi-mvsasc-fix-build-warnings drivers/scsi/mvsas.c --- a/drivers/scsi/mvsas.c~drivers-scsi-mvsasc-fix-build-warnings +++ a/drivers/scsi/mvsas.c @@ -2536,7 +2536,9 @@ static void mvs_update_phyinfo(struct mv dev_printk(KERN_DEBUG, &pdev->dev, "phy[%d] Get Attached Address 0x%llX ," " SAS Address 0x%llX\n", - i, phy->att_dev_sas_addr, phy->dev_sas_addr); + i, + (unsigned long long)phy->att_dev_sas_addr, + (unsigned long long)phy->dev_sas_addr); dev_printk(KERN_DEBUG, &pdev->dev, "Rate = %x , type = %d\n", sas_phy->linkrate, phy->phy_type); _