cyrix eliminate bad section references
PATCH 1/1 cyrix eliminate bad section references
Fix cyrix section references:
convert __initdata to __devinitdata.
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 00000379R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 00000399R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003b3R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003b9R_386_32 .init.data
Error: ./arch/i386/kernel/cpu/mtrr/cyrix.o .text refers to 000003bfR_386_32 .init.data
not many left on my .config, thanks Randy!
arch/i386/kernel/cpu/mtrr/cyrix.c +2 -2
@@ -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 ) {
Quoted 14 lines · maximilian attems
Fix cyrix section references:
convert__initdatato__devinitdata.Error:
./arch/i386/kernel/cpu/mtrr/cyrix.o.text refers to 00000379R_386_32.init.data
Error:./arch/i386/kernel/cpu/mtrr/cyrix.o.text refers to 00000399R_386_32.init.data
Error:./arch/i386/kernel/cpu/mtrr/cyrix.o.text refers to000003b3R_386_32.init.data
Error:./arch/i386/kernel/cpu/mtrr/cyrix.o.text refers to000003b9R_386_32.init.data
Error:./arch/i386/kernel/cpu/mtrr/cyrix.o.text refers to000003bfR_386_32.init.data
Quoted 1 line
not many left on my .config, thanks Randy!
Yes, almost done. :)
Quoted 2 lines
signed-of-by maximilian attems <[email protected]>
Quoted 19 lines
diff -pruN -X dontdiff
linux-2.6.11-bk6/arch/i386/kernel/cpu/mtrr/cyrix.clinux-2.6.11-bk6-max/arch/i386/kernel/cpu/mtrr/cyrix.carch/i386/kernel/cpu/mtrr/cyrix.c +2
-2@@ -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 ) {
Signature · 1 line
~Randy