From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] batctl: Work around uclibc collision for __unused
Date: Tue, 18 Oct 2016 14:29:43 +0200 [thread overview]
Message-ID: <3298628.UYncQaiJYi@bentobox> (raw)
In-Reply-To: <20160904182331.18118-1-sven@narfation.org>
[-- Attachment #1: Type: text/plain, Size: 836 bytes --]
On Sonntag, 4. September 2016 20:23:31 CEST Sven Eckelmann wrote:
> uclibc on 64 bit systems uses struct members called __unused. These
> conflict with the definition of __unused in batctl. Such a conflict results
> in a build error because the struct member will be replaced with the
> __attribute__((unused)).
>
> This can be avoided by renaming it to the Linux kernel name
> "__maybe_unused".
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> Tested-by: Andreas Pape <apape@phoenixcontact.com>
> ---
> genl.c | 4 ++--
> main.h | 2 +-
> netlink.c | 10 +++++-----
> tp_meter.c | 5 +++--
> 4 files changed, 11 insertions(+), 10 deletions(-)
Applied in 7402351d3bef02d8dac2e9b68a9e3eca472fd33d [1].
Kind regards,
Sven
[1] https://git.open-mesh.org/batctl.git/commit/7402351d3bef02d8dac2e9b68a9e3eca472fd33d
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
prev parent reply other threads:[~2016-10-18 12:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-04 18:23 [B.A.T.M.A.N.] [PATCH] batctl: Work around uclibc collision for __unused Sven Eckelmann
2016-09-15 14:02 ` [B.A.T.M.A.N.] " Andreas Pape
2016-10-18 12:29 ` Sven Eckelmann [this message]
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=3298628.UYncQaiJYi@bentobox \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.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).