Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759984AbXIZRIb (ORCPT ); Wed, 26 Sep 2007 13:08:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753018AbXIZRIX (ORCPT ); Wed, 26 Sep 2007 13:08:23 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:38597 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752432AbXIZRIW (ORCPT ); Wed, 26 Sep 2007 13:08:22 -0400 X-IronPort-AV: E=Sophos;i="4.21,198,1188770400"; d="scan'208";a="3292241" From: Guillaume Chazarain Subject: [PATCH 1/8] taskstats: fix indentation of long argument lists To: Andrew Morton , Linux Kernel Mailing List Cc: Guillaume Chazarain , Balbir Singh , Jay Lan , Jonathan Lim , Oleg Nesterov Date: Wed, 26 Sep 2007 19:08:18 +0200 Message-ID: <20070926170818.31221.33994.stgit@cheypa.inria.fr> User-Agent: StGIT/0.13 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2215 Lines: 67 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 Cc: Balbir Singh Cc: Jay Lan Cc: Jonathan Lim Cc: Oleg Nesterov --- 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, up_write(&listeners->sem); } -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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/