mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Corcodel Marian <asd@marian1000.go.ro>
Cc: Li Zefan <lizefan@huawei.com>,
	cgroups@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Used void functions follows non void
Date: Thu, 9 Mar 2017 13:29:01 -0500	[thread overview]
Message-ID: <20170309182901.GF28982@htj.duckdns.org> (raw)
In-Reply-To: <65a50f47-b87a-790d-cc16-0b873bffdc97@marian1000.go.ro>

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

           reply	other threads:[~2017-03-09 18:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <65a50f47-b87a-790d-cc16-0b873bffdc97@marian1000.go.ro>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170309182901.GF28982@htj.duckdns.org \
    --to=tj@kernel.org \
    --cc=asd@marian1000.go.ro \
    --cc=cgroups@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®