All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [libnetfilter_queue][PATCH 2/2] Declare the define visivility attribute together
Date: Fri, 14 Apr 2017 01:49:11 +0200	[thread overview]
Message-ID: <20170413234911.GA9656@salvia> (raw)
In-Reply-To: <20170413233719.GB8577@salvia>

On Fri, Apr 14, 2017 at 01:37:19AM +0200, Pablo Neira Ayuso wrote:
> On Mon, Apr 10, 2017 at 12:58:04PM -0700, Khem Raj wrote:
> > clang ignores the visibility attribute if its not
> > defined before the definition. As a result these
> > symbols become hidden and consumers of this library
> > fail to link due to these missing symbols
> 
> Also applied, thanks.

Argh. Now we have two different ways to do this accross different
libraries.

Moreover, in you patch:

http://patchwork.ozlabs.org/patch/749223/

+int __EXPORTED nftnl_chain_set_data(struct nftnl_chain *c, uint16_t attr,
                         const void *data, uint32_t data_len)

for what it used to be:

+int nftnl_chain_set_data(struct nftnl_chain *c, uint16_t attr,
                         const void *data, uint32_t data_len)

I wonder if there is a way to do this without a follow up patch to fix
all these indentations.

If this is just to fix clang, can you probably follow this patch instead?

http://git.netfilter.org/libmnl/commit/?id=dcdb47373a375087d2dd8cee5e2a9c66fcc147eb

It would be good if you send me a patch for libnetfilter_queue that
applies on top of you previous patch, or I can simply revert.

I just would like to keep this consistent for all libraries while
fixing this clang issue.

  reply	other threads:[~2017-04-13 23:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-10 19:58 [libnetfilter_queue][PATCH 1/2] Correct typo in the location of internal.h in #include Khem Raj
2017-04-10 19:58 ` [libnetfilter_queue][PATCH 2/2] Declare the define visivility attribute together Khem Raj
2017-04-13 23:37   ` Pablo Neira Ayuso
2017-04-13 23:49     ` Pablo Neira Ayuso [this message]
2017-04-14  1:22       ` Khem Raj
2017-04-14  1:30         ` Pablo Neira Ayuso
2017-04-14  1:31           ` Khem Raj
2017-04-13 23:36 ` [libnetfilter_queue][PATCH 1/2] Correct typo in the location of internal.h in #include Pablo Neira Ayuso

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=20170413234911.GA9656@salvia \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=raj.khem@gmail.com \
    /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.