From: Antonio Quartulli <ordex@autistici.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH 0/3] clean up patches
Date: Thu, 12 Apr 2012 08:50:23 +0200 [thread overview]
Message-ID: <20120412065022.GA8528@ritirata.org> (raw)
In-Reply-To: <20120408223751.GA10101@pandem0nium>
[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]
On Mon, Apr 09, 2012 at 12:37:51AM +0200, Simon Wunderlich wrote:
> Hey Antonio,
>
> thanks a lot for fixing my style bugs!!
>
> There is a little bug in one (one line doubled), otherwise:
>
> Reviewed-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
>
> Cheers,
> Simon
Hi guys,
I'm sorry, but I didn't make this "double line" fix in the last pull-request.
So, please commit this patches as they are. We need another clean up patch that
will be sent within the next pull-request.
Cheers,
>
> On Sat, Apr 07, 2012 at 11:06:06PM +0200, Antonio Quartulli wrote:
> > ** this patches are for batman-ad/next ***
> >
> > After my first pull request, David S. Miller hardly suggested me to fix some
> > problems that I am going to summarise here. Please respect such suggestions in
> > your next patches:
> >
> > 1) Multi-line comments must end with */ on a new line:
> >
> > /* ..
> > * ..
> > */
> >
> > 2) if we use #ifdef in our headers to redefine some functions depending on the
> > fact that we are compiling a component or not, we must use static inline
> > functions doing nothing with the correct parameters instead of simple
> > "foo(...)". In this way we can allow the compiler to check for the types and the
> > number of arguments:
> >
> > Instead of:
> >
> > #define bla_init(...) (1)
> >
> > we must do:
> >
> > static inline bla_init(struct bat_priv *bat_priv)
> > {
> > return 1;
> > }
> >
> >
> > Other than David's complaining I also get a suggestion from Bernd Petrovitsch
> > about the type of stp_addr (it should be "static const uint8_t []" instead of
> > "uint8_t []" only). I applied such change in patch 2/3.
> >
> > Cheers,
> >
> >
> >
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2012-04-12 6:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-07 21:06 [B.A.T.M.A.N.] [PATCH 0/3] clean up patches Antonio Quartulli
2012-04-07 21:06 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: fix comments ending style Antonio Quartulli
2012-04-08 22:38 ` Simon Wunderlich
2012-04-11 20:52 ` Antonio Quartulli
2012-04-07 21:06 ` [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: use static const for STP constant address Antonio Quartulli
2012-04-07 21:06 ` [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: use static inline functions to fake not compiled-in routines Antonio Quartulli
2012-04-08 22:37 ` [B.A.T.M.A.N.] [PATCH 0/3] clean up patches Simon Wunderlich
2012-04-12 6:50 ` Antonio Quartulli [this message]
2012-04-12 6:53 ` Marek Lindner
2012-04-12 7:02 ` Antonio Quartulli
2012-04-12 6:56 ` 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=20120412065022.GA8528@ritirata.org \
--to=ordex@autistici.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