login
Header Space

 
 

Re: linux-next: Tree for April 10 (arch/x86)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Rothwell <sfr@...>, mingo <mingo@...>, tglx <tglx@...>
Cc: <linux-next@...>, LKML <linux-kernel@...>
Date: Thursday, April 10, 2008 - 6:09 pm

Has the printk format warning in arch/x86/mm/ioremap.c already been fixed
somewhere else (and not in linux-next merges)?

---
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix printk formats in x86/mm/ioremap.c:

next-20080410/arch/x86/mm/ioremap.c:137: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'resource_size_t'
next-20080410/arch/x86/mm/ioremap.c:188: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'resource_size_t'
next-20080410/arch/x86/mm/ioremap.c:188: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 arch/x86/mm/ioremap.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- next-20080410.orig/arch/x86/mm/ioremap.c
+++ next-20080410/arch/x86/mm/ioremap.c
@@ -134,7 +134,7 @@ static void __iomem *__ioremap(resource_
 
 	if (!phys_addr_valid(phys_addr)) {
 		printk(KERN_WARNING "ioremap: invalid physical address %llx\n",
-		       phys_addr);
+		       (unsigned long long)phys_addr);
 		WARN_ON_ONCE(1);
 		return NULL;
 	}
@@ -187,7 +187,8 @@ static void __iomem *__ioremap(resource_
 		     new_prot_val == _PAGE_CACHE_WB)) {
 			pr_debug(
 		"ioremap error for 0x%llx-0x%llx, requested 0x%lx, got 0x%lx\n",
-				phys_addr, phys_addr + size,
+				(unsigned long long)phys_addr,
+				(unsigned long long)(phys_addr + size),
 				prot_val, new_prot_val);
 			free_memtype(phys_addr, phys_addr + size);
 			return NULL;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for April 10, Stephen Rothwell, (Thu Apr 10, 4:14 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Thu Apr 10, 6:09 pm)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Fri Apr 11, 3:46 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Fri Apr 11, 11:19 am)
Re: linux-next: Tree for April 10 (arch/x86), Jakub Jelinek, (Mon Apr 14, 4:40 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Mon Apr 14, 6:28 pm)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Fri Apr 11, 11:26 am)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Mon Apr 14, 4:12 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Mon Apr 14, 4:22 am)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Mon Apr 14, 4:34 am)
Re: linux-next: Tree for April 10 (arch/x86), Jakub Jelinek, (Mon Apr 14, 4:43 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Mon Apr 14, 5:30 am)
Re: linux-next: Tree for April 10 (arch/x86), David Miller, (Mon Apr 14, 5:37 am)
Re: linux-next: Tree for April 10 (ftrace), Randy Dunlap, (Thu Apr 10, 6:07 pm)
Re: linux-next: Tree for April 10: generic pci_enable_resour..., Mariusz Kozlowski, (Thu Apr 10, 3:34 pm)
Re: linux-next: Tree for April 10: generic pci_enable_resour..., Stephen Rothwell, (Mon Apr 14, 12:49 am)
[BUG] linux-next: April 10 - kernel oops at kmem_cache_all..., Kamalesh Babulal, (Thu Apr 10, 2:07 pm)
Re: [BUG] linux-next: April 10 - kernel oops at kmem_cache..., Kamalesh Babulal, (Mon Apr 14, 9:14 am)
Re: linux-next: Tree for April 10, Greg KH, (Thu Apr 10, 1:42 pm)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while..., Bartlomiej Zolnierkiewicz..., (Thu Apr 10, 8:03 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while..., Bartlomiej Zolnierkiewicz..., (Thu Apr 10, 1:14 pm)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while..., Bartlomiej Zolnierkiewicz..., (Thu Apr 10, 3:16 pm)
speck-geostationary