@@ -1227,7 +1227,7 @@ static struct fb_ops pm3fb_ops = {/* mmio register are already mapped when this function is called *//* the pm3fb_fix.smem_start is also set */-staticunsignedlongpm3fb_size_memory(structpm3_par*par)+staticunsignedlong__devinitpm3fb_size_memory(structpm3_par*par){unsignedlongmemsize=0;unsignedlongtempBypass,i,temp1,temp2;
From: Krzysztof Helt <hidden> Date: 2008-01-12 04:14:57
On Fri, 11 Jan 2008 17:04:01 -0800
Randy Dunlap [off-list ref] wrote:
From: Randy Dunlap <redacted>
Add __devinit to one function to clean up section mismatch warnings:
/* mmio register are already mapped when this function is called */
/* the pm3fb_fix.smem_start is also set */
-static unsigned long pm3fb_size_memory(struct pm3_par *par)
+static unsigned long __devinit pm3fb_size_memory(struct pm3_par *par)
{
Exactly the same patch is already in the -mm tree (by Adrian Bunk):
drivers-video-pm3fbc-section-fix.patch
Regards,
Krzysztof
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
From: Sam Ravnborg <hidden> Date: 2008-01-12 10:34:13
On Sat, Jan 12, 2008 at 05:18:29AM +0100, Krzysztof Helt wrote:
On Fri, 11 Jan 2008 17:04:01 -0800
Randy Dunlap [off-list ref] wrote:
quoted
From: Randy Dunlap <redacted>
Add __devinit to one function to clean up section mismatch warnings:
/* mmio register are already mapped when this function is called */
/* the pm3fb_fix.smem_start is also set */
-static unsigned long pm3fb_size_memory(struct pm3_par *par)
+static unsigned long __devinit pm3fb_size_memory(struct pm3_par *par)
{
Exactly the same patch is already in the -mm tree (by Adrian Bunk):
drivers-video-pm3fbc-section-fix.patch
Such obviously correct fixes should be pushed towards mainline sooner.
With all the warnings being fixed lately by Randy and others we are now
at the point where it is sensible to turn this check from a warning
to an error so we really get them fixed before hitting -mm or -mainline
with new code.
It will most likely happen at -rc1 time and then I will see how much
noise it results in.
The rationale is that a precentage of the warnings are actually
real bugs waiting to trigger. This patch is not one of these but
it does hide the real ones.
Sam
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace