framebuffer: eliminate bad section references
cover framebuffer: eliminate bad section references
Hi,
I've gone thru all of drivers/video/* (2.6.11-bk5) and fixed all of the inappropriate section references that I could find.
Please consider for merging.
---
~Randy
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 1/11 asiliantfb: eliminate bad section references
asiliantfb refers to __initdata that should be __devinitdata
and calls __init functions that should be __devinit;
Error: ./drivers/video/asiliantfb.o .text refers to 00000000000006ee R_X86_64_32S .init.data+0x00000000000000a0
Error: ./drivers/video/asiliantfb.o .text refers to 0000000000000711 R_X86_64_32S .init.data
diffstat:=
drivers/video/asiliantfb.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/video/asiliantfb.c renamed from drivers/video/asiliantfb.c~video_asil_sections +4 -4
@@ -465,7 +465,7 @@ static struct chips_init_reg chips_init_ {0xd1, 0x01}, }; -static void __init chips_hw_init (struct fb_info *p) +static void __devinit chips_hw_init (struct fb_info *p) {int i;
@@ -488,7 +488,7 @@ static void __init chips_hw_init(structwrite_fr (chips_init_fr[i].addr, chips_init_fr[i].data); } -static struct fb_fix_screeninfo asiliantfb_fix__initdata = { +static struct fb_fix_screeninfo asiliantfb_fix__devinitdata = { .id ="Asiliant 69000" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_PSEUDOCOLOR ,
@@ -497,7 +497,7 @@ static struct fb_fix_screeninfo asiliant .smem_len = 0x200000, /* 2MB */ }; -static struct fb_var_screeninfo asiliantfb_var__initdata = { +static struct fb_var_screeninfo asiliantfb_var__devinitdata = { .xres =640 , .yres =480 , .xres_virtual =640 ,
@@ -518,7 +518,7 @@ static struct fb_var_screeninfo asiliant .vsync_len = 2, }; -static void __init init_asiliant (struct fb_info *p,unsigned long addr) +static void __devinit init_asiliant (struct fb_info *p,unsigned long addr) { p->fix = asiliantfb_fix; p->fix.smem_start = addr;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 2/11 atyfb: eliminate bad section references
In reply to Randy.DunlapFix atyfb references to __initdata from .text code sections
by changing __initdata to __devinitdata.
Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002416 R_X86_64_32S .init.data+0x00000000000004a0
Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002514 R_X86_64_32S .init.data
Error: ./drivers/video/aty/atyfb_base.o .text refers to 000000000000253e R_X86_64_32S .init.data+0x0000000000000060
Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026c4 R_X86_64_32S .init.data+0x00000000000004a0
Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026e7 R_X86_64_32S .init.data+0x0000000000000070
Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026ee R_X86_64_32S .init.data+0x0000000000000068
Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026fa R_X86_64_32S .init.data+0x0000000000000074
Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002706 R_X86_64_32S .init.data+0x0000000000000078
Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002712 R_X86_64_32S .init.data+0x000000000000007c
Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002afb R_X86_64_32S .init.data+0x0000000000000560
Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002baa R_X86_64_32S .init.data+0x00000000000004c0
diffstat:=
drivers/video/aty/atyfb_base.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-)
drivers/video/aty/atyfb_base.c renamed from drivers/video/aty/atyfb_base.c~video_atyfb_sections +12 -12
@@ -209,7 +209,7 @@ struct pci_mmap_map {unsigned long prot_mask; }; -static struct fb_fix_screeninfo atyfb_fix__initdata = { +static struct fb_fix_screeninfo atyfb_fix__devinitdata = { .id ="ATY Mach64" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_PSEUDOCOLOR ,
@@ -361,7 +361,7 @@ static struct {const char *name;int pll, mclk, xclk;u32 features; -} aty_chips[] __initdata = { +} aty_chips[] __devinitdata = {#ifdef CONFIG_FB_ATY_GX /* Mach64 GX */ { PCI_CHIP_MACH64GX, "ATI888GX00 (Mach64 GX)", 135, 50, 50, ATI_CHIP_88800GX },
@@ -492,31 +492,31 @@ static int __devinit correct_chipset(strreturn 0 ; } -static char ram_dram[]__initdata ="DRAM" ; -static char ram_resv[]__initdata ="RESV" ; +static char ram_dram[]__devinitdata ="DRAM" ; +static char ram_resv[]__devinitdata ="RESV" ;#ifdef CONFIG_FB_ATY_GX -static char ram_vram[]__initdata ="VRAM" ; +static char ram_vram[]__devinitdata ="VRAM" ;#endif /* CONFIG_FB_ATY_GX */ #ifdef CONFIG_FB_ATY_CT -static char ram_edo[]__initdata ="EDO" ; -static char ram_sdram[]__initdata ="SDRAM (1:1)" ; -static char ram_sgram[]__initdata ="SGRAM (1:1)" ; -static char ram_sdram32[]__initdata ="SDRAM (2:1) (32-bit)" ; -static char ram_off[]__initdata ="OFF" ; +static char ram_edo[]__devinitdata ="EDO" ; +static char ram_sdram[]__devinitdata ="SDRAM (1:1)" ; +static char ram_sgram[]__devinitdata ="SGRAM (1:1)" ; +static char ram_sdram32[]__devinitdata ="SDRAM (2:1) (32-bit)" ; +static char ram_off[]__devinitdata ="OFF" ;#endif /* CONFIG_FB_ATY_CT */ static u32 pseudo_palette[17 ];#ifdef CONFIG_FB_ATY_GX -static char *aty_gx_ram[8 ]__initdata = { +static char *aty_gx_ram[8 ]__devinitdata = { ram_dram, ram_vram, ram_vram, ram_dram, ram_dram, ram_vram, ram_vram, ram_resv };#endif /* CONFIG_FB_ATY_GX */ #ifdef CONFIG_FB_ATY_CT -static char *aty_ct_ram[8 ]__initdata = { +static char *aty_ct_ram[8 ]__devinitdata = { ram_off, ram_dram, ram_edo, ram_edo, ram_sdram, ram_sgram, ram_sdram32, ram_resv };
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 3/11 imsttfb: eliminate bad section references
In reply to Randy.DunlapFix imsttfb section references: change __initdata to __devinitdata
and __init to __devinit.
Error: ./drivers/video/imsttfb.o .text refers to 000000000000103b R_X86_64_32S .init.data+0x0000000000000040
Error: ./drivers/video/imsttfb.o .text refers to 0000000000001049 R_X86_64_32S .init.data+0x0000000000000041
Error: ./drivers/video/imsttfb.o .text refers to 0000000000001064 R_X86_64_32S .init.data
Error: ./drivers/video/imsttfb.o .text refers to 0000000000001071 R_X86_64_32S .init.data+0x0000000000000001
diffstat:=
drivers/video/imsttfb.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/video/imsttfb.c renamed from drivers/video/imsttfb.c~vid_imsttfb_sections +4 -4
@@ -228,7 +228,7 @@ struct initvalues {__u8 addr, value; }; -static struct initvalues ibm_initregs[]__initdata = { +static struct initvalues ibm_initregs[]__devinitdata = { {CLKCTL ,0x21 }, {SYNCCTL ,0x00 }, {HSYNCPOS ,0x00 },
@@ -275,7 +275,7 @@ static struct initvalues ibm_initregs[] { KEYCTL, 0x00 } }; -static struct initvalues tvp_initregs[]__initdata = { +static struct initvalues tvp_initregs[]__devinitdata = { {TVPIRICC ,0x00 }, {TVPIRBRC ,0xe4 }, {TVPIRLAC ,0x06 },
@@ -338,7 +338,7 @@ enum {static int inverse =0 ;static char fontname[40 ]__initdata = {0 };#if defined(CONFIG_PPC ) -static signed char init_vmode__initdata =-1 , init_cmode__initdata =-1 ; +static signed char init_vmode__devinitdata =-1 , init_cmode__devinitdata =-1 ;#endif static struct imstt_regvals tvp_reg_init_2 = {
@@ -1348,7 +1348,7 @@ static struct fb_ops imsttfb_ops = { .fb_ioctl = imsttfb_ioctl, }; -static void __init +static void __devinit init_imstt (struct fb_info *info) {struct imstt_par *par = (struct imstt_par *) info->par;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 4/11 kyro: eliminate bad section references
In reply to Randy.DunlapFix kyro sections references by changing __initdata
to __devinitdata.
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000692 R_X86_64_PC32 .init.data+0x000000000000090c
Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000006c2 R_X86_64_PC32 .init.data+0x0000000000000914
Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000006d1 R_X86_64_PC32 .init.data+0x0000000000000934
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000709 R_X86_64_PC32 .init.data+0x0000000000000934
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000711 R_X86_64_PC32 .init.data+0x000000000000093c
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000727 R_X86_64_PC32 .init.data+0x000000000000090c
Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000072d R_X86_64_PC32 .init.data+0x0000000000000914
Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000073f R_X86_64_PC32 .init.data+0x00000000000008eb
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000748 R_X86_64_PC32 .init.data+0x0000000000000914
Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000075b R_X86_64_PC32 .init.data+0x000000000000090c
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000778 R_X86_64_32S .init.data+0x0000000000000900
Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000077e R_X86_64_PC32 .init.data+0x00000000000008e7
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000793 R_X86_64_PC32 .init.data+0x0000000000000926
Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000079b R_X86_64_PC32 .init.data+0x00000000000008e3
Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000007a6 R_X86_64_PC32 .init.data+0x0000000000000928
Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000007f1 R_X86_64_PC32 .init.data+0x00000000000008dc
Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000007f8 R_X86_64_32S .init.data+0x0000000000000420
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000805 R_X86_64_32S .init.data+0x00000000000000a0
Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000834 R_X86_64_32S .init.data
diffstat:=
drivers/video/kyro/fbdev.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/video/kyro/fbdev.c renamed from drivers/video/kyro/fbdev.c~video_kyro_sections +7 -7
@@ -43,14 +43,14 @@#define KHZ2PICOS (a) (1000000000UL/(a))/****************************************************************************/ -static struct fb_fix_screeninfo kyro_fix__initdata = { +static struct fb_fix_screeninfo kyro_fix__devinitdata = { .id ="ST Kyro" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_TRUECOLOR , .accel =FB_ACCEL_NONE , }; -static struct fb_var_screeninfo kyro_var__initdata = { +static struct fb_var_screeninfo kyro_var__devinitdata = {/* 640x480, 16bpp @ 60 Hz */ .xres =640 , .yres =480 ,
@@ -86,18 +86,18 @@ typedef struct {/* global graphics card info structure (one per card) */ static device_info_t deviceInfo; -static char *mode_option__initdata =NULL ; -static int nopan__initdata =0 ; -static int nowrap__initdata =1 ; +static char *mode_option__devinitdata =NULL ; +static int nopan__devinitdata =0 ; +static int nowrap__devinitdata =1 ;#ifdef CONFIG_MTRR -static int nomtrr__initdata =0 ; +static int nomtrr__devinitdata =0 ;#endif /* PCI driver prototypes */ static int kyrofb_probe (struct pci_dev *pdev,const struct pci_device_id *ent);static void kyrofb_remove (struct pci_dev *pdev); -static struct fb_videomode kyro_modedb[]__initdata = { +static struct fb_videomode kyro_modedb[]__devinitdata = { {/* 640x350 @ 85Hz */ NULL ,85 ,640 ,350 ,KHZ2PICOS (31500 ),
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 5/11 neofb: eliminate bad section references
In reply to Randy.DunlapFix neofb section reference to __initdata: make it __devinitdata.
Error: ./drivers/video/neofb.o .text refers to 0000000000001fb4 R_X86_64_PC32 .init.data+0xfffffffffffffffc
diffstat:=
drivers/video/neofb.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/video/neofb.c renamed from drivers/video/neofb.c~video_neofb_sections +1 -1
@@ -93,7 +93,7 @@ static int external;static int libretto;static int nostretch;static int nopciburst; -static char *mode_option__initdata =NULL ; +static char *mode_option__devinitdata =NULL ;#ifdef MODULE
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 6/11 pm2fb: eliminate bad section references
In reply to Randy.DunlapFix pm2fb section references by changing referenced
__initdata to __devinitdata.
Error: ./drivers/video/pm2fb.o .text refers to 0000000000000ad4 R_X86_64_PC32 .init.data+0x0000000000000007
Error: ./drivers/video/pm2fb.o .text refers to 0000000000000afc R_X86_64_PC32 .init.data+0x0000000000000003
Error: ./drivers/video/pm2fb.o .text refers to 000000000000147e R_X86_64_PC32 .init.data+0x00000000000000bc
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001491 R_X86_64_PC32 .init.data+0x00000000000000c2
Error: ./drivers/video/pm2fb.o .text refers to 000000000000149a R_X86_64_PC32 .init.data+0x00000000000000bc
Error: ./drivers/video/pm2fb.o .text refers to 00000000000014aa R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/pm2fb.o .text refers to 00000000000014e0 R_X86_64_PC32 .init.data+0x00000000000000f8
Error: ./drivers/video/pm2fb.o .text refers to 00000000000014eb R_X86_64_PC32 .init.data+0x00000000000000f4
Error: ./drivers/video/pm2fb.o .text refers to 000000000000150e R_X86_64_PC32 .init.data+0x00000000000000fc
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001515 R_X86_64_PC32 .init.data+0x00000000000000f4
Error: ./drivers/video/pm2fb.o .text refers to 000000000000152d R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/pm2fb.o .text refers to 00000000000015ce R_X86_64_PC32 .init.data+0x00000000000000cc
Error: ./drivers/video/pm2fb.o .text refers to 00000000000015d7 R_X86_64_PC32 .init.data+0x00000000000000d4
Error: ./drivers/video/pm2fb.o .text refers to 00000000000015fa R_X86_64_PC32 .init.data+0x00000000000000d4
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001601 R_X86_64_PC32 .init.data+0x00000000000000cc
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001644 R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001674 R_X86_64_PC32 .init.data+0xfffffffffffffffc
Error: ./drivers/video/pm2fb.o .text refers to 000000000000168e R_X86_64_PC32 .init.data+0xfffffffffffffffc
Error: ./drivers/video/pm2fb.o .text refers to 00000000000016af R_X86_64_32S .init.data+0x0000000000000020
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001724 R_X86_64_PC32 .init.data+0x00000000000000d4
Error: ./drivers/video/pm2fb.o .text refers to 000000000000172b R_X86_64_PC32 .init.data+0x00000000000000cc
Error: ./drivers/video/pm2fb.o .text refers to 0000000000001746 R_X86_64_PC32 .init.data+0x00000000000000fc
Error: ./drivers/video/pm2fb.o .text refers to 000000000000174d R_X86_64_PC32 .init.data+0x00000000000000f4
diffstat:=
drivers/video/pm2fb.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/video/pm2fb.c renamed from drivers/video/pm2fb.c~video_pm2fb_sections +5 -5
@@ -62,7 +62,7 @@/* * Driver data */ -static char *mode__initdata =NULL ; +static char *mode__devinitdata =NULL ;/* * The XFree GLINT driver will (I think to implement hardware cursor
@@ -73,8 +73,8 @@ static char *mode __initdata = NULL;* these flags allow the user to specify that requests for +ve sync * should be silently turned in -ve sync. */ -static int lowhsync__initdata =0 ; -static int lowvsync__initdata =0 ; +static int lowhsync__devinitdata =0 ; +static int lowvsync__devinitdata =0 ;/* * The hardware state of the graphics card that isn't part of the
@@ -97,7 +97,7 @@ struct pm2fb_par* Here we define the default structs fb_fix_screeninfo and fb_var_screeninfo * if we don't use modedb. */ -static struct fb_fix_screeninfo pm2fb_fix__initdata = { +static struct fb_fix_screeninfo pm2fb_fix__devinitdata = { .id ="" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_PSEUDOCOLOR ,
@@ -110,7 +110,7 @@ static struct fb_fix_screeninfo pm2fb_fi/* * Default video mode. In case the modedb doesn't work. */ -static struct fb_var_screeninfo pm2fb_var__initdata = { +static struct fb_var_screeninfo pm2fb_var__devinitdata = {/* "640x480, 8 bpp @ 60 Hz */ .xres =640 , .yres =480 ,
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 7/11 radeonfb: eliminate bad section references
In reply to Randy.DunlapFix radeonfb section references by changing __initdata
to __devinitdata.
Error: ./drivers/video/radeonfb.o .text refers to 0000000000002037 R_X86_64_PC32 .init.data+0x0000000000000003
Error: ./drivers/video/radeonfb.o .text refers to 0000000000002491 R_X86_64_PC32 .init.data
Error: ./drivers/video/radeonfb.o .text refers to 0000000000002870 R_X86_64_PC32 .init.data+0x000000000000000c
Error: ./drivers/video/radeonfb.o .text refers to 0000000000002a21 R_X86_64_PC32 .init.data+0xfffffffffffffffb
diffstat:=
drivers/video/radeonfb.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/video/radeonfb.c renamed from drivers/video/radeonfb.c~video_radfb_sections +4 -4
@@ -658,13 +658,13 @@ static __inline__ int _max(int val1, int* globals */ -static char *mode_option__initdata ; +static char *mode_option;static char noaccel =0 ;static char mirror =0 ; -static int panel_yres__initdata =0 ; -static char force_dfp__initdata =0 ; +static int panel_yres =0 ; +static char force_dfp =0 ;static struct radeonfb_info *board_list =NULL ; -static char nomtrr__initdata =0 ; +static char nomtrr =0 ;/* * prototypes
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Re: [PATCH 7/11] radeonfb: eliminate bad section references
Quoted 8 lines · Randy.Dunlap
Fix radeonfb section references by changing
__initdata
to__devinitdata.Error:
./drivers/video/radeonfb.o.text refers to 0000000000002037R_X86_64_PC32.init.data+0x0000000000000003
Error:./drivers/video/radeonfb.o.text refers to 0000000000002491R_X86_64_PC32.init.data
Error:./drivers/video/radeonfb.o.text refers to 0000000000002870R_X86_64_PC32.init.data+0x000000000000000c
Error:./drivers/video/radeonfb.o.text refers to0000000000002a21R_X86_64_PC32.init.data+0xfffffffffffffffb
Quoted 4 lines
Signed-off-by Randy Dunlap <[email protected]>diffstat:=
drivers/video/radeonfb.c | 8 ++++----
This is the old radenfb driver? Wouldn't you want to fix the one in drivers/video/aty instead?
Signature · 9 lines
Torgeir Veimo <[email protected]> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Re: [PATCH 7/11] radeonfb: eliminate bad section references
Quoted 10 lines · Torgeir Veimo
Quoted 8 lines · Randy.Dunlap
Fix radeonfb section references by changing
__initdata
to__devinitdata.Error:
./drivers/video/radeonfb.o.text refers to 0000000000002037R_X86_64_PC32.init.data+0x0000000000000003
Error:./drivers/video/radeonfb.o.text refers to 0000000000002491R_X86_64_PC32.init.data
Error:./drivers/video/radeonfb.o.text refers to 0000000000002870R_X86_64_PC32.init.data+0x000000000000000c
Error:./drivers/video/radeonfb.o.text refers to0000000000002a21R_X86_64_PC32.init.data+0xfffffffffffffffb
Quoted 8 lines
Quoted 4 lines
Signed-off-by Randy Dunlap <[email protected]>diffstat:=
drivers/video/radeonfb.c| 8 ++++----This is the old radenfb driver? Wouldn't you want to fix the one in
drivers/video/atyinstead?
That was in patch 2/11. The goal was to fix all of them (until they are removed from kernel tree :).
Signature · 8 lines
~Randy ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 8/11 riva: eliminate bad section references
In reply to Randy.DunlapFix riva sections references:
change __initdata to __devinitdata.
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e64 R_X86_64_32S .init.data+0x0000000000000020
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e6f R_X86_64_PC32 .init.data+0x0000000000000004
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e7c R_X86_64_PC32 .init.data+0x0000000000000003
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e93 R_X86_64_PC32 .init.data
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001ec6 R_X86_64_PC32 .init.data+0x000000000000005c
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001ef2 R_X86_64_PC32 .init.data+0x0000000000000034
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f38 R_X86_64_PC32 .init.data+0x000000000000005c
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f41 R_X86_64_PC32 .init.data+0x0000000000000054
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f4f R_X86_64_PC32 .init.data+0x000000000000002c
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f94 R_X86_64_PC32 .init.data+0x000000000000002c
Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000201a R_X86_64_PC32 .init.data+0x0000000000000034
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000002035 R_X86_64_PC32 .init.data+0x0000000000000034
Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000203c R_X86_64_PC32 .init.data+0x000000000000002c
Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000206b R_X86_64_PC32 .init.data+0xfffffffffffffffb
Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000002074 R_X86_64_PC32 .init.data+0x0000000000000034
Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000207b R_X86_64_PC32 .init.data+0x000000000000002c
Error: ./drivers/video/riva/fbdev.o .text refers to 00000000000020e7 R_X86_64_32S .init.data+0x0000000000000020
Error: ./drivers/video/riva/fbdev.o .text refers to 00000000000021cb R_X86_64_32S .init.data+0x0000000000000080
Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000220f R_X86_64_PC32 .init.data+0x000000000000011c
Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000228e R_X86_64_32S .init.data+0x0000000000000080
Error: ./drivers/video/riva/fbdev.o .text refers to 00000000000022ea R_X86_64_PC32 .init.data+0x0000000000000007
diffstat:=
drivers/video/riva/fbdev.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/video/riva/fbdev.c renamed from drivers/video/riva/fbdev.c~video_riva_sections +7 -7
@@ -208,23 +208,23 @@ MODULE_DEVICE_TABLE(pci, rivafb_pci_tbl)* ------------------------------------------------------------------------- */ /* command line data, set in rivafb_setup() */ -static int flatpanel__initdata =-1 ;/* Autodetect later */ -static int forceCRTC__initdata =-1 ; -static int noaccel__initdata =0 ; +static int flatpanel__devinitdata =-1 ;/* Autodetect later */ +static int forceCRTC__devinitdata =-1 ; +static int noaccel__devinitdata =0 ;#ifdef CONFIG_MTRR -static int nomtrr__initdata =0 ; +static int nomtrr__devinitdata =0 ;#endif -static char *mode_option__initdata =NULL ; +static char *mode_option__devinitdata =NULL ;static int strictmode =0 ; -static struct fb_fix_screeninfo __initdata rivafb_fix = { +static struct fb_fix_screeninfo __devinitdata rivafb_fix = { .type =FB_TYPE_PACKED_PIXELS , .xpanstep =1 , .ypanstep =1 , }; -static struct fb_var_screeninfo __initdata rivafb_default_var = { +static struct fb_var_screeninfo __devinitdata rivafb_default_var = { .xres =640 , .yres =480 , .xres_virtual =640 ,
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 9/11 savagefb: eliminate bad section references
In reply to Randy.DunlapFix savagefb section reference:
change __initdata to __devinitdata.
Error: ./drivers/video/savage/savagefb.o .text refers to 0000000000002a50 R_X86_64_PC32 .init.data+0xfffffffffffffffc
diffstat:=
drivers/video/savage/savagefb.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/video/savage/savagefb.c renamed from drivers/video/savage/savagefb.c~video_savfb_sections +1 -1
@@ -73,7 +73,7 @@/* --------------------------------------------------------------------- */ -static char *mode_option__initdata =NULL ; +static char *mode_option__devinitdata =NULL ;static int paletteEnabled =0 ;#ifdef MODULE
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 10/11 sis: eliminate bad section references
In reply to Randy.DunlapFix sis section reference:
change 2 __init functions to be __devinit.
Error: ./drivers/video/sis/sis_main.o .text refers to 0000000000000b5b R_X86_64_PC32 .init.text+0xfffffffffffffffc
diffstat:=
drivers/video/sis/sis_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/sis/sis_main.c renamed from drivers/video/sis/sis_main.c~video_sis_sections +2 -2
@@ -144,7 +144,7 @@ sisfb_setdefaultparms(void)#endif } -static void __init +static void __devinit sisfb_search_vesamode (unsigned int vesamode,BOOLEAN quiet) {int i =0 , j =0 ;
@@ -5939,7 +5939,7 @@ MODULE_PARM_DESC(videoram,#endif #endif -int __init sisfb_init_module (void ) +int __devinit sisfb_init_module (void ) {sisfb_setdefaultparms ();
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
PATCH 11/11 tdfxfb: eliminate bad section references
In reply to Randy.DunlapFix tdfxfb section references:
convert __initdata to __devinitdata.
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000000e6f R_X86_64_PC32 .init.data+0xfffffffffffffffc
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000000fea R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001006 R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001022 R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000103c R_X86_64_PC32 .init.data+0x00000000000000f4
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001067 R_X86_64_PC32 .init.data+0x00000000000000f4
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000106f R_X86_64_PC32 .init.data+0x00000000000000fc
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001084 R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 00000000000010f1 R_X86_64_PC32 .init.data+0x00000000000000cc
Error: ./drivers/video/tdfxfb.o .text refers to 00000000000011b8 R_X86_64_PC32 .init.data+0x00000000000000d4
Error: ./drivers/video/tdfxfb.o .text refers to 00000000000011c1 R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000122b R_X86_64_PC32 .init.data+0x00000000000000d4
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001232 R_X86_64_PC32 .init.data+0x00000000000000cc
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000124a R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001320 R_X86_64_PC32 .init.data+0x00000000000000d4
Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001327 R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000134c R_X86_64_32S .init.data+0x00000000000000c0
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000136a R_X86_64_PC32 .init.data+0x00000000000000e6
Error: ./drivers/video/tdfxfb.o .text refers to 000000000000137d R_X86_64_PC32 .init.data+0x00000000000000e8
Error: ./drivers/video/tdfxfb.o .text refers to 00000000000013b1 R_X86_64_PC32 .init.data+0xfffffffffffffffc
Error: ./drivers/video/tdfxfb.o .text refers to 00000000000013c5 R_X86_64_PC32 .init.data+0xfffffffffffffffc
Error: ./drivers/video/tdfxfb.o .text refers to 00000000000013e4 R_X86_64_32S .init.data+0x0000000000000020
diffstat:=
drivers/video/tdfxfb.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/video/tdfxfb.c renamed from drivers/video/tdfxfb.c~video_tdfxfb_sections +3 -3
@@ -89,7 +89,7 @@#define VOODOO3_MAX_PIXCLOCK 300000#define VOODOO5_MAX_PIXCLOCK 350000 -static struct fb_fix_screeninfo tdfx_fix__initdata = { +static struct fb_fix_screeninfo tdfx_fix__devinitdata = { .id ="3Dfx" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_PSEUDOCOLOR ,
@@ -98,7 +98,7 @@ static struct fb_fix_screeninfo tdfx_fix .accel = FB_ACCEL_3DFX_BANSHEE }; -static struct fb_var_screeninfo tdfx_var__initdata = { +static struct fb_var_screeninfo tdfx_var__devinitdata = {/* "640x480, 8 bpp @ 60 Hz */ .xres =640 , .yres =480 ,
@@ -202,7 +202,7 @@ static unsigned long do_lfb_size(struct*/ static int nopan =0 ;static int nowrap =1 ;// not implemented (yet) -static char *mode_option__initdata =NULL ; +static char *mode_option__devinitdata =NULL ;/* ------------------------------------------------------------------------- * Hardware-specific funcions
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click