From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Section Mismatches
Date: Mon, 9 Aug 2010 08:49:36 +0200 [thread overview]
Message-ID: <20100809064936.GA14690@pengutronix.de> (raw)
In-Reply-To: <20100809060831.GF2841@nokia.com>
Hello Felipe,
On Mon, Aug 09, 2010 at 09:08:31AM +0300, Felipe Balbi wrote:
> On Wed, Aug 04, 2010 at 02:26:59PM +0200, ext Uwe Kleine-König wrote:
>> Hi Felipe,
>>
>> On Wed, Aug 04, 2010 at 02:11:56PM +0300, Felipe Balbi wrote:
>>> I see that your commit 0db252452378aa7a9e001a13226e1cd1dc61453d removed
>>> the *_driver from the symbol whitelist when referencing init section
>>> (heh, it took a while), but could you explain what's the rationale
>>> behind that ?
>> The rational is that it's AFAIK wrong if a driver references a function
>> that lives in .init.text.
>
> how about all the driver structures ? should they remove __init from
> probe() or stop saving the probe() function's pointer ?
>
> That can be done for e.g. platform drivers, but for cpufreq_driver
> structures, I can't see a way to avoid a section mismatch (not without
> changing the cpufreq code a bit, at least). And, to me, that init has to
> live in the .init.text section as it's pretty much only called to
> initialize the frequency table for the cpu.
I think they need handling similar handling like the usb gadget drivers.
See
http://thread.gmane.org/gmane.linux.ports.ppc.embedded/37291/focus=34468
for the changes I suggested there.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2010-08-09 6:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 11:11 Section Mismatches Felipe Balbi
2010-08-04 12:26 ` Uwe Kleine-König
2010-08-09 6:08 ` Felipe Balbi
2010-08-09 6:49 ` Uwe Kleine-König [this message]
2010-08-09 10:31 ` Felipe Balbi
-- strict thread matches above, loose matches on Subject: below --
2007-05-31 1:02 section mismatches Andrew Morton
2007-05-31 4:05 ` Jeremy Fitzhardinge
2007-05-31 4:40 ` Yinghai Lu
2007-05-31 4:52 ` Sam Ravnborg
2007-05-31 4:50 ` Sam Ravnborg
2007-05-31 4:56 ` Andrew Morton
2007-05-31 20:53 ` Sam Ravnborg
2007-05-22 21:52 Andrew Morton
2007-05-22 23:15 ` Jeremy Fitzhardinge
2007-05-23 0:12 ` Chris Wright
2007-05-23 6:54 ` Chris Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100809064936.GA14690@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=felipe.balbi@nokia.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).