* Fw: [KJ][Patch] fix kbuild warning in pm2fb.o
@ 2006-04-04 3:35 Andrew Morton
2006-04-04 12:30 ` Antonino A. Daplas
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2006-04-04 3:35 UTC (permalink / raw)
To: linux-fbdev-devel; +Cc: Darren Jenkins
Maybe pm2fb_set_par() should be __devinit?
Begin forwarded message:
Date: Mon, 03 Apr 2006 20:27:36 +1000
From: "Darren Jenkins\\" <darrenrjenkins@gmail.com>
To: kernel Janitors <kernel-janitors@lists.osdl.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [KJ][Patch] fix kbuild warning in pm2fb.o
G'day list
There are a couple of Section mismatch problems in drivers/video/pm2fb.o
WARNING: drivers/video/pm2fb.o - Section mismatch: reference
to .init.data: from .text after 'pm2fb_set_par' (at offset 0xd5d)
WARNING: drivers/video/pm2fb.o - Section mismatch: reference
to .init.data: from .text after 'pm2fb_set_par' (at offset 0xd82)
They are caused because pm2fb_set_par() uses lowhsync and lowvsync which
are marked __devinitdata.
The patch below simply removes the __devinitdata annotations.
Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
--- 2.6.16-git20/drivers/video/pm2fb.c.orig 2006-04-03 19:08:51.000000000 +1000
+++ 2.6.16-git20/drivers/video/pm2fb.c 2006-04-03 19:09:34.000000000 +1000
@@ -73,8 +73,8 @@ static char *mode __devinitdata = NULL;
* these flags allow the user to specify that requests for +ve sync
* should be silently turned in -ve sync.
*/
-static int lowhsync __devinitdata = 0;
-static int lowvsync __devinitdata = 0;
+static int lowhsync = 0;
+static int lowvsync = 0;
/*
* The hardware state of the graphics card that isn't part of the
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fw: [KJ][Patch] fix kbuild warning in pm2fb.o
2006-04-04 3:35 Fw: [KJ][Patch] fix kbuild warning in pm2fb.o Andrew Morton
@ 2006-04-04 12:30 ` Antonino A. Daplas
0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2006-04-04 12:30 UTC (permalink / raw)
To: linux-fbdev-devel; +Cc: Darren Jenkins
Andrew Morton wrote:
> Maybe pm2fb_set_par() should be __devinit?
No, Darren's patch is correct.
Tony
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-04 12:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04 3:35 Fw: [KJ][Patch] fix kbuild warning in pm2fb.o Andrew Morton
2006-04-04 12:30 ` Antonino A. Daplas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).