[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150419034202.GC10169@danjae.kornet>
Date: Sun, 19 Apr 2015 12:42:02 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Taewoong Song <treeze.taeung@...il.com>
Cc: Arnaldo Carvalho de Melo <acme@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
jolsa@...hat.com
Subject: Re: [PATCH 2/2] perf tools: Add a option 'remove' to perf-config and
features which get or set a config variable.
On Sat, Apr 18, 2015 at 02:02:17PM +0900, Taewoong Song wrote:
> > On Apr 13, 2015, at 3:55 PM, Namhyung Kim <namhyung@...nel.org> wrote:
> > On Sun, Apr 12, 2015 at 11:44:49PM +0900, Taeung Song wrote:
> >> +static struct config_section *find_config_section(const char *section_name)
> >> +{
> >> + struct config_section *section_node;
> >
> > It'd be better to split declaration and function body with a blank line.
> >
>
> Does mean it like followed by ?
>
> +static struct config_section *find_config_section(const char *section_name)
> +
> +{
> + struct config_section *section_node;
>
> ,or is it ?
>
> +static struct config_section *find_config_section(const char *section_name)
> +{
> +
> + struct config_section *section_node;
Nope! I meant
static struct config_section *find_config_section(const char *section_name)
{
struct config_section *section node
<-- here
list_for_each_entry(section_node, §ions, list)
...
}
>
> >
> >> + list_for_each_entry(section_node, §ions, list)
> >> + if (!strcmp(section_node->name, section_name))
> >> + return section_node;
> >> +
> >> + return NULL;
> >> +}
> >> +
> >> +static struct config_element *find_config_element(const char *subkey
> >> + , struct config_section *section_node)
And this is not how we put comma, please change it to
static struct config_element *find_config_element(const char *subkey,
struct config_section *section_node)
Ditto for others..
Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists