All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jianjun Kong <kongjianjun@gmail.com>
To: torvalds@linux-foundation.org
Cc: xiyou.wangcong@gmail.com, linux-kernel@vger.kernel.org,
	Jianjun Kong <kongjianjun@gmail.com>
Subject: [PATCH] Standard indentation of arguments
Date: Wed, 21 May 2008 13:58:48 +0800	[thread overview]
Message-ID: <12113495282137-git-send-email-kongjianjun@gmail.com> (raw)
In-Reply-To: 0002-Standard-indentation-of-arguments.patch

Standard indentation of arguments.
I use right blank space to displace the last table, in order to make the arguments alining. For example:

old:
extern void test_fun(struct list_head *new,
			struct list_head *prev,
			struct list_head *next);
new:
extern void test_fun(struct list_head *new,
		     struct list_head *prev,
		     struct list_head *next);

Signed-off-by: Jianjun Kong <kongjianjun@gmail.com>
---
 include/linux/list.h |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/include/linux/list.h b/include/linux/list.h
index 08cf4f6..6d16696 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -49,8 +49,8 @@ static inline void __list_add(struct list_head *new,
 }
 #else
 extern void __list_add(struct list_head *new,
-			      struct list_head *prev,
-			      struct list_head *next);
+		       struct list_head *prev,
+		       struct list_head *next);
 #endif
 
 /**
@@ -91,7 +91,8 @@ static inline void list_add_tail(struct list_head *new, struct list_head *head)
  * the prev/next entries already!
  */
 static inline void __list_add_rcu(struct list_head * new,
-		struct list_head * prev, struct list_head * next)
+				  struct list_head * prev,
+				  struct list_head * next)
 {
 	new->next = next;
 	new->prev = prev;
@@ -138,7 +139,7 @@ static inline void list_add_rcu(struct list_head *new, struct list_head *head)
  * list_for_each_entry_rcu().
  */
 static inline void list_add_tail_rcu(struct list_head *new,
-					struct list_head *head)
+				     struct list_head *head)
 {
 	__list_add_rcu(new, head->prev, head);
 }
@@ -220,7 +221,7 @@ static inline void list_replace(struct list_head *old,
 }
 
 static inline void list_replace_init(struct list_head *old,
-					struct list_head *new)
+				     struct list_head *new)
 {
 	list_replace(old, new);
 	INIT_LIST_HEAD(old);
@@ -235,7 +236,7 @@ static inline void list_replace_init(struct list_head *old,
  * Note: @old should not be empty.
  */
 static inline void list_replace_rcu(struct list_head *old,
-				struct list_head *new)
+				    struct list_head *new)
 {
 	new->next = old->next;
 	new->prev = old->prev;
@@ -284,7 +285,7 @@ static inline void list_move_tail(struct list_head *list,
  * @head: the head of the list
  */
 static inline int list_is_last(const struct list_head *list,
-				const struct list_head *head)
+			       const struct list_head *head)
 {
 	return list->next == head;
 }
@@ -346,7 +347,7 @@ static inline void __list_splice(const struct list_head *list,
  * @head: the place to add it in the first list.
  */
 static inline void list_splice(const struct list_head *list,
-				struct list_head *head)
+			       struct list_head *head)
 {
 	if (!list_empty(list))
 		__list_splice(list, head);
@@ -696,7 +697,7 @@ struct hlist_node {
 };
 
 #define HLIST_HEAD_INIT { .first = NULL }
-#define HLIST_HEAD(name) struct hlist_head name = {  .first = NULL }
+#define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
 static inline void INIT_HLIST_NODE(struct hlist_node *h)
 {
@@ -771,7 +772,7 @@ static inline void hlist_del_init(struct hlist_node *n)
  * The @old entry will be replaced with the @new entry atomically.
  */
 static inline void hlist_replace_rcu(struct hlist_node *old,
-					struct hlist_node *new)
+				     struct hlist_node *new)
 {
 	struct hlist_node *next = old->next;
 
@@ -815,7 +816,7 @@ static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h)
  * list-traversal primitive must be guarded by rcu_read_lock().
  */
 static inline void hlist_add_head_rcu(struct hlist_node *n,
-					struct hlist_head *h)
+				      struct hlist_head *h)
 {
 	struct hlist_node *first = h->first;
 	n->next = first;
@@ -828,7 +829,7 @@ static inline void hlist_add_head_rcu(struct hlist_node *n,
 
 /* next must be != NULL */
 static inline void hlist_add_before(struct hlist_node *n,
-					struct hlist_node *next)
+				    struct hlist_node *next)
 {
 	n->pprev = next->pprev;
 	n->next = next;
@@ -837,7 +838,7 @@ static inline void hlist_add_before(struct hlist_node *n,
 }
 
 static inline void hlist_add_after(struct hlist_node *n,
-					struct hlist_node *next)
+				   struct hlist_node *next)
 {
 	next->next = n->next;
 	n->next = next;
-- 
1.5.2.5


             reply	other threads:[~2008-05-21  5:59 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21  5:58 Jianjun Kong [this message]
2008-05-21  7:19 ` [PATCH] Standard indentation of arguments Jiri Slaby
2008-05-21 11:35   ` David Newall
2008-05-21  8:34 ` CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of arguments) Al Viro
2008-05-21  8:50   ` Andrew Morton
2008-05-21  9:19     ` CFD: linux-wanking@vger.kernel.org David Miller
2008-05-21  9:41     ` CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of arguments) Al Viro
2008-05-21 17:44       ` Andrew Morton
2008-05-21 19:45         ` Theodore Tso
2008-05-21 20:38           ` Rene Herman
2008-05-21 20:50             ` Andrew Morton
2008-05-21 21:08               ` Rene Herman
2008-05-21 21:12                 ` Andrew Morton
2008-05-21 21:32                   ` Rene Herman
2008-05-22 19:40           ` Jaya Kumar
2008-05-21 10:32     ` Christoph Hellwig
2008-05-21 12:09       ` Theodore Tso
2008-05-21 17:46         ` Andrew Morton
2008-05-21 18:57           ` Cyrill Gorcunov
2008-05-21 19:31             ` Andrew Morton
2008-05-21 20:10               ` CFD: linux-wanking@vger.kernel.org David Miller
2008-05-21 21:25                 ` Willy Tarreau
2008-05-21 21:44                   ` Stefan Richter
2008-05-21 21:56                     ` Willy Tarreau
2008-05-21 21:08               ` CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of arguments) Valdis.Kletnieks
2008-05-21 23:01               ` Adrian Bunk
2008-05-21 23:17                 ` Rene Herman
2008-05-21 23:55                   ` Adrian Bunk
2008-05-22  0:10                     ` Rene Herman
2008-05-22 14:31                       ` Adrian Bunk
2008-05-21 23:35                 ` Al Viro
2008-05-22  0:38                   ` Adrian Bunk
2008-05-22  1:05                     ` Alan Cox
2008-05-22 16:08                 ` Stefan Richter
2008-05-21 19:33             ` Randy Dunlap
2008-05-21 19:45               ` Cyrill Gorcunov
2008-05-21 19:54                 ` Andrew Morton
2008-05-21 20:06                   ` Jesper Juhl
2008-05-21 20:27                     ` CFD: linux-wanking@vger.kernel.org (was [PATCH] Standard indentation of arguments), " Jonathan Corbet
2008-05-21 20:37                       ` Jesper Juhl
2008-05-21 23:46                         ` Jesper Juhl
2008-05-22  0:12                           ` Adrian Bunk
2008-05-22  0:32                             ` Jesper Juhl
2008-05-22  1:03                             ` Alan Cox
2008-05-22 14:56                             ` Pavel Machek
2008-05-22 15:29                             ` Arjan van de Ven
2008-05-22  0:14                           ` Al Viro
2008-05-22  0:34                             ` Jesper Juhl
2008-05-22  1:07                           ` Johannes Weiner
2008-05-22  4:51                           ` Cyrill Gorcunov
2008-05-22  5:34                           ` david
2008-05-31 16:23                           ` Nick Andrew
2008-05-21 19:42             ` Johannes Weiner
2008-05-21 19:47               ` Cyrill Gorcunov
2008-05-21 19:49           ` CFD: linux-wanking@vger.kernel.org David Miller
2008-05-21 22:03             ` Al Viro

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=12113495282137-git-send-email-kongjianjun@gmail.com \
    --to=kongjianjun@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=xiyou.wangcong@gmail.com \
    /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 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.