* linux-next: spi tree build warning
@ 2009-11-25 10:29 Stephen Rothwell
2009-11-25 14:30 ` Grant Likely
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2009-11-25 10:29 UTC (permalink / raw)
To: Grant Likely; +Cc: linux-next, linux-kernel, "Richard Röjfors"
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
Hi Grant,
Today's linux-next build (x86_64 allmodconfig) produced this warning:
drivers/spi/xilinx_spi.c: In function 'xilinx_spi_init':
drivers/spi/xilinx_spi.c:411: warning: cast from pointer to integer of different size
Maybe introduced by commit 8387f616c653f878b33d859310a8ed5c568505ee
("xilinx_spi: Split into of driver and generic part").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: linux-next: spi tree build warning 2009-11-25 10:29 linux-next: spi tree build warning Stephen Rothwell @ 2009-11-25 14:30 ` Grant Likely 2009-11-25 14:35 ` Stephen Rothwell 0 siblings, 1 reply; 3+ messages in thread From: Grant Likely @ 2009-11-25 14:30 UTC (permalink / raw) To: Stephen Rothwell Cc: linux-next, linux-kernel, "Richard Röjfors", spi-devel-general On Wed, Nov 25, 2009 at 3:29 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote: > Hi Grant, > > Today's linux-next build (x86_64 allmodconfig) produced this warning: > > drivers/spi/xilinx_spi.c: In function 'xilinx_spi_init': > drivers/spi/xilinx_spi.c:411: warning: cast from pointer to integer of different size > > Maybe introduced by commit 8387f616c653f878b33d859310a8ed5c568505ee > ("xilinx_spi: Split into of driver and generic part"). Trivial fix committed to next-spi branch: diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index b927812..9f38637 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -408,8 +408,8 @@ struct spi_master *xilinx_spi_init(struct device *dev, struc goto free_irq; } - dev_info(dev, "at 0x%08X mapped to 0x%08X, irq=%d\n", - (u32)mem->start, (u32)xspi->regs, xspi->irq); + dev_info(dev, "at 0x%08llX mapped to 0x%p, irq=%d\n", + (unsigned long long)mem->start, xspi->regs, xspi->irq); return master; free_irq: ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: spi tree build warning 2009-11-25 14:30 ` Grant Likely @ 2009-11-25 14:35 ` Stephen Rothwell 0 siblings, 0 replies; 3+ messages in thread From: Stephen Rothwell @ 2009-11-25 14:35 UTC (permalink / raw) To: Grant Likely Cc: linux-next, linux-kernel, "Richard Röjfors", spi-devel-general [-- Attachment #1: Type: text/plain, Size: 869 bytes --] Hi Grant, On Wed, 25 Nov 2009 07:30:19 -0700 Grant Likely <grant.likely@secretlab.ca> wrote: > > Trivial fix committed to next-spi branch: > > diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c > index b927812..9f38637 100644 > --- a/drivers/spi/xilinx_spi.c > +++ b/drivers/spi/xilinx_spi.c > @@ -408,8 +408,8 @@ struct spi_master *xilinx_spi_init(struct device *dev, struc > goto free_irq; > } > > - dev_info(dev, "at 0x%08X mapped to 0x%08X, irq=%d\n", > - (u32)mem->start, (u32)xspi->regs, xspi->irq); > + dev_info(dev, "at 0x%08llX mapped to 0x%p, irq=%d\n", > + (unsigned long long)mem->start, xspi->regs, xspi->irq); > return master; Thanks. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-25 14:35 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-11-25 10:29 linux-next: spi tree build warning Stephen Rothwell 2009-11-25 14:30 ` Grant Likely 2009-11-25 14:35 ` Stephen Rothwell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®