public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] hfc_sx eliminate bad section references
@ 2005-03-14  0:29 maximilian attems
  2005-03-14 22:30 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: maximilian attems @ 2005-03-14  0:29 UTC (permalink / raw)
  To: lkml; +Cc: Randy.Dunlap, akpm

Fix hfc_sx section references:
  convert __initdata to __devinitdata.

Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000204d R_386_32
.init.data
Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000205c R_386_32
.init.data
Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 00002082 R_386_32
.init.data
Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000209f R_386_32
.init.data
Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 00002114 R_386_32
.init.data
Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000211c R_386_32          
.init.data
Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000212e R_386_32
.init.data

Signed-off-by: maximilian attems <janitor@sternwelten.at>

diff -pruN -X dontdiff linux-2.6.11-bk8/drivers/isdn/hisax/hfc_sx.c
linux-2.6.11-bk8-max/drivers/isdn/hisax/hfc_sx.c
--- linux-2.6.11-bk8/drivers/isdn/hisax/hfc_sx.c	2005-03-02 08:37:48.000000000 +0100
+++ linux-2.6.11-bk8-max/drivers/isdn/hisax/hfc_sx.c	2005-03-14 01:03:42.000000000 +0100
@@ -1382,14 +1382,14 @@ hfcsx_card_msg(struct IsdnCardState *cs,
 }
 
 #ifdef __ISAPNP__
-static struct isapnp_device_id hfc_ids[] __initdata = {
+static struct isapnp_device_id hfc_ids[] __devinitdata = {
 	{ ISAPNP_VENDOR('T', 'A', 'G'), ISAPNP_FUNCTION(0x2620),
 	  ISAPNP_VENDOR('T', 'A', 'G'), ISAPNP_FUNCTION(0x2620), 
 	  (unsigned long) "Teles 16.3c2" },
 	{ 0, }
 };
 
-static struct isapnp_device_id *ipid __initdata = &hfc_ids[0];
+static struct isapnp_device_id *ipid __devinitdata = &hfc_ids[0];
 static struct pnp_card *pnp_c __devinitdata = NULL;
 #endif
 


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

* Re: [patch] hfc_sx eliminate bad section references
  2005-03-14  0:29 [patch] hfc_sx eliminate bad section references maximilian attems
@ 2005-03-14 22:30 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2005-03-14 22:30 UTC (permalink / raw)
  To: maximilian attems; +Cc: lkml, akpm

maximilian attems wrote:
> Fix hfc_sx section references:
>   convert __initdata to __devinitdata.
> 
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000204d R_386_32
> .init.data
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000205c R_386_32
> .init.data
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 00002082 R_386_32
> .init.data
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000209f R_386_32
> .init.data
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 00002114 R_386_32
> .init.data
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000211c R_386_32          
> .init.data
> Error: ./drivers/isdn/hisax/hfc_sx.o .text refers to 0000212e R_386_32
> .init.data
> 
> Signed-off-by: maximilian attems <janitor@sternwelten.at>

Acked-by: Randy Dunlap <rddunlap@osdl.org>

> diff -pruN -X dontdiff linux-2.6.11-bk8/drivers/isdn/hisax/hfc_sx.c
> linux-2.6.11-bk8-max/drivers/isdn/hisax/hfc_sx.c
> --- linux-2.6.11-bk8/drivers/isdn/hisax/hfc_sx.c	2005-03-02 08:37:48.000000000 +0100
> +++ linux-2.6.11-bk8-max/drivers/isdn/hisax/hfc_sx.c	2005-03-14 01:03:42.000000000 +0100
> @@ -1382,14 +1382,14 @@ hfcsx_card_msg(struct IsdnCardState *cs,
>  }
>  
>  #ifdef __ISAPNP__
> -static struct isapnp_device_id hfc_ids[] __initdata = {
> +static struct isapnp_device_id hfc_ids[] __devinitdata = {
>  	{ ISAPNP_VENDOR('T', 'A', 'G'), ISAPNP_FUNCTION(0x2620),
>  	  ISAPNP_VENDOR('T', 'A', 'G'), ISAPNP_FUNCTION(0x2620), 
>  	  (unsigned long) "Teles 16.3c2" },
>  	{ 0, }
>  };
>  
> -static struct isapnp_device_id *ipid __initdata = &hfc_ids[0];
> +static struct isapnp_device_id *ipid __devinitdata = &hfc_ids[0];
>  static struct pnp_card *pnp_c __devinitdata = NULL;
>  #endif
>  


-- 
~Randy

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

end of thread, other threads:[~2005-03-14 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14  0:29 [patch] hfc_sx eliminate bad section references maximilian attems
2005-03-14 22:30 ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox