From: Eric Dumazet Date: Fri, 8 Apr 2011 10:11:06 +0000 (+0200) Subject: perf: Fix a build error with some GCC versions X-Git-Tag: v2.6.39-rc4~17^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621d26567fd0c222f419e3b5ddf39e529e0fdcb3;p=pandora-kernel.git perf: Fix a build error with some GCC versions Fix this: util/cgroup.c: In function ‘open_cgroup’: util/cgroup.c:16:16: error: ‘saved_ptr’ may be used uninitialized in this function util/cgroup.c:16:16: note: ‘saved_ptr’ was declared here Apparently newer GCC (4.6) can figure out that this variable is properly initialized - but some versions of GCC (such as 4.5.2) need help. Signed-off-by: Eric Dumazet Cc: Arnaldo Carvalho de Melo LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed