login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
5
Re: [PATCH] fix printk format compiler warnings
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] fix printk format compiler warnings
Date: Friday, September 5, 2008 - 2:20 pm
On Fri, 05 Sep 2008 13:06:24 +0100 "Jan Beulich" <jbeulich@novell.com> wrote:
quoted text
> %llx and the like cannot be used on u64-derived data types - they must > be cast to long long explicitly for arch-es where u64 is a typedef of > unsigned long (ia64 is where I observed the problem). > > Signed-off-by: Jan Beulich <jbeulich@novell.com> > > --- > drivers/pci/probe.c | 16 +++++++++++++--- > drivers/pci/setup-bus.c | 6 +++++- > 2 files changed, 18 insertions(+), 4 deletions(-) > > --- linux-2.6.27-rc5/drivers/pci/probe.c 2008-08-21 14:37:32.000000000 +0200 > +++ 2.6.27-rc5-pci-probe-print/drivers/pci/probe.c 2008-09-02 15:18:08.000000000 +0200 > @@ -383,7 +383,10 @@ void __devinit pci_read_bridge_bases(str > res->start = base; > if (!res->end) > res->end = limit + 0xfff; > - printk(KERN_INFO "PCI: bridge %s io port: [%llx, %llx]\n", pci_name(dev), res->start, res->end); > + printk(KERN_INFO "PCI: bridge %s io port: [%Lx, %Lx]\n", > + pci_name(dev), > + (unsigned long long)res->start, > + (unsigned long long)res->end); > } > > res = child->resource[1]; > @@ -395,7 +398,10 @@ void __devinit pci_read_bridge_bases(str > res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM; > res->start = base; > res->end = limit + 0xfffff; > - printk(KERN_INFO "PCI: bridge %s 32bit mmio: [%llx, %llx]\n", pci_name(dev), res->start, res->end); > + printk(KERN_INFO "PCI: bridge %s 32bit mmio: [%Lx, %Lx]\n", > + pci_name(dev), > + (unsigned long long)res->start, > + (unsigned long long)res->end); > } > > res = child->resource[2]; > @@ -431,7 +437,11 @@ void __devinit pci_read_bridge_bases(str > res->flags = (mem_base_lo & PCI_MEMORY_RANGE_TYPE_MASK) | IORESOURCE_MEM | IORESOURCE_PREFETCH; > res->start = base; > res->end = limit + 0xfffff; > - printk(KERN_INFO "PCI: bridge %s %sbit mmio pref: [%llx, %llx]\n", pci_name(dev), (res->flags & PCI_PREF_RANGE_TYPE_64)?"64":"32",res->start, res->end); > + printk(KERN_INFO "PCI: bridge %s %dbit mmio pref: [%Lx, %Lx]\n", > + pci_name(dev), > + res->flags & PCI_PREF_RANGE_TYPE_64 ? 64 : 32, > + (unsigned long long)res->start, > + (unsigned long long)res->end); > } > } > > --- linux-2.6.27-rc5/drivers/pci/setup-bus.c 2008-08-21 14:37:32.000000000 +0200 > +++ 2.6.27-rc5-pci-probe-print/drivers/pci/setup-bus.c 2008-09-02 15:18:20.000000000 +0200 > @@ -539,7 +539,11 @@ static void pci_bus_dump_res(struct pci_ > if (!res) > continue; > > - printk(KERN_INFO "bus: %02x index %x %s: [%llx, %llx]\n", bus->number, i, (res->flags & IORESOURCE_IO)? "io port":"mmio", res->start, res->end); > + printk(KERN_INFO "bus: %02x index %x %s: [%Lx, %Lx]\n", > + bus->number, i, > + res->flags & IORESOURCE_IO ? "io port" : "mmio", > + (unsigned long long)res->start, > + (unsigned long long)res->end); > } > } > >
These have been fixed in linux-next for a month. Jesse, can we get that into 2.6.27 please? --
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:
[PATCH] fix printk format compiler warnings
, Jan Beulich
, (Fri Sep 5, 5:06 am)
Re: [PATCH] fix printk format compiler warnings
, Andrew Morton
, (Fri Sep 5, 2:20 pm)
Re: [PATCH] fix printk format compiler warnings
, Jesse Barnes
, (Mon Sep 8, 9:54 pm)
[PATCH] checkpatch: Check for %L for all integer formats ( ...
, Geert Uytterhoeven
, (Tue Sep 30, 4:29 am)
Re: [PATCH] checkpatch: Check for %L for all integer forma ...
, Andy Whitcroft
, (Tue Sep 30, 6:14 am)
[PATCH] checkpatch: Check for %L for all integer formats ( ...
, Jan Beulich
, (Tue Sep 30, 8:32 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate