* [patch] cyrix eliminate bad section references
@ 2005-03-11 13:30 maximilian attems
2005-03-11 18:03 ` Randy.Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: maximilian attems @ 2005-03-11 13:30 UTC (permalink / raw)
To: lkml; +Cc: Randy.Dunlap
Fix cyrix section references:
convert __initdata to __devinitdata.
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 00000379
R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 00000399
R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003b3
R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003b9
R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003bf
R_386_32 .init.data
not many left on my .config, thanks Randy!
signed-of-by: maximilian attems <janitor@sternwelten.at>
diff -pruN -X dontdiff linux-2.6.11-bk6/arch/i386/kernel/cpu/mtrr/cyrix.c linux-2.6.11-bk6-max/arch/i386/kernel/cpu/mtrr/cyrix.c
--- linux-2.6.11-bk6/arch/i386/kernel/cpu/mtrr/cyrix.c 2005-03-11 09:28:05.000000000 +0100
+++ linux-2.6.11-bk6-max/arch/i386/kernel/cpu/mtrr/cyrix.c 2005-03-11 14:15:33.000000000 +0100
@@ -218,12 +218,12 @@ typedef struct {
mtrr_type type;
} arr_state_t;
-static arr_state_t arr_state[8] __initdata = {
+static arr_state_t arr_state[8] __devinitdata = {
{0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL},
{0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}
};
-static unsigned char ccr_state[7] __initdata = { 0, 0, 0, 0, 0, 0, 0 };
+static unsigned char ccr_state[7] __devinitdata = { 0, 0, 0, 0, 0, 0, 0 };
static void cyrix_set_all(void)
{
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [patch] cyrix eliminate bad section references
2005-03-11 13:30 [patch] cyrix eliminate bad section references maximilian attems
@ 2005-03-11 18:03 ` Randy.Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2005-03-11 18:03 UTC (permalink / raw)
To: maximilian attems; +Cc: lkml, akpm
maximilian attems wrote:
> Fix cyrix section references:
> convert __initdata to __devinitdata.
>
> Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 00000379
> R_386_32 .init.data
> Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 00000399
> R_386_32 .init.data
> Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003b3
> R_386_32 .init.data
> Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003b9
> R_386_32 .init.data
> Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003bf
> R_386_32 .init.data
>
> not many left on my .config, thanks Randy!
Yes, almost done. :)
>
> signed-of-by: maximilian attems <janitor@sternwelten.at>
Acked-by: Randy Dunlap <rddunlap@osdl.org>
>
> diff -pruN -X dontdiff linux-2.6.11-bk6/arch/i386/kernel/cpu/mtrr/cyrix.c linux-2.6.11-bk6-max/arch/i386/kernel/cpu/mtrr/cyrix.c
> --- linux-2.6.11-bk6/arch/i386/kernel/cpu/mtrr/cyrix.c 2005-03-11 09:28:05.000000000 +0100
> +++ linux-2.6.11-bk6-max/arch/i386/kernel/cpu/mtrr/cyrix.c 2005-03-11 14:15:33.000000000 +0100
> @@ -218,12 +218,12 @@ typedef struct {
> mtrr_type type;
> } arr_state_t;
>
> -static arr_state_t arr_state[8] __initdata = {
> +static arr_state_t arr_state[8] __devinitdata = {
> {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL},
> {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}
> };
>
> -static unsigned char ccr_state[7] __initdata = { 0, 0, 0, 0, 0, 0, 0 };
> +static unsigned char ccr_state[7] __devinitdata = { 0, 0, 0, 0, 0, 0, 0 };
>
> static void cyrix_set_all(void)
> {
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-11 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-11 13:30 [patch] cyrix eliminate bad section references maximilian attems
2005-03-11 18:03 ` Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox