mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Jason Low <jason.low2@hp.com>
Cc: Li Zefan <lizefan@huawei.com>,
	linux-kernel@vger.kernel.org, aswin@hp.com
Subject: Re: [PATCH] cgroup: Initialize root in cgroup_mount
Date: Tue, 27 Jan 2015 13:18:05 -0500	[thread overview]
Message-ID: <20150127181805.GD12314@htj.dyndns.org> (raw)
In-Reply-To: <1422380796.6710.13.camel@j-VirtualBox>

On Tue, Jan 27, 2015 at 09:46:36AM -0800, Jason Low wrote:
> On Tue, 2015-01-27 at 11:10 -0500, Tejun Heo wrote:
> > On Mon, Jan 26, 2015 at 04:21:39PM -0800, Jason Low wrote:
> > > Compiling kernel/ causes warnings:
> > > 
> > >     ... ‘root’ may be used uninitialized in this function
> > >     ... ‘root’ was declared here
> > > 
> > > This isn't an issue since there is already logic to not use
> > > root if we goto out_unlock without setting root.
> > > 
> > > Explicitly initialize root to NULL to suppress this so that we can
> > > focus on catching warnings that can potentially cause bigger issues.
> > 
> > Which complier are you using?
> 
> Hi Tejun, one of the versions I am seeing this on is gcc 4.6.3.

Can you plesae try something newer?  gcc for a while had trouble with
these spurious warnings.  4.6.2 is 3+ years old now.

Thanks.

-- 
tejun

      reply	other threads:[~2015-01-27 18:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-27  0:21 Jason Low
2015-01-27 16:10 ` Tejun Heo
2015-01-27 17:46   ` Jason Low
2015-01-27 18:18     ` Tejun Heo [this message]

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=20150127181805.GD12314@htj.dyndns.org \
    --to=tj@kernel.org \
    --cc=aswin@hp.com \
    --cc=jason.low2@hp.com \
    --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®