[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170309182901.GF28982@htj.duckdns.org>
Date: Thu, 9 Mar 2017 13:29:01 -0500
From: Tejun Heo <tj@...nel.org>
To: Corcodel Marian <asd@...ian1000.go.ro>
Cc: Li Zefan <lizefan@...wei.com>, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: Used void functions follows non void
On Thu, Mar 09, 2017 at 04:39:10PM +0200, Corcodel Marian wrote:
>
> Make compiler to print errors message ;
> run make;
> Bellow is errors message from compiler:
> include/linux/cgroup.h:424:2: warning: ‘return’ with no value, in function
> returning non-void [-Wreturn-type]
> return task_css_set_check(task, false);
> ^
> include/linux/cgroup.h: In function ‘task_css’:
> include/linux/cgroup.h:414:35: error: expected expression before ‘->’ token
> task_css_set_check((task), (__c))->subsys[(subsys_id)]
> ^
> include/linux/cgroup.h:437:9: note: in expansion of macro ‘task_css_check’
> return task_css_check(task, subsys_id, false);
> ^
> include/linux/cgroup.h: In function ‘task_css_is_root’:
> include/linux/cgroup.h:414:35: error: expected expression before ‘->’ token
> task_css_set_check((task), (__c))->subsys[(subsys_id)]
> ^
> include/linux/cgroup.h:475:9: note: in expansion of macro ‘task_css_check’
> return task_css_check(task, subsys_id, true) ==
Can you please share the .config used and the kernel version?
Thanks.
--
tejun
Powered by blists - more mailing lists