* [PATCH 1/11] asiliantfb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
@ 2005-03-09 18:10 ` Randy.Dunlap
2005-03-09 18:11 ` [PATCH 2/11] atyfb: " Randy.Dunlap
` (9 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:10 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/asiliantfb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -Naurp ./drivers/video/asiliantfb.c~video_asil_sections ./drivers/video/asiliantfb.c
--- ./drivers/video/asiliantfb.c~video_asil_sections 2005-03-01 23:38:26.000000000 -0800
+++ ./drivers/video/asiliantfb.c 2005-03-07 20:30:12.000000000 -0800
@@ -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(struct
write_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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 2/11] atyfb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
2005-03-09 18:10 ` [PATCH 1/11] asiliantfb: " Randy.Dunlap
@ 2005-03-09 18:11 ` Randy.Dunlap
2005-03-09 18:15 ` [PATCH 3/11] imsttfb: " Randy.Dunlap
` (8 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:11 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/aty/atyfb_base.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff -Naurp ./drivers/video/aty/atyfb_base.c~video_atyfb_sections ./drivers/video/aty/atyfb_base.c
--- ./drivers/video/aty/atyfb_base.c~video_atyfb_sections 2005-03-01 23:38:13.000000000 -0800
+++ ./drivers/video/aty/atyfb_base.c 2005-03-08 15:37:10.000000000 -0800
@@ -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(str
return 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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 3/11] imsttfb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
2005-03-09 18:10 ` [PATCH 1/11] asiliantfb: " Randy.Dunlap
2005-03-09 18:11 ` [PATCH 2/11] atyfb: " Randy.Dunlap
@ 2005-03-09 18:15 ` Randy.Dunlap
2005-03-09 18:17 ` [PATCH 4/11] kyro: " Randy.Dunlap
` (7 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:15 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/imsttfb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -Naurp ./drivers/video/imsttfb.c~vid_imsttfb_sections ./drivers/video/imsttfb.c
--- ./drivers/video/imsttfb.c~vid_imsttfb_sections 2005-03-01 23:38:09.000000000 -0800
+++ ./drivers/video/imsttfb.c 2005-03-07 20:40:35.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 4/11] kyro: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (2 preceding siblings ...)
2005-03-09 18:15 ` [PATCH 3/11] imsttfb: " Randy.Dunlap
@ 2005-03-09 18:17 ` Randy.Dunlap
2005-03-09 18:18 ` [PATCH 5/11] neofb: " Randy.Dunlap
` (6 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:17 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/kyro/fbdev.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff -Naurp ./drivers/video/kyro/fbdev.c~video_kyro_sections ./drivers/video/kyro/fbdev.c
--- ./drivers/video/kyro/fbdev.c~video_kyro_sections 2005-03-01 23:37:31.000000000 -0800
+++ ./drivers/video/kyro/fbdev.c 2005-03-08 13:57:10.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 5/11] neofb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (3 preceding siblings ...)
2005-03-09 18:17 ` [PATCH 4/11] kyro: " Randy.Dunlap
@ 2005-03-09 18:18 ` Randy.Dunlap
2005-03-09 18:19 ` [PATCH 6/11] pm2fb: " Randy.Dunlap
` (5 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:18 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix neofb section reference to __initdata: make it __devinitdata.
Error: ./drivers/video/neofb.o .text refers to 0000000000001fb4 R_X86_64_PC32 .init.data+0xfffffffffffffffc
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/neofb.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Naurp ./drivers/video/neofb.c~video_neofb_sections ./drivers/video/neofb.c
--- ./drivers/video/neofb.c~video_neofb_sections 2005-03-01 23:38:12.000000000 -0800
+++ ./drivers/video/neofb.c 2005-03-07 20:50:40.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 6/11] pm2fb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (4 preceding siblings ...)
2005-03-09 18:18 ` [PATCH 5/11] neofb: " Randy.Dunlap
@ 2005-03-09 18:19 ` Randy.Dunlap
2005-03-09 18:23 ` [PATCH 7/11] radeonfb: " Randy.Dunlap
` (4 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:19 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/pm2fb.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff -Naurp ./drivers/video/pm2fb.c~video_pm2fb_sections ./drivers/video/pm2fb.c
--- ./drivers/video/pm2fb.c~video_pm2fb_sections 2005-03-01 23:38:33.000000000 -0800
+++ ./drivers/video/pm2fb.c 2005-03-08 13:51:26.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 7/11] radeonfb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (5 preceding siblings ...)
2005-03-09 18:19 ` [PATCH 6/11] pm2fb: " Randy.Dunlap
@ 2005-03-09 18:23 ` Randy.Dunlap
2005-03-09 18:35 ` Torgeir Veimo
2005-03-09 18:24 ` [PATCH 8/11] riva: " Randy.Dunlap
` (3 subsequent siblings)
10 siblings, 1 reply; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:23 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/radeonfb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -Naurp ./drivers/video/radeonfb.c~video_radfb_sections ./drivers/video/radeonfb.c
--- ./drivers/video/radeonfb.c~video_radfb_sections 2005-03-01 23:38:32.000000000 -0800
+++ ./drivers/video/radeonfb.c 2005-03-08 15:12:05.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 7/11] radeonfb: eliminate bad section references
2005-03-09 18:23 ` [PATCH 7/11] radeonfb: " Randy.Dunlap
@ 2005-03-09 18:35 ` Torgeir Veimo
2005-03-09 18:59 ` Randy.Dunlap
0 siblings, 1 reply; 14+ messages in thread
From: Torgeir Veimo @ 2005-03-09 18:35 UTC (permalink / raw)
To: linux-fbdev-devel
On Wed, 2005-03-09 at 10:23 -0800, Randy.Dunlap wrote:
> Fix 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
>
> Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
>
> 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?
--
Torgeir Veimo <torgeir@pobox.com>
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 7/11] radeonfb: eliminate bad section references
2005-03-09 18:35 ` Torgeir Veimo
@ 2005-03-09 18:59 ` Randy.Dunlap
0 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:59 UTC (permalink / raw)
To: linux-fbdev-devel
Torgeir Veimo wrote:
> On Wed, 2005-03-09 at 10:23 -0800, Randy.Dunlap wrote:
>
>>Fix 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
>>
>>Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
>>
>>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?
That was in patch 2/11. The goal was to fix all of them (until they
are removed from kernel tree :).
--
~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
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 8/11] riva: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (6 preceding siblings ...)
2005-03-09 18:23 ` [PATCH 7/11] radeonfb: " Randy.Dunlap
@ 2005-03-09 18:24 ` Randy.Dunlap
2005-03-09 18:25 ` [PATCH 9/11] savagefb: " Randy.Dunlap
` (2 subsequent siblings)
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:24 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/riva/fbdev.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff -Naurp ./drivers/video/riva/fbdev.c~video_riva_sections ./drivers/video/riva/fbdev.c
--- ./drivers/video/riva/fbdev.c~video_riva_sections 2005-03-08 14:13:34.000000000 -0800
+++ ./drivers/video/riva/fbdev.c 2005-03-08 14:15:10.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 9/11] savagefb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (7 preceding siblings ...)
2005-03-09 18:24 ` [PATCH 8/11] riva: " Randy.Dunlap
@ 2005-03-09 18:25 ` Randy.Dunlap
2005-03-09 18:26 ` [PATCH 10/11] sis: " Randy.Dunlap
2005-03-09 18:27 ` [PATCH 11/11] tdfxfb: " Randy.Dunlap
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:25 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix savagefb section reference:
change __initdata to __devinitdata.
Error: ./drivers/video/savage/savagefb.o .text refers to 0000000000002a50 R_X86_64_PC32 .init.data+0xfffffffffffffffc
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/savage/savagefb.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Naurp ./drivers/video/savage/savagefb.c~video_savfb_sections ./drivers/video/savage/savagefb.c
--- ./drivers/video/savage/savagefb.c~video_savfb_sections 2005-03-01 23:38:09.000000000 -0800
+++ ./drivers/video/savage/savagefb.c 2005-03-08 13:20:53.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 10/11] sis: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (8 preceding siblings ...)
2005-03-09 18:25 ` [PATCH 9/11] savagefb: " Randy.Dunlap
@ 2005-03-09 18:26 ` Randy.Dunlap
2005-03-09 18:27 ` [PATCH 11/11] tdfxfb: " Randy.Dunlap
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:26 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/sis/sis_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Naurp ./drivers/video/sis/sis_main.c~video_sis_sections ./drivers/video/sis/sis_main.c
--- ./drivers/video/sis/sis_main.c~video_sis_sections 2005-03-01 23:38:13.000000000 -0800
+++ ./drivers/video/sis/sis_main.c 2005-03-08 13:28:32.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread* [PATCH 11/11] tdfxfb: eliminate bad section references
2005-03-09 18:08 [PATCH 0/11] framebuffer: eliminate bad section references Randy.Dunlap
` (9 preceding siblings ...)
2005-03-09 18:26 ` [PATCH 10/11] sis: " Randy.Dunlap
@ 2005-03-09 18:27 ` Randy.Dunlap
10 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2005-03-09 18:27 UTC (permalink / raw)
To: adaplas, akpm; +Cc: linux-fbdev-devel
Fix 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
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/video/tdfxfb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -Naurp ./drivers/video/tdfxfb.c~video_tdfxfb_sections ./drivers/video/tdfxfb.c
--- ./drivers/video/tdfxfb.c~video_tdfxfb_sections 2005-03-01 23:37:51.000000000 -0800
+++ ./drivers/video/tdfxfb.c 2005-03-08 13:37:00.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 14+ messages in thread