From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Caroline Tice <cmtice@google.com>
Cc: Neutron Soutmun <neo.neutron@gmail.com>,
20151006012711.GA5372@oxygen.gentoo.org,
netfilter-devel@vger.kernel.org,
Mike Frysinger <vapier@gentoo.org>
Subject: Re: [PATCH v4] libmnl: Drop the EXPORT_SYMBOL() tags
Date: Mon, 14 Dec 2015 20:25:17 +0100 [thread overview]
Message-ID: <20151214192517.GA13160@salvia> (raw)
In-Reply-To: <CABtf2+TgFhMvGPjFR=w91wmaGgtSUTaF-mxxKY7HXsxeQ9u3Tw@mail.gmail.com>
On Mon, Dec 14, 2015 at 09:34:23AM -0800, Caroline Tice wrote:
> I did talk with some Clang developers initially, to try to determine
> if this was in fact a Clang bug and therefore would need to be fixed
> in Clang. The answer I got was a resounding no, this is not a Clang
> bug; it is, in fact a GCC bug -- an example of GCC being overly
> permissive (which, sadly, is not that uncommon). After a function has
> been *declared* (the header, but no code), it is still ok to change
> the visibility of the function. However after the function has
> actually been *defined*, changing the visibility of the function is
> illegal. That is why moving all of the EXPORT_SYMBOL statements from
> after the function code to before the function code fixes the problem,
> as far as Clang is concerned.
Thanks, so we already got feedback from them.
Then I think we upstream this patch:
http://patchwork.ozlabs.org/patch/537980/
But I'd suggest the MNL_EXPORT is renamed to EXPORT_SYMBOL and it is
placed in the .c files if possible, I don't think we need to expose
this through the library headers (every function declared there is
indeed exported, so that information is not relevant there).
Will anyone help sending a new version to end up with this issue?
Thanks.
next prev parent reply other threads:[~2015-12-14 19:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-29 19:07 [PATCH v4] libmnl: Drop the EXPORT_SYMBOL() tags Mike Frysinger
2015-11-01 22:09 ` Jan Engelhardt
2015-11-14 0:45 ` Neutron Soutmun
2015-12-14 12:37 ` Pablo Neira Ayuso
2015-12-14 17:34 ` Caroline Tice
2015-12-14 17:37 ` Caroline Tice
2015-12-14 19:25 ` Pablo Neira Ayuso [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-06 1:27 Neutron Soutmun
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=20151214192517.GA13160@salvia \
--to=pablo@netfilter.org \
--cc=20151006012711.GA5372@oxygen.gentoo.org \
--cc=cmtice@google.com \
--cc=neo.neutron@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=vapier@gentoo.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 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.