[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140312201329.GL14981@redhat.com>
Date: Wed, 12 Mar 2014 16:13:29 -0400
From: Vivek Goyal <vgoyal@...hat.com>
To: David Miller <davem@...emloft.net>
Cc: linux-kernel@...r.kernel.org, cgroups@...r.kernel.org,
netdev@...r.kernel.org, tj@...nel.org, ssorce@...hat.com,
jkaluza@...hat.com, lpoetter@...hat.com, kay@...hat.com
Subject: Re: [PATCH 1/2] cgroup: Provide empty definition of
task_cgroup_path()
On Wed, Mar 12, 2014 at 03:00:20PM -0400, David Miller wrote:
> From: Vivek Goyal <vgoyal@...hat.com>
> Date: Wed, 12 Mar 2014 14:45:41 -0400
>
> > Compilation with !CONFIG_CGROUP fails for task_cgroup_path() user. So
> > provide an emtpy definition.
> >
> > Signed-off-by: Vivek Goyal <vgoyal@...hat.com>
> > ---
> > include/linux/cgroup.h | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
> > index 9450f02..bf40adb 100644
> > --- a/include/linux/cgroup.h
> > +++ b/include/linux/cgroup.h
> > @@ -869,6 +869,8 @@ static inline int cgroup_attach_task_all(struct task_struct *from,
> > return 0;
> > }
> >
> > +static inline int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen) {return 0;}
> > +
>
> Please properly format this just like any other function.
>
> static inline int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen)
> {
> eturn 0;
> }
>
> It looked like a plain static declaration on first glance.
Sure I will.
Also, looks like I have introduced a bug in second round of changes I made. I
will fix that too and do a new posting.
Thanks
Vivek
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists