netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 8/9] smsc-ircc2: fix section reference mismatches
@ 2006-07-07  6:58 akpm
  2006-07-07 17:28 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2006-07-07  6:58 UTC (permalink / raw)
  To: jeff; +Cc: netdev, akpm, dtor, dtor

From: Dmitry Torokhov <dtor@insightbb.com>

subsystem_configurations array is only used by an __init function,
therefore it should be marked __initdata, not __devinitdata.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/net/irda/smsc-ircc2.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/irda/smsc-ircc2.c~smsc-ircc2-fix-section-reference-mismatches drivers/net/irda/smsc-ircc2.c
--- a/drivers/net/irda/smsc-ircc2.c~smsc-ircc2-fix-section-reference-mismatches
+++ a/drivers/net/irda/smsc-ircc2.c
@@ -2353,7 +2353,7 @@ static int __init smsc_superio_lpc(unsig
 #ifdef CONFIG_PCI
 #define PCIID_VENDOR_INTEL 0x8086
 #define PCIID_VENDOR_ALI 0x10b9
-static struct smsc_ircc_subsystem_configuration subsystem_configurations[] __devinitdata = {
+static struct smsc_ircc_subsystem_configuration subsystem_configurations[] __initdata = {
 	{
 		.vendor = PCIID_VENDOR_INTEL, /* Intel 82801DBM LPC bridge */
 		.device = 0x24cc,
_

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

* Re: [patch 8/9] smsc-ircc2: fix section reference mismatches
  2006-07-07  6:58 [patch 8/9] smsc-ircc2: fix section reference mismatches akpm
@ 2006-07-07 17:28 ` Jeff Garzik
  2006-07-07 19:53   ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2006-07-07 17:28 UTC (permalink / raw)
  To: akpm; +Cc: netdev, dtor, dtor

akpm@osdl.org wrote:
> From: Dmitry Torokhov <dtor@insightbb.com>
> 
> subsystem_configurations array is only used by an __init function,
> therefore it should be marked __initdata, not __devinitdata.
> 
> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> ---
> 
>  drivers/net/irda/smsc-ircc2.c |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/net/irda/smsc-ircc2.c~smsc-ircc2-fix-section-reference-mismatches drivers/net/irda/smsc-ircc2.c
> --- a/drivers/net/irda/smsc-ircc2.c~smsc-ircc2-fix-section-reference-mismatches
> +++ a/drivers/net/irda/smsc-ircc2.c
> @@ -2353,7 +2353,7 @@ static int __init smsc_superio_lpc(unsig
>  #ifdef CONFIG_PCI
>  #define PCIID_VENDOR_INTEL 0x8086
>  #define PCIID_VENDOR_ALI 0x10b9
> -static struct smsc_ircc_subsystem_configuration subsystem_configurations[] __devinitdata = {
> +static struct smsc_ircc_subsystem_configuration subsystem_configurations[] __initdata = {

Are you sure this fully solves the problem?

It seems like the functions referenced inside this are inappropriately 
marked as well...



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

* Re: [patch 8/9] smsc-ircc2: fix section reference mismatches
  2006-07-07 17:28 ` Jeff Garzik
@ 2006-07-07 19:53   ` Dmitry Torokhov
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2006-07-07 19:53 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: akpm, netdev

On 7/7/06, Jeff Garzik <jeff@garzik.org> wrote:
> akpm@osdl.org wrote:
> > From: Dmitry Torokhov <dtor@insightbb.com>
> >
> > subsystem_configurations array is only used by an __init function,
> > therefore it should be marked __initdata, not __devinitdata.
> >
> > Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
> > Signed-off-by: Andrew Morton <akpm@osdl.org>
> > ---
> >
> >  drivers/net/irda/smsc-ircc2.c |    2 +-
> >  1 files changed, 1 insertion(+), 1 deletion(-)
> >
> > diff -puN drivers/net/irda/smsc-ircc2.c~smsc-ircc2-fix-section-reference-mismatches drivers/net/irda/smsc-ircc2.c
> > --- a/drivers/net/irda/smsc-ircc2.c~smsc-ircc2-fix-section-reference-mismatches
> > +++ a/drivers/net/irda/smsc-ircc2.c
> > @@ -2353,7 +2353,7 @@ static int __init smsc_superio_lpc(unsig
> >  #ifdef CONFIG_PCI
> >  #define PCIID_VENDOR_INTEL 0x8086
> >  #define PCIID_VENDOR_ALI 0x10b9
> > -static struct smsc_ircc_subsystem_configuration subsystem_configurations[] __devinitdata = {
> > +static struct smsc_ircc_subsystem_configuration subsystem_configurations[] __initdata = {
>
> Are you sure this fully solves the problem?
>

I think so, at least I see no more warnigns...

> It seems like the functions referenced inside this are inappropriately
> marked as well...
>

subsystem_configurations is only used from
smsc_ircc_preconfigure_subsystems(), which is called from
smsc_ircc_init(). Both of these are __init. All methods in
subsystem_configurations are marked as __init as well. Seems logical
that the strcture should be marked __initdata.

-- 
Dmitry

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

end of thread, other threads:[~2006-07-07 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-07  6:58 [patch 8/9] smsc-ircc2: fix section reference mismatches akpm
2006-07-07 17:28 ` Jeff Garzik
2006-07-07 19:53   ` Dmitry Torokhov

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).