Re: Used void functions follows non void

From: Tejun Heo
Date: Thu Mar 09 2017 - 13:29:08 EST


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