From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753103Ab0DWSbw (ORCPT ); Fri, 23 Apr 2010 14:31:52 -0400 Received: from mail-iw0-f182.google.com ([209.85.223.182]:40326 "EHLO mail-iw0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876Ab0DWSbu convert rfc822-to-8bit (ORCPT ); Fri, 23 Apr 2010 14:31:50 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PVu136YtEt1h0BeK3dWR5WHoOx2s8eq23QqQEsJmzU2dZT6sg3lhHUvd+1ktKttlbZ Bmwpj/lRTKeJB5SOENue0lzMQ9wOIPYynTi+3k0xC8wBbYOkk+uQU71sB2VMl7rmN0Fd 8l1IyhBwDmBMp9Pw2Euo5c/Wmekw0/yTl3zUw= MIME-Version: 1.0 In-Reply-To: <4BD1CC5C.7000702@oracle.com> References: <1271983035-26401-1-git-send-email-chihau@gmail.com> <20100423085021.b54f98c5.randy.dunlap@oracle.com> <4BD1CC5C.7000702@oracle.com> Date: Fri, 23 Apr 2010 14:31:49 -0400 Message-ID: Subject: Re: [PATCH] Security: inode: Fix code style issues From: Chihau Chau To: Randy Dunlap Cc: jmorris@namei.org, eparis@redhat.com, viro@zeniv.linux.org.uk, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ok 2010/4/23 Randy Dunlap : > On 04/23/10 09:10, Chihau Chau wrote: >> Hi Randy, >> >> 2010/4/23 Randy Dunlap : >>> On Thu, 22 Apr 2010 20:37:15 -0400 Chihau Chau wrote: >>> >>>> From: Chihau Chau >>>> >>>> This fixes two code style issues: >>>> >>>> - A space required after that close brace '}' >>> >>> Why?  do we say that somewhere? >>> >> >> I was used the checkpatch.pl script written by Dave Jones, Joel Schopp >> and Andy Whitcroft. > > OK, thanks for the explanation. > That would be correct for something like: > >        if (foo_bar) { >                do_this(); >                do_that(); >        } else { >                pr_err("fatal error"); >                panic("help"); >        } > > but I don't think that it's needed for nested data structures. > > >>> >>>> >>>> - A space required after that ',' >>>> >>>> Signed-off-by: Chihau Chau >>>> --- >>>>  security/inode.c |    4 ++-- >>>>  1 files changed, 2 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/security/inode.c b/security/inode.c >>>> index c3a7938..f875f47 100644 >>>> --- a/security/inode.c >>>> +++ b/security/inode.c >>>> @@ -124,7 +124,7 @@ static inline int positive(struct dentry *dentry) >>>> >>>>  static int fill_super(struct super_block *sb, void *data, int silent) >>>>  { >>>> -     static struct tree_descr files[] = {{""}}; >>>> +     static struct tree_descr files[] = { {""} }; >>>> >>>>       return simple_fill_super(sb, SECURITYFS_MAGIC, files); >>>>  } >>>> @@ -208,7 +208,7 @@ struct dentry *securityfs_create_file(const char *name, mode_t mode, >>>>       struct dentry *dentry = NULL; >>>>       int error; >>>> >>>> -     pr_debug("securityfs: creating file '%s'\n",name); >>>> +     pr_debug("securityfs: creating file '%s'\n", name); >>>> >>>>       error = simple_pin_fs(&fs_type, &mount, &mount_count); >>>>       if (error) { >>>> -- >>>> 1.5.6.3 >>>> >>>> -- >>>> 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/ >>> >>> >>> --- >>> ~Randy >>> *** Remember to use Documentation/SubmitChecklist when testing your code *** >>> >> >> >> > > > -- > ~Randy > *** Remember to use Documentation/SubmitChecklist when testing your code *** > -- Chihau Chau