From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [GIT PULL] omap2 sparse fixes
Date: Mon, 27 Sep 2010 15:07:47 +0100 [thread overview]
Message-ID: <20100927140747.GA13143@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <E0D41E29EB0DAC4E9F3FF173962E9E9402DB3F8D00@dbde02.ent.ti.com>
On Mon, Sep 27, 2010 at 07:11:37PM +0530, G, Manjunath Kondaiah wrote:
> > Can you please check that? Will not merge for now until we
> > figure out what changes with these patches.
> >
> > Then, I also noticed the following exports getting added:
> >
> > +EXPORT_SYMBOL(omap2_gp_clockevent_set_gptimer);
> > +EXPORT_SYMBOL(omapfb_reserve_sram);
> > +EXPORT_SYMBOL(omap_sram_init);
> >
> > These should not be exported, they are only intended to be
> > called from the low-level platform init code. So exporting
> > them is not the right fix for these.
>
> I have declared these API's as extern functions in respective
> header files.
It's hard to tell whether you're justifying having the EXPORT_SYMBOLs
there or not from your reply.
Just because you add them as declarations to a header file does not mean
you have to add EXPORT_SYMBOLs for them. The only thing that this macro
does is make them available to modules.
In any case, if functions are marked as __init (or similar, which some
are) then they must not be exported - they won't exist when modules are
available to be loaded. Instead, their symbols will point to some
random data which has replaced the code.
next prev parent reply other threads:[~2010-09-27 14:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-22 8:56 [GIT PULL] omap2 sparse fixes G, Manjunath Kondaiah
2010-09-23 22:58 ` Tony Lindgren
2010-09-24 19:43 ` G, Manjunath Kondaiah
2010-09-25 0:19 ` Tony Lindgren
2010-09-25 6:21 ` G, Manjunath Kondaiah
2010-09-27 13:41 ` G, Manjunath Kondaiah
2010-09-27 14:07 ` Russell King - ARM Linux [this message]
2010-09-27 15:00 ` G, Manjunath Kondaiah
2010-09-28 8:12 ` G, Manjunath Kondaiah
2010-09-28 15:21 ` Tony Lindgren
2010-09-28 15:35 ` G, Manjunath Kondaiah
2010-09-28 18:31 ` Tony Lindgren
2010-09-29 19:51 ` G, Manjunath Kondaiah
2010-09-29 21:56 ` Tony Lindgren
2010-09-29 23:46 ` G, Manjunath Kondaiah
2010-10-05 2:14 ` Tony Lindgren
-- strict thread matches above, loose matches on Subject: below --
2010-09-22 8:49 G, Manjunath Kondaiah
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=20100927140747.GA13143@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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).