diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-12-27 16:55:49 -0500 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-01-03 11:02:55 -0500 |
commit | c5627f65d6b860023f8ee985df61c20617dd21b5 (patch) | |
tree | 4221aa13fa24f37f5373ec629e16cda253323c7e /drivers/video/grvga.c | |
parent | e2f55b54556ae6a3a365afead6bc8e46a2013d7f (diff) |
grvga: fix section mismatch warnings
Fix following section mismatch warnings:
WARNING: drivers/video/built-in.o(.devinit.text+0x110): Section mismatch in reference from the function grvga_probe() to the function .init.text:grvga_parse_custom()
The function __devinit grvga_probe() references
a function __init grvga_parse_custom().
If grvga_parse_custom is only used by grvga_probe then
annotate grvga_parse_custom with a matching annotation.
WARNING: drivers/video/built-in.o(.devinit.text+0x1f8): Section mismatch in reference from the function grvga_probe() to the variable .init.data:grvga_fix
The function __devinit grvga_probe() references
a variable __initdata grvga_fix.
If grvga_fix is only used by grvga_probe then
annotate grvga_fix with a matching annotation.
WARNING: drivers/video/built-in.o(.devinit.text+0x204): Section mismatch in reference from the function grvga_probe() to the variable .init.data:grvga_fix
The function __devinit grvga_probe() references
a variable __initdata grvga_fix.
If grvga_fix is only used by grvga_probe then
annotate grvga_fix with a matching annotation.
grvga_fix is used in a function annotated __devinit - so
match this using a __devinitdata annotation on grvga_fix.
grvga_parse_custom() is used in a function annotated
__devinit - so match this by annotating grvga_parse_custom()
with __devinit too.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/grvga.c')
-rw-r--r-- | drivers/video/grvga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/grvga.c b/drivers/video/grvga.c index f37e02538203..da066c210923 100644 --- a/drivers/video/grvga.c +++ b/drivers/video/grvga.c | |||
@@ -70,7 +70,7 @@ static const struct fb_videomode grvga_modedb[] = { | |||
70 | } | 70 | } |
71 | }; | 71 | }; |
72 | 72 | ||
73 | static struct fb_fix_screeninfo grvga_fix __initdata = { | 73 | static struct fb_fix_screeninfo grvga_fix __devinitdata = { |
74 | .id = "AG SVGACTRL", | 74 | .id = "AG SVGACTRL", |
75 | .type = FB_TYPE_PACKED_PIXELS, | 75 | .type = FB_TYPE_PACKED_PIXELS, |
76 | .visual = FB_VISUAL_PSEUDOCOLOR, | 76 | .visual = FB_VISUAL_PSEUDOCOLOR, |
@@ -267,7 +267,7 @@ static struct fb_ops grvga_ops = { | |||
267 | .fb_imageblit = cfb_imageblit | 267 | .fb_imageblit = cfb_imageblit |
268 | }; | 268 | }; |
269 | 269 | ||
270 | static int __init grvga_parse_custom(char *options, | 270 | static int __devinit grvga_parse_custom(char *options, |
271 | struct fb_var_screeninfo *screendata) | 271 | struct fb_var_screeninfo *screendata) |
272 | { | 272 | { |
273 | char *this_opt; | 273 | char *this_opt; |