[PATCH] cgroup:cgroup_mount: Fix uninitialized warning

Dave Hansen dave at sr71.net
Fri Jun 20 15:57:56 UTC 2014


I'm seeing this too in Linus's current tree (v3.16-rc1-112-g894e552) with:

gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC)



On Sat, Apr 19, 2014 at 5:57 AM, Tejun Heo <tj at kernel.org> wrote:

> On Sat, Apr 19, 2014 at 09:52:14PM +0900, Takeshi Misawa wrote:
> > This patch fixes the following warning.
> >
> > kernel/cgroup.c: In function ‘cgroup_mount’:
> > kernel/cgroup.c:1609:13: warning: ‘root’ may be used uninitialized in
> this
> > function
>
> Which compiler are you using?  This is a spurious warning which the
> compiler should be able to avoid pretty easily.
>
> Thanks.
>
> --
> tejun
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Dave


More information about the Containers mailing list