All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 0/3] clean up patches
@ 2012-04-07 21:06 Antonio Quartulli
  2012-04-07 21:06 ` [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: fix comments ending style Antonio Quartulli
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Antonio Quartulli @ 2012-04-07 21:06 UTC (permalink / raw)
  To: b.a.t.m.a.n

** 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,



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-04-12  7:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2012-04-12  6:53     ` Marek Lindner
2012-04-12  7:02       ` Antonio Quartulli
2012-04-12  6:56     ` Sven Eckelmann

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.