* [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4
@ 2007-11-01 0:30 Leandro
2007-11-01 11:49 ` [PATCH 7/25] Initial lib for sharing common code between Tommi Saviranta
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Leandro @ 2007-11-01 0:30 UTC (permalink / raw)
To: dccp
[CCID-3/4 lib] Initial lib for sharing common code between ccid-3/ccid-4
The lib is called tfrc_ccids.o
Signed-off-by: Leandro Melo de Sales <leandro@embedded.ufcg.edu.br>
Index: leandro.new/net/dccp/ccids/lib/Makefile
=================================--- leandro.new.orig/net/dccp/ccids/lib/Makefile
+++ leandro.new/net/dccp/ccids/lib/Makefile
@@ -1,4 +1,5 @@
obj-$(CONFIG_IP_DCCP_TFRC_LIB) += dccp_tfrc_lib.o
dccp_tfrc_lib-y := tfrc_module.o tfrc_equation.o \
- packet_history.o loss_interval.o
+ packet_history.o loss_interval.o \
+ tfrc_ccids.o
Index: leandro.new/net/dccp/ccids/lib/tfrc_ccids.c
=================================--- /dev/null
+++ leandro.new/net/dccp/ccids/lib/tfrc_ccids.c
@@ -0,0 +1,14 @@
+/*
+ * net/dccp/ccids/lib/tfrc_ccids.c
+ *
+ * Copyright (c) 2007 Leandro Melo de Sales <leandroal@gmail.com>
+ * Copyright (c) 2005 Ian McDonald <ian.mcdonald@jandi.co.nz>
+ * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
+ * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+#include "tfrc_ccids.h"
Index: leandro.new/net/dccp/ccids/lib/tfrc_ccids.h
=================================--- /dev/null
+++ leandro.new/net/dccp/ccids/lib/tfrc_ccids.h
@@ -0,0 +1,24 @@
+/*
+ * net/dccp/ccids/lib/tfrc_ccids.h
+ *
+ * Copyright (c) 2007 Leandro Melo de Sales <leandroal@gmail.com>
+ * Copyright (c) 2005 Ian McDonald <ian.mcdonald@jandi.co.nz>
+ * Copyright (c) 2005 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
+ * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+#ifndef _TFRC_CCIDS_H_
+#define _TFRC_CCIDS_H_
+
+#include <linux/ktime.h>
+#include <linux/list.h>
+#include <linux/types.h>
+#include <linux/tfrc.h>
+#include <asm/unaligned.h>
+#include "tfrc.h"
+
+#endif /* _TFRC_CCIDS_H_ */
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 7/25] Initial lib for sharing common code between
2007-11-01 0:30 [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Leandro
@ 2007-11-01 11:49 ` Tommi Saviranta
2007-11-01 22:08 ` [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Łeandro Sales
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Tommi Saviranta @ 2007-11-01 11:49 UTC (permalink / raw)
To: dccp
On Wed, Oct 31, 2007 at 21:30:24 -0300, Leandro wrote:
> [CCID-3/4 lib] Initial lib for sharing common code between ccid-3/ccid-4
>
> The lib is called tfrc_ccids.o
> Index: leandro.new/net/dccp/ccids/lib/Makefile
> =================================> --- leandro.new.orig/net/dccp/ccids/lib/Makefile
> +++ leandro.new/net/dccp/ccids/lib/Makefile
> @@ -1,4 +1,5 @@
> obj-$(CONFIG_IP_DCCP_TFRC_LIB) += dccp_tfrc_lib.o
>
> dccp_tfrc_lib-y := tfrc_module.o tfrc_equation.o \
> - packet_history.o loss_interval.o
> + packet_history.o loss_interval.o \
> + tfrc_ccids.o
Whitespace police hits! I don't remember Documentation/CodingStyle
mentioning anything about whitespaces in Makefiles. Nevertheless,
packet_history.o is indented here with spaces, tfrc_ccids.o with
tabulators, I think we should stick to just one kind of whitespace.
> - packet_history.o loss_interval.o
> + packet_history.o loss_interval.o \
> + tfrc_ccids.o
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4
2007-11-01 0:30 [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Leandro
2007-11-01 11:49 ` [PATCH 7/25] Initial lib for sharing common code between Tommi Saviranta
@ 2007-11-01 22:08 ` Łeandro Sales
2007-11-03 6:30 ` Ian McDonald
2007-11-08 11:24 ` Gerrit Renker
3 siblings, 0 replies; 5+ messages in thread
From: Łeandro Sales @ 2007-11-01 22:08 UTC (permalink / raw)
To: dccp
Just forward a private e-mail with Tommi about his comments.
2007/11/1, Tommi Saviranta <wnd@iki.fi>:
> On Wed, Oct 31, 2007 at 21:30:24 -0300, Leandro wrote:
> > [CCID-3/4 lib] Initial lib for sharing common code between ccid-3/ccid-4
> >
> > The lib is called tfrc_ccids.o
>
> > Index: leandro.new/net/dccp/ccids/lib/Makefile
> > =================================> > --- leandro.new.orig/net/dccp/ccids/lib/Makefile
> > +++ leandro.new/net/dccp/ccids/lib/Makefile
> > @@ -1,4 +1,5 @@
> > obj-$(CONFIG_IP_DCCP_TFRC_LIB) += dccp_tfrc_lib.o
> >
> > dccp_tfrc_lib-y := tfrc_module.o tfrc_equation.o \
> > - packet_history.o loss_interval.o
> > + packet_history.o loss_interval.o \
> > + tfrc_ccids.o
>
> Whitespace police hits! I don't remember Documentation/CodingStyle
> mentioning anything about whitespaces in Makefiles. Nevertheless,
> packet_history.o is indented here with spaces, tfrc_ccids.o with
> tabulators, I think we should stick to just one kind of whitespace.
>
> > - packet_history.o loss_interval.o
> > + packet_history.o loss_interval.o \
> > + tfrc_ccids.o
>
>
From Documentation/CodingStyle:
"Tabs are 8 characters, and thus indentations are also 8 characters.
There are heretic movements that try to make indentations 4 (or even 2!)
characters deep, and that is akin to trying to define the value of PI to
be 3."
(...)
"In short, 8-char indents make things easier to read, and have the added
benefit of warning you when you're nesting your functions too deep.
Heed that warning."
So, the kind that we are looking for it to use tabs (8 chars). Since
tfrc_ccids.o I used tabs, I think that it is ok.
Leandro.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4
2007-11-01 0:30 [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Leandro
2007-11-01 11:49 ` [PATCH 7/25] Initial lib for sharing common code between Tommi Saviranta
2007-11-01 22:08 ` [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Łeandro Sales
@ 2007-11-03 6:30 ` Ian McDonald
2007-11-08 11:24 ` Gerrit Renker
3 siblings, 0 replies; 5+ messages in thread
From: Ian McDonald @ 2007-11-03 6:30 UTC (permalink / raw)
To: dccp
On 11/1/07, Leandro <leandroal@gmail.com> wrote:
> [CCID-3/4 lib] Initial lib for sharing common code between ccid-3/ccid-4
>
> The lib is called tfrc_ccids.o
>
> Signed-off-by: Leandro Melo de Sales <leandro@embedded.ufcg.edu.br>
>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4
2007-11-01 0:30 [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Leandro
` (2 preceding siblings ...)
2007-11-03 6:30 ` Ian McDonald
@ 2007-11-08 11:24 ` Gerrit Renker
3 siblings, 0 replies; 5+ messages in thread
From: Gerrit Renker @ 2007-11-08 11:24 UTC (permalink / raw)
To: dccp
Quoting Tommi:
| On Wed, Oct 31, 2007 at 21:30:24 -0300, Leandro wrote:
| > [CCID-3/4 lib] Initial lib for sharing common code between ccid-3/ccid-4
| >
| > The lib is called tfrc_ccids.o
|
| > Index: leandro.new/net/dccp/ccids/lib/Makefile
| > =================================| > --- leandro.new.orig/net/dccp/ccids/lib/Makefile
| > +++ leandro.new/net/dccp/ccids/lib/Makefile
| > @@ -1,4 +1,5 @@
| > obj-$(CONFIG_IP_DCCP_TFRC_LIB) += dccp_tfrc_lib.o
| >
| > dccp_tfrc_lib-y := tfrc_module.o tfrc_equation.o \
| > - packet_history.o loss_interval.o
| > + packet_history.o loss_interval.o \
| > + tfrc_ccids.o
|
| Whitespace police hits! I don't remember Documentation/CodingStyle
| mentioning anything about whitespaces in Makefiles. Nevertheless,
| packet_history.o is indented here with spaces, tfrc_ccids.o with
| tabulators, I think we should stick to just one kind of whitespace.
|
| > - packet_history.o loss_interval.o
| > + packet_history.o loss_interval.o \
| > + tfrc_ccids.o
|
Leandro is right, tabs are ok in this place (it is a line continuation).
I just found that in the online version the patch looks as suggested
above (I run my whitespace scripts routinely over patch sets, and have
done this here as well).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-08 11:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01 0:30 [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Leandro
2007-11-01 11:49 ` [PATCH 7/25] Initial lib for sharing common code between Tommi Saviranta
2007-11-01 22:08 ` [PATCH 7/25] Initial lib for sharing common code between ccid-3/ccid-4 Łeandro Sales
2007-11-03 6:30 ` Ian McDonald
2007-11-08 11:24 ` Gerrit Renker
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.