* [PATCH v2 1/5] fbdev: section cleanup in arcfb
@ 2010-04-02 11:59 Henrik Kretzschmar
2010-04-02 18:10 `
0 siblings, 1 reply; 2+ messages in thread
From: Henrik Kretzschmar @ 2010-04-02 11:59 UTC (permalink / raw)
To: linux-fbdev
This patch fixes the sections in the arcfb driver, by moving:
* the variables arcfb_fix and arcfb_var from .init.data to .devinit.data
* arcfb_remove() from .text to .devexit.text
WARNING: drivers/video/built-in.o(.devinit.text+0x543): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_var
The function __devinit arcfb_probe() references
a variable __initdata arcfb_var.
If arcfb_var is only used by arcfb_probe then
annotate arcfb_var with a matching annotation.
WARNING: drivers/video/built-in.o(.devinit.text+0x558): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_fix
The function __devinit arcfb_probe() references
a variable __initdata arcfb_fix.
If arcfb_fix is only used by arcfb_probe then
annotate arcfb_fix with a matching annotation.
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
drivers/video/arcfb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c
index 01554d6..3d18039 100644
--- a/drivers/video/arcfb.c
+++ b/drivers/video/arcfb.c
@@ -81,7 +81,7 @@ struct arcfb_par {
spinlock_t lock;
};
-static struct fb_fix_screeninfo arcfb_fix __initdata = {
+static struct fb_fix_screeninfo arcfb_fix __devinitdata = {
.id = "arcfb",
.type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_MONO01,
@@ -91,7 +91,7 @@ static struct fb_fix_screeninfo arcfb_fix __initdata = {
.accel = FB_ACCEL_NONE,
};
-static struct fb_var_screeninfo arcfb_var __initdata = {
+static struct fb_var_screeninfo arcfb_var __devinitdata = {
.xres = 128,
.yres = 64,
.xres_virtual = 128,
@@ -589,7 +589,7 @@ err:
return retval;
}
-static int arcfb_remove(struct platform_device *dev)
+static int __devexit arcfb_remove(struct platform_device *dev)
{
struct fb_info *info = platform_get_drvdata(dev);
@@ -603,7 +603,7 @@ static int arcfb_remove(struct platform_device *dev)
static struct platform_driver arcfb_driver = {
.probe = arcfb_probe,
- .remove = arcfb_remove,
+ .remove = __devexit_p(arcfb_remove),
.driver = {
.name = "arcfb",
},
--
1.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/5] fbdev: section cleanup in arcfb
2010-04-02 11:59 [PATCH v2 1/5] fbdev: section cleanup in arcfb Henrik Kretzschmar
@ 2010-04-02 18:10 `
0 siblings, 0 replies; 2+ messages in thread
From: @ 2010-04-02 18:10 UTC (permalink / raw)
To: linux-fbdev
Hi Hendrik,
[added stable@kernel.org to Cc: as
c2e13037e6794bd0d9de3f9ecabf5615f15c160b was requested to be added, too]
The whole series looks good
(aka. Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>).
On Fri, Apr 02, 2010 at 01:59:30PM +0200, Henrik Kretzschmar wrote:
> This patch fixes the sections in the arcfb driver, by moving:
>
> * the variables arcfb_fix and arcfb_var from .init.data to .devinit.data
>
> * arcfb_remove() from .text to .devexit.text
Maybe add: "This fixes the following warnings issued by modpost:" here?
Thanks
Uwe
> WARNING: drivers/video/built-in.o(.devinit.text+0x543): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_var
> The function __devinit arcfb_probe() references
> a variable __initdata arcfb_var.
> If arcfb_var is only used by arcfb_probe then
> annotate arcfb_var with a matching annotation.
>
> WARNING: drivers/video/built-in.o(.devinit.text+0x558): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_fix
> The function __devinit arcfb_probe() references
> a variable __initdata arcfb_fix.
> If arcfb_fix is only used by arcfb_probe then
> annotate arcfb_fix with a matching annotation.
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-02 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-02 11:59 [PATCH v2 1/5] fbdev: section cleanup in arcfb Henrik Kretzschmar
2010-04-02 18:10 `
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.