linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: pci tree build warning
@ 2009-10-08  4:27 Stephen Rothwell
  2009-10-08  9:59 ` [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata Tejun Heo
  0 siblings, 1 reply; 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

* [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata
  2009-10-08  4:27 linux-next: pci tree build warning Stephen Rothwell
@ 2009-10-08  9:59 ` Tejun Heo
  2009-10-08 17:25   ` Jesse Barnes
  2009-10-26 20:40   ` Jesse Barnes
  0 siblings, 2 replies; 4+ messages in thread
From: Tejun Heo @ 2009-10-08  9:59 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Jesse Barnes, linux-next, linux-kernel

pci_dfl_cache_line_size is marked as __initdata but referenced by
pci_init() which is __devinit.  Make it __devinitdata instead of
__initdata.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/pci/pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 1ae95df..a6e22fd 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -53,7 +53,7 @@ unsigned long pci_hotplug_mem_size = DEFAULT_HOTPLUG_MEM_SIZE;
  * the dfl or actual value as it sees fit.  Don't forget this is
  * measured in 32-bit words, not bytes.
  */
-u8 pci_dfl_cache_line_size __initdata = L1_CACHE_BYTES >> 2;
+u8 pci_dfl_cache_line_size __devinitdata = L1_CACHE_BYTES >> 2;
 u8 pci_cache_line_size;
 
 /**

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata
  2009-10-08  9:59 ` [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata Tejun Heo
@ 2009-10-08 17:25   ` Jesse Barnes
  2009-10-26 20:40   ` Jesse Barnes
  1 sibling, 0 replies; 4+ messages in thread
From: Jesse Barnes @ 2009-10-08 17:25 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Stephen Rothwell, linux-next, linux-kernel

On Thu, 08 Oct 2009 18:59:53 +0900
Tejun Heo <tj@kernel.org> wrote:

> pci_dfl_cache_line_size is marked as __initdata but referenced by
> pci_init() which is __devinit.  Make it __devinitdata instead of
> __initdata.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  drivers/pci/pci.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 1ae95df..a6e22fd 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -53,7 +53,7 @@ unsigned long pci_hotplug_mem_size =
> DEFAULT_HOTPLUG_MEM_SIZE;
>   * the dfl or actual value as it sees fit.  Don't forget this is
>   * measured in 32-bit words, not bytes.
>   */
> -u8 pci_dfl_cache_line_size __initdata = L1_CACHE_BYTES >> 2;
> +u8 pci_dfl_cache_line_size __devinitdata = L1_CACHE_BYTES >> 2;
>  u8 pci_cache_line_size;

Fix pushed, thanks for the quick turnaround Tejun.

-- 
Jesse Barnes, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata
  2009-10-08  9:59 ` [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata Tejun Heo
  2009-10-08 17:25   ` Jesse Barnes
@ 2009-10-26 20:40   ` Jesse Barnes
  1 sibling, 0 replies; 4+ messages in thread
From: Jesse Barnes @ 2009-10-26 20:40 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Stephen Rothwell, Jesse Barnes, linux-next, linux-kernel

On Thu, 08 Oct 2009 18:59:53 +0900
Tejun Heo <tj@kernel.org> wrote:

> pci_dfl_cache_line_size is marked as __initdata but referenced by
> pci_init() which is __devinit.  Make it __devinitdata instead of
> __initdata.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---

Applied to my linux-next tree, thanks.

-- 
Jesse Barnes, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-26 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-08  4:27 linux-next: pci tree build warning Stephen Rothwell
2009-10-08  9:59 ` [PATCH pci-2.6#linux-next] pci: pci_dfl_cache_line_size is __devinitdata Tejun Heo
2009-10-08 17:25   ` Jesse Barnes
2009-10-26 20:40   ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).