public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] swiotlb: fix gcc printk warning
@ 2005-01-14 20:39 Randy.Dunlap
  2005-01-15  0:11 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Randy.Dunlap @ 2005-01-14 20:39 UTC (permalink / raw)
  To: akpm, lkml, ak, tony.luck

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]


swiotlb: Fix gcc printk format warning on x86_64, OK for ia64:
arch/ia64/lib/swiotlb.c:351: warning: long unsigned int format, long 
long unsigned int arg (arg 2)

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
  arch/ia64/lib/swiotlb.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

---

[-- Attachment #2: swiotlb_printk.patch --]
[-- Type: text/x-patch, Size: 702 bytes --]


diff -Naurp ./arch/ia64/lib/swiotlb.c~swiotlb_types ./arch/ia64/lib/swiotlb.c
--- ./arch/ia64/lib/swiotlb.c~swiotlb_types	2005-01-10 10:38:39.310529184 -0800
+++ ./arch/ia64/lib/swiotlb.c	2005-01-14 11:53:17.991480232 -0800
@@ -347,8 +347,8 @@ swiotlb_alloc_coherent(struct device *hw
 
 	/* Confirm address can be DMA'd by device */
 	if (address_needs_mapping(hwdev, dev_addr)) {
-		printk("hwdev DMA mask = 0x%016lx, dev_addr = 0x%016lx\n",
-		       *hwdev->dma_mask, dev_addr);
+		printk("hwdev DMA mask = 0x%016Lx, dev_addr = 0x%016lx\n",
+		       (unsigned long long)*hwdev->dma_mask, dev_addr);
 		panic("swiotlb_alloc_coherent: allocated memory is out of "
 		      "range for device");
 	}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] swiotlb: fix gcc printk warning
  2005-01-14 20:39 [PATCH] swiotlb: fix gcc printk warning Randy.Dunlap
@ 2005-01-15  0:11 ` Andi Kleen
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2005-01-15  0:11 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: akpm, lkml, ak, tony.luck

On Fri, Jan 14, 2005 at 12:39:12PM -0800, Randy.Dunlap wrote:
> 
> swiotlb: Fix gcc printk format warning on x86_64, OK for ia64:
> arch/ia64/lib/swiotlb.c:351: warning: long unsigned int format, long 
> long unsigned int arg (arg 2)

I applied to my tree for now, thanks, although Tony will likely
want to push it.

-Andi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] swiotlb: fix gcc printk warning
@ 2005-01-15  0:17 Luck, Tony
  0 siblings, 0 replies; 3+ messages in thread
From: Luck, Tony @ 2005-01-15  0:17 UTC (permalink / raw)
  To: Andi Kleen, Randy.Dunlap; +Cc: akpm, lkml

>> swiotlb: Fix gcc printk format warning on x86_64, OK for ia64:
>> arch/ia64/lib/swiotlb.c:351: warning: long unsigned int format, long 
>> long unsigned int arg (arg 2)
>
>I applied to my tree for now, thanks, although Tony will likely
>want to push it.

I've put in my tree too.  I'll push to Linus with the next batch
of ia64 bits next week.

Thanks

-Tony

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-15  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 20:39 [PATCH] swiotlb: fix gcc printk warning Randy.Dunlap
2005-01-15  0:11 ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2005-01-15  0:17 Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox