From: Felipe Balbi <felipe.balbi@nokia.com>
To: "ext Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: "Balbi Felipe (Nokia-MS/Helsinki)" <felipe.balbi@nokia.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Section Mismatches
Date: Mon, 9 Aug 2010 09:08:31 +0300 [thread overview]
Message-ID: <20100809060831.GF2841@nokia.com> (raw)
In-Reply-To: <20100804122659.GA13814@pengutronix.de>
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.
>Do you think that's wrong?
no, no. Not saying that. Just wondering what will happen with several
drivers, will they change from _driver to _ops or try to stop saving
probe() pointers into the driver structure.
--
balbi
DefectiveByDesign.org
next prev parent reply other threads:[~2010-08-09 6:08 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 [this message]
2010-08-09 6:49 ` Uwe Kleine-König
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=20100809060831.GF2841@nokia.com \
--to=felipe.balbi@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.