From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH v2 0/4] batman-adv: cleanups patches for Linux 4.12
Date: Wed, 22 Feb 2017 17:16:01 +0100 [thread overview]
Message-ID: <82659786.7iirk8N2EY@bentobox> (raw)
[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]
Hi,
here is the second version of cleanup patches. It addresses a couple of new
checks from checkpatch.pl:
* CHECK: Macro argument reuse '%s' - possible side-effects?
* CHECK: Unbalanced braces around else statement
The last check currently creates a lot of false positives but a fix for it was
already submitted to Andrew Morton (+ accepted).
It also contains a patch which converts the preprocessor blocks in
multicast.c to simple inline checks. The compiler can directly take care of
removing the unused code when some CONFIG_* option disabled.
changes in v2:
* rebased on top of master
* split "Fix possible side-effects in macros" in two patches
* converted BATADV_PRINT_VID to an inline function
Kind regards,
Sven
Sven Eckelmann (4):
batman-adv: Remove preprocessor checks in multicast.c
batman-adv: Fix unbalanced braces around else statement
batman-adv: Fix possible side-effects in _batadv_dbg
batman-adv: Convert BATADV_PRINT_VID macro to function
net/batman-adv/bridge_loop_avoidance.c | 38 +++++++++++++++---------------
net/batman-adv/distributed-arp-table.c | 6 ++---
net/batman-adv/log.h | 5 ++--
net/batman-adv/main.h | 16 +++++++++++--
net/batman-adv/multicast.c | 16 +++++--------
net/batman-adv/translation-table.c | 42 ++++++++++++++++++----------------
6 files changed, 67 insertions(+), 56 deletions(-)
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2017-02-22 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 16:16 Sven Eckelmann [this message]
2017-02-22 16:16 ` [B.A.T.M.A.N.] [PATCH v2 1/4] batman-adv: Remove preprocessor checks in multicast.c Sven Eckelmann
2017-02-22 16:16 ` [B.A.T.M.A.N.] [PATCH v2 2/4] batman-adv: Fix unbalanced braces around else statement Sven Eckelmann
2017-02-22 16:16 ` [B.A.T.M.A.N.] [PATCH v2 3/4] batman-adv: Fix possible side-effects in _batadv_dbg Sven Eckelmann
2017-02-22 16:16 ` [B.A.T.M.A.N.] [PATCH v2 4/4] batman-adv: Convert BATADV_PRINT_VID macro to function Sven Eckelmann
2017-02-28 17:18 ` [B.A.T.M.A.N.] [PATCH v2 0/4] batman-adv: cleanups patches for Linux 4.12 Sven Eckelmann
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=82659786.7iirk8N2EY@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