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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Viro
Date: Monday, April 14, 2008 - 2:30 am

On Mon, Apr 14, 2008 at 04:43:20AM -0400, Jakub Jelinek wrote:

Actually, how hard would it be to allow new modifiers recognized by
format string checking?  Hell, even being able to teach it that (in this
family of functions) "%<d>u" should expect dma_addr_t, "%016<64>x" -
u64, etc. would solve all the problems.  Ideally we'd need something
for things like IPv4 address (__be32 expected), IPv6 address (taking
__be32 *), etc.

No magic, usual calling conventions - it'd still remain a valid C.
We can do that in sparse and just tell gcc to STFU about these warnings,
of course, but that's kind of things that is probably wanted by userland
projects as well...

BTW, ISTR FreeBSD folks carrying gcc patches in their tree for something
with similar purpose - project-specific format modifiers/specifiers.
No idea how hard it would be to generalize, though - never looked at
those in details...
--
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, 1:14 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic whi ..., Bartlomiej Zolnierki ..., (Thu Apr 10, 5:03 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic whi ..., Bartlomiej Zolnierki ..., (Thu Apr 10, 10:14 am)
Re: linux-next: Tree for April 10, Greg KH, (Thu Apr 10, 10:42 am)
[BUG] linux-next: April 10 - kernel oops at kmem_cache_a ..., Kamalesh Babulal, (Thu Apr 10, 11:07 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic whi ..., Kamalesh Babulal, (Thu Apr 10, 11:25 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic whi ..., Bartlomiej Zolnierki ..., (Thu Apr 10, 12:16 pm)
Re: linux-next: Tree for April 10: generic pci_enable_reso ..., Mariusz Kozlowski, (Thu Apr 10, 12:34 pm)
Re: linux-next: Tree for April 10 (ftrace), Randy Dunlap, (Thu Apr 10, 3:07 pm)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Thu Apr 10, 3:09 pm)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Fri Apr 11, 12:46 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Fri Apr 11, 8:19 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Fri Apr 11, 8:26 am)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Mon Apr 14, 1:12 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Mon Apr 14, 1:22 am)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Mon Apr 14, 1:34 am)
Re: linux-next: Tree for April 10 (arch/x86), Jakub Jelinek, (Mon Apr 14, 1:40 am)
Re: linux-next: Tree for April 10 (arch/x86), Jakub Jelinek, (Mon Apr 14, 1:43 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Mon Apr 14, 2:30 am)
Re: linux-next: Tree for April 10 (arch/x86), David Miller, (Mon Apr 14, 2:37 am)
Re: [BUG] linux-next: April 10 - kernel oops at kmem_cac ..., Kamalesh Babulal, (Mon Apr 14, 6:14 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Mon Apr 14, 3:28 pm)