* [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
@ 2007-12-13 14:18 Denis V. Lunev
[not found] ` <20071213141842.GA9939-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2007-12-13 14:50 ` David Miller
0 siblings, 2 replies; 6+ messages in thread
From: Denis V. Lunev @ 2007-12-13 14:18 UTC (permalink / raw)
To: davem; +Cc: containers, devel, netdev
There are to many spaces between type and function name in the declaration
of fib rules manipulation routines. Eat them and save a couple of lines.
Signed-off-by: Denis V. Lunev <den@openvz.org>
---
include/net/fib_rules.h | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h
index 2364db1..d20db25 100644
--- a/include/net/fib_rules.h
+++ b/include/net/fib_rules.h
@@ -101,14 +101,12 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
return frh->table;
}
-extern int fib_rules_register(struct fib_rules_ops *);
-extern int fib_rules_unregister(struct fib_rules_ops *);
-extern void fib_rules_cleanup_ops(struct fib_rules_ops *);
+extern int fib_rules_register(struct fib_rules_ops *);
+extern int fib_rules_unregister(struct fib_rules_ops *);
+extern void fib_rules_cleanup_ops(struct fib_rules_ops *);
-extern int fib_rules_lookup(struct fib_rules_ops *,
- struct flowi *, int flags,
- struct fib_lookup_arg *);
-extern int fib_default_rule_add(struct fib_rules_ops *,
- u32 pref, u32 table,
- u32 flags);
+extern int fib_rules_lookup(struct fib_rules_ops *, struct flowi *, int flags,
+ struct fib_lookup_arg *);
+extern int fib_default_rule_add(struct fib_rules_ops *, u32 pref, u32 table,
+ u32 flags);
#endif
--
1.5.3.rc5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Devel] [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
[not found] ` <20071213141842.GA9939-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
@ 2007-12-13 14:47 ` Alexey Dobriyan
2007-12-13 14:49 ` David Miller
0 siblings, 1 reply; 6+ messages in thread
From: Alexey Dobriyan @ 2007-12-13 14:47 UTC (permalink / raw)
To: Denis V. Lunev
Cc: containers-qjLDD68F18O7TbgM5vRIOg, netdev-u79uwXL29TY76Z2rM5mHXA,
davem-fT/PcQaiUtIeIZ0/mPfg9Q
On Thu, Dec 13, 2007 at 05:18:42PM +0300, Denis V. Lunev wrote:
> There are to many spaces between type and function name in the declaration
> of fib rules manipulation routines. Eat them and save a couple of lines.
If this patch is going in, it would be nice to get rid of "extern" as
well.
Alexey, who once removed all externs from prototypes
and got 4 seconds compilation speedup.
> --- a/include/net/fib_rules.h
> +++ b/include/net/fib_rules.h
> @@ -101,14 +101,12 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
> return frh->table;
> }
>
> -extern int fib_rules_register(struct fib_rules_ops *);
> -extern int fib_rules_unregister(struct fib_rules_ops *);
> -extern void fib_rules_cleanup_ops(struct fib_rules_ops *);
> +extern int fib_rules_register(struct fib_rules_ops *);
> +extern int fib_rules_unregister(struct fib_rules_ops *);
> +extern void fib_rules_cleanup_ops(struct fib_rules_ops *);
>
> -extern int fib_rules_lookup(struct fib_rules_ops *,
> - struct flowi *, int flags,
> - struct fib_lookup_arg *);
> -extern int fib_default_rule_add(struct fib_rules_ops *,
> - u32 pref, u32 table,
> - u32 flags);
> +extern int fib_rules_lookup(struct fib_rules_ops *, struct flowi *, int flags,
> + struct fib_lookup_arg *);
> +extern int fib_default_rule_add(struct fib_rules_ops *, u32 pref, u32 table,
> + u32 flags);
> #endif
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Devel] [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
2007-12-13 14:47 ` [Devel] " Alexey Dobriyan
@ 2007-12-13 14:49 ` David Miller
0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2007-12-13 14:49 UTC (permalink / raw)
To: adobriyan; +Cc: den, containers, netdev, devel
From: Alexey Dobriyan <adobriyan@sw.ru>
Date: Thu, 13 Dec 2007 17:47:07 +0300
> On Thu, Dec 13, 2007 at 05:18:42PM +0300, Denis V. Lunev wrote:
> > There are to many spaces between type and function name in the declaration
> > of fib rules manipulation routines. Eat them and save a couple of lines.
>
> If this patch is going in, it would be nice to get rid of "extern" as
> well.
The convention in the networking headers is to use extern, and
this is pretty consistently done across the board.
If we are going to do this, which I personally see no reason
for, we should do it across the whole networking.
Consistency is much more important than whatever reason you
could come up with to get rid of the 'extern'.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
2007-12-13 14:18 [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h Denis V. Lunev
[not found] ` <20071213141842.GA9939-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
@ 2007-12-13 14:50 ` David Miller
2007-12-13 15:01 ` Denis V. Lunev
1 sibling, 1 reply; 6+ messages in thread
From: David Miller @ 2007-12-13 14:50 UTC (permalink / raw)
To: den; +Cc: containers, devel, netdev
From: "Denis V. Lunev" <den@openvz.org>
Date: Thu, 13 Dec 2007 17:18:42 +0300
> There are to many spaces between type and function name in the declaration
> of fib rules manipulation routines. Eat them and save a couple of lines.
>
> Signed-off-by: Denis V. Lunev <den@openvz.org>
This is just noise and serves nothing other than to invite potential
patch conflicts which makes development harder.
If you happened to be changing these for other reasons, I'd say OK,
but not like this.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
2007-12-13 15:01 ` Denis V. Lunev
@ 2007-12-13 15:00 ` David Miller
0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2007-12-13 15:00 UTC (permalink / raw)
To: den; +Cc: den, containers, devel, netdev
From: "Denis V. Lunev" <den@sw.ru>
Date: Thu, 13 Dec 2007 18:01:32 +0300
> Could you still apply it, or I will need to send fully functional set to
> you including this?
Please combine the changes so that when you change the args
you fixup the whitespace as well.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.
2007-12-13 14:50 ` David Miller
@ 2007-12-13 15:01 ` Denis V. Lunev
2007-12-13 15:00 ` David Miller
0 siblings, 1 reply; 6+ messages in thread
From: Denis V. Lunev @ 2007-12-13 15:01 UTC (permalink / raw)
To: David Miller; +Cc: den, containers, devel, netdev
David Miller wrote:
> From: "Denis V. Lunev" <den@openvz.org>
> Date: Thu, 13 Dec 2007 17:18:42 +0300
>
>> There are to many spaces between type and function name in the declaration
>> of fib rules manipulation routines. Eat them and save a couple of lines.
>>
>> Signed-off-by: Denis V. Lunev <den@openvz.org>
>
> This is just noise and serves nothing other than to invite potential
> patch conflicts which makes development harder.
>
> If you happened to be changing these for other reasons, I'd say OK,
> but not like this.
>
I will add parameter to these calls. The line will be too long after
that. I'd like to separate sense changes from, you perfectly correct,
useless changes :(
Could you still apply it, or I will need to send fully functional set to
you including this?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-12-13 15:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 14:18 [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h Denis V. Lunev
[not found] ` <20071213141842.GA9939-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2007-12-13 14:47 ` [Devel] " Alexey Dobriyan
2007-12-13 14:49 ` David Miller
2007-12-13 14:50 ` David Miller
2007-12-13 15:01 ` Denis V. Lunev
2007-12-13 15:00 ` David Miller
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).