]> git.baikalelectronics.ru Git - kernel.git/commit
futex: Address compiler warnings in exit_robust_list
authorDarren Hart <dvhart@linux.intel.com>
Thu, 4 Nov 2010 19:00:00 +0000 (15:00 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Nov 2010 12:27:50 +0000 (13:27 +0100)
commit66c88afc27008f2004c4559f9275b24336ec1a07
tree9f808df3fe056c317d37b53d3640982c9bc593cc
parent9b9e14f159d1939effd5ea4656ce064c13ab2369
futex: Address compiler warnings in exit_robust_list

Since commit ed7ca4bc (futex: Change 3rd arg of fetch_robust_entry()
to unsigned int*) some gcc versions decided to emit the following
warning:

kernel/futex.c: In function ‘exit_robust_list’:
kernel/futex.c:2492: warning: ‘next_pi’ may be used uninitialized in this function

The commit did not introduce the warning as gcc should have warned
before that commit as well. It's just gcc being silly.

The code path really can't result in next_pi being unitialized (or
should not), but let's keep the build clean. Annotate next_pi as an
uninitialized_var.

[ tglx: Addressed the same issue in futex_compat.c and massaged the
   changelog ]

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Tested-by: Matt Fleming <matt@console-pimps.org>
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: John Kacur <jkacur@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <1288897200-13008-1-git-send-email-dvhart@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/futex.c
kernel/futex_compat.c