grvga: fix section mismatch warnings
Quoted 28 lines · Sam Ravnborg
Quoted 1 line
From
7368b53b755a66c69b2b5ede30e2effe960ad59aMon Sep 17 00:00:00 2001From: Sam Ravnborg <[email protected]>
Date: Tue, 27 Dec 2011 22:55:49 +0100
Subject: [PATCH] grvga: fix section mismatch warningsFix 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__devinitgrvga_probe()references
a function__initgrvga_parse_custom().
Ifgrvga_parse_customis only used bygrvga_probethen
annotategrvga_parse_customwith 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__devinitgrvga_probe()references
a variable__initdatagrvga_fix.
Ifgrvga_fixis only used bygrvga_probethen
annotategrvga_fixwith 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__devinitgrvga_probe()references
a variable__initdatagrvga_fix.
Ifgrvga_fixis only used bygrvga_probethen
annotategrvga_fixwith a matching annotation.
grvga_fixis used in a function annotated__devinit- so match this using a__devinitdataannotation ongrvga_fix.
Quoted 7 lines
grvga_parse_custom()is used in a function annotated__devinit- so match this by annotatinggrvga_parse_custom()with__devinittoo.Signed-off-by Sam Ravnborg <[email protected]>Cc Kristoffer Glembo <[email protected]>Cc Florian Tobias Schandinat <[email protected]>
Applied this patch.
Thanks,
Florian Tobias Schandinat
Quoted 26 lines
--- drivers/video/grvga.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/video/grvga.c +2
-2@@ -70,7 +70,7 @@ static const struct fb_videomode grvga_modedb[] = { } }; -static struct fb_fix_screeninfo grvga_fix__initdata = { +static struct fb_fix_screeninfo grvga_fix__devinitdata = { .id ="AG SVGACTRL" , .type =FB_TYPE_PACKED_PIXELS , .visual =FB_VISUAL_PSEUDOCOLOR ,@@ -267,7 +267,7 @@ static struct fb_ops grvga_ops = { .fb_imageblit = cfb_imageblit }; -static int __init grvga_parse_custom (char *options, +static int __devinit grvga_parse_custom (char *options,struct fb_var_screeninfo *screendata) {char *this_opt;