[PATCH 1/8] taskstats: fix indentation of long argument lists

From: Guillaume Chazarain
Date: Wed Sep 26 2007 - 12:57:19 EST

Align with the opening parenthesis.

Changelog since V1 (http://lkml.org/lkml/2007/9/21/527):
- renamed fill_threadgroup() and add_tsk() to respectively
fill_threadgroup_stats() and add_tsk_stats() as suggested by Balbir Singh.
- added braces around do/while.
- added patch to unbreak binary compatibility between taskstats v5/v6.
- split further by preparing the bacct/xacct before the main patch.
- some indentation fixes.

Signed-off-by: Guillaume Chazarain <guichaz@xxxxxxxx>
Cc: Balbir Singh <balbir@xxxxxxxxxx>
Cc: Jay Lan <jlan@xxxxxxxxxxxx>
Cc: Jonathan Lim <jlim@xxxxxxx>
Cc: Oleg Nesterov <oleg@xxxxxxxxxx>

kernel/taskstats.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/kernel/taskstats.c b/kernel/taskstats.c
index 059431e..a42b6c0 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -69,7 +69,7 @@ enum actions {

static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp,
- size_t size)
+ size_t size)
struct sk_buff *skb;
void *reply;
@@ -119,7 +119,7 @@ static int send_reply(struct sk_buff *skb, pid_t pid)
* Send taskstats data in @skb to listeners registered for @cpu's exit data
static void send_cpu_listeners(struct sk_buff *skb,
- struct listener_list *listeners)
+ struct listener_list *listeners)
struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb));
struct listener *s, *tmp;
@@ -168,8 +168,7 @@ static void send_cpu_listeners(struct sk_buff *skb,

-static int fill_pid(pid_t pid, struct task_struct *tsk,
- struct taskstats *stats)
+static int fill_pid(pid_t pid, struct task_struct *tsk, struct taskstats *stats)
int rc = 0;

@@ -210,7 +209,7 @@ static int fill_pid(pid_t pid, struct task_struct *tsk,

static int fill_tgid(pid_t tgid, struct task_struct *first,
- struct taskstats *stats)
+ struct taskstats *stats)
struct task_struct *tsk;
unsigned long flags;
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/