David Rientjes 1756954c61 mm: fix build warning for uninitialized value
do_wp_page() sets mmun_called if mmun_start and mmun_end were
initialized and, if so, may call mmu_notifier_invalidate_range_end()
with these values.  This doesn't prevent gcc from emitting a build
warning though:

  mm/memory.c: In function `do_wp_page':
  mm/memory.c:2530: warning: `mmun_start' may be used uninitialized in this function
  mm/memory.c:2531: warning: `mmun_end' may be used uninitialized in this function

It's much easier to initialize the variables to impossible values and do
a simple comparison to determine if they were initialized to remove the
bool entirely.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-11-16 14:33:03 -08:00
..
2012-10-09 16:22:54 +09:00
2012-05-29 23:28:33 -04:00
2012-01-03 22:54:56 -05:00
2012-10-09 16:23:03 +09:00
2011-07-26 16:49:47 -07:00
2012-10-09 16:23:03 +09:00
2012-10-09 16:23:03 +09:00
2012-11-16 14:33:03 -08:00
2012-07-31 18:42:43 -07:00
2010-05-21 18:31:21 -04:00
2012-10-09 16:22:54 +09:00
2012-10-09 16:22:24 +09:00
2012-07-31 18:42:43 -07:00
2012-06-20 14:39:36 -07:00
2012-06-20 14:39:36 -07:00
2012-07-31 18:42:49 -07:00
2012-10-09 16:22:55 +09:00
2012-10-09 16:23:03 +09:00
2012-10-09 16:22:59 +09:00