login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
11
Re: linux-next: Tree for April 10 (arch/x86)
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <randy.dunlap@...>
To: Ingo Molnar <mingo@...>
Cc: Stephen Rothwell <sfr@...>, mingo <mingo@...>, tglx <tglx@...>, <linux-next@...>, LKML <linux-kernel@...>
Subject:
Re: linux-next: Tree for April 10 (arch/x86)
Date: Friday, April 11, 2008 - 11:19 am
On Fri, 11 Apr 2008 09:46:31 +0200 Ingo Molnar wrote:
quoted text
> > * Randy Dunlap <randy.dunlap@oracle.com> wrote: > > > 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' > > thanks, applied. > > > if (!phys_addr_valid(phys_addr)) { > > printk(KERN_WARNING "ioremap: invalid physical address %llx\n", > > - phys_addr); > > + (unsigned long long)phys_addr); > > is there really no way to solve this more cleanly than a forced cast?
I haven't seen any other decent solutions. This is what we do all over the kernel.
quoted text
> It > is a totally uninteresting warning that we pass in a narrower type to > printk(). It cannot ever cause any bugs or problems. Why does gcc warn > about it?
No idea about that part. --- ~Randy --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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
, (Sun Apr 13, 9:48 pm)
Re: linux-next: Tree for April 10: generic pci_enable_resour...
, Greg KH
, (Mon Apr 14, 12:28 am)
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...
, Suresh Siddha
, (Fri Apr 11, 1:56 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)
[BUG] linux-next: Tree for April 10 - kernel panic while loa...
, Kamalesh Babulal
, (Thu Apr 10, 6:24 am)
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...
, Kamalesh Babulal
, (Thu Apr 10, 2:25 pm)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while...
, Bartlomiej Zolnierkiewicz...
, (Thu Apr 10, 3:16 pm)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while...
, Jeff Garzik
, (Thu Apr 10, 6:45 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while...
, Alan Cox
, (Thu Apr 10, 7:32 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while...
, Jeff Garzik
, (Thu Apr 10, 8:14 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while...
, Kamalesh Babulal
, (Thu Apr 10, 7:02 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Linus Torvalds
Re: init's children list is long and slows reaping children.
Kohei KaiGai
[PATCH 0/3] exporting capability name/code pairs (final#2)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 33/37] dccp: Initialisation framework for feature negotiation
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
Mark Ryden
Re: Linux Wireless Mini-Summit -- Ottawa -- July 22, 2008
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
838 guests
online.
Online users
strcmp
Syndicate