* linux-next: pci tree build warning
@ 2009-08-13 2:47 Stephen Rothwell
2009-08-13 3:32 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2009-08-13 2:47 UTC (permalink / raw)
To: Jesse Barnes
Cc: linux-next, linux-kernel, Benjamin Herrenschmidt, Tiago Vignatti,
Dave Airlie
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
Hi Jesse,
Today's linux-next build (x86_64 allmodconfig) produced these warnings:
drivers/gpu/vga/vgaarb.c: In function 'vga_arb_write':
drivers/gpu/vga/vgaarb.c:834: warning: cast from pointer to integer of different size
drivers/gpu/vga/vgaarb.c:870: warning: cast from pointer to integer of different size
drivers/gpu/vga/vgaarb.c:920: warning: cast from pointer to integer of different size
drivers/gpu/vga/vgaarb.c:963: warning: cast from pointer to integer of different size
drivers/gpu/vga/vgaarb.c:1017: warning: cast from pointer to integer of different size
Introduced by commit a49c9c1b728fa8f50816d96a0f135e15a359e448 ("PCI/GPU:
implement VGA arbitration on Linux").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: pci tree build warning
2009-08-13 2:47 linux-next: pci tree build warning Stephen Rothwell
@ 2009-08-13 3:32 ` Benjamin Herrenschmidt
2009-08-13 8:38 ` Vignatti Tiago (Nokia-D/Helsinki)
0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2009-08-13 3:32 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Jesse Barnes, linux-next, linux-kernel, Tiago Vignatti,
Dave Airlie
On Thu, 2009-08-13 at 12:47 +1000, Stephen Rothwell wrote:
> Hi Jesse,
>
> Today's linux-next build (x86_64 allmodconfig) produced these warnings:
>
> drivers/gpu/vga/vgaarb.c: In function 'vga_arb_write':
> drivers/gpu/vga/vgaarb.c:834: warning: cast from pointer to integer of different size
> drivers/gpu/vga/vgaarb.c:870: warning: cast from pointer to integer of different size
> drivers/gpu/vga/vgaarb.c:920: warning: cast from pointer to integer of different size
> drivers/gpu/vga/vgaarb.c:963: warning: cast from pointer to integer of different size
> drivers/gpu/vga/vgaarb.c:1017: warning: cast from pointer to integer of different size
>
> Introduced by commit a49c9c1b728fa8f50816d96a0f135e15a359e448 ("PCI/GPU:
> implement VGA arbitration on Linux").
Right, somebody weirdly decided to cast pointers to int just to printk
them with %X :-) I hope it wasn't me ...
Just remove the casts and use %p instead.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: pci tree build warning
2009-08-13 3:32 ` Benjamin Herrenschmidt
@ 2009-08-13 8:38 ` Vignatti Tiago (Nokia-D/Helsinki)
0 siblings, 0 replies; 4+ messages in thread
From: Vignatti Tiago (Nokia-D/Helsinki) @ 2009-08-13 8:38 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Jesse Barnes, linux-next@vger.kernel.org,
linux-kernel@vger.kernel.org, Dave Airlie
On Thu, Aug 13, 2009 at 05:32:40AM +0200, Benjamin Herrenschmidt wrote:
> On Thu, 2009-08-13 at 12:47 +1000, Stephen Rothwell wrote:
> > Hi Jesse,
> >
> > Today's linux-next build (x86_64 allmodconfig) produced these warnings:
> >
> > drivers/gpu/vga/vgaarb.c: In function 'vga_arb_write':
> > drivers/gpu/vga/vgaarb.c:834: warning: cast from pointer to integer of different size
> > drivers/gpu/vga/vgaarb.c:870: warning: cast from pointer to integer of different size
> > drivers/gpu/vga/vgaarb.c:920: warning: cast from pointer to integer of different size
> > drivers/gpu/vga/vgaarb.c:963: warning: cast from pointer to integer of different size
> > drivers/gpu/vga/vgaarb.c:1017: warning: cast from pointer to integer of different size
> >
> > Introduced by commit a49c9c1b728fa8f50816d96a0f135e15a359e448 ("PCI/GPU:
> > implement VGA arbitration on Linux").
>
> Right, somebody weirdly decided to cast pointers to int just to printk
> them with %X :-) I hope it wasn't me ...
Ahhh oops.. looks like someone really newbie trying to play developing kernel
code :p
Tiago
^ permalink raw reply [flat|nested] 4+ messages in thread
* linux-next: pci tree build warning
@ 2009-10-08 4:27 Stephen Rothwell
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2009-10-08 4:27 UTC (permalink / raw)
To: Jesse Barnes; +Cc: linux-next, linux-kernel, Tejun Heo
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
Hi Jesse,
Today's linux-next build (powerpc allnoconfig) produced this warning:
WARNING: drivers/pci/built-in.o(.devinit.text+0x86a): Section mismatch in reference from the function pci_init() to the variable .init.data:pci_dfl_cache_line_size
The function __devinit pci_init() references
a variable __initdata pci_dfl_cache_line_size.
If pci_dfl_cache_line_size is only used by pci_init then
annotate pci_dfl_cache_line_size with a matching annotation.
Introduced by commit b20dd110d21aac94b3f4063cffbcf9718656ce51 ("PCI:
determine CLS more intelligently").
--
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] 4+ messages in thread
end of thread, other threads:[~2009-10-08 4:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-13 2:47 linux-next: pci tree build warning Stephen Rothwell
2009-08-13 3:32 ` Benjamin Herrenschmidt
2009-08-13 8:38 ` Vignatti Tiago (Nokia-D/Helsinki)
-- strict thread matches above, loose matches on Subject: below --
2009-10-08 4:27 Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox