x86: Use "do { } while(0)" for empty flush_tlb_fix_spurious_fault() macro
authorJesper Juhl <jj@chaosbits.net>
Sun, 18 Dec 2011 00:32:09 +0000 (01:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Sun, 18 Dec 2011 08:14:18 +0000 (09:14 +0100)
commit2ac13462b6d242684996e88a07fbed6dec6af622
tree8ceb25c2d5fbc5624bf8e04eb8ed5dd51f2453b2
parentd059f24a9680805bd73fc5675504d465bfe28b72
x86: Use "do { } while(0)" for empty flush_tlb_fix_spurious_fault() macro

If one builds the kernel with -Wempty-body one gets this
warning:

  mm/memory.c:3432:46: warning: suggest braces around empty body in an ¡if¢ statement [-Wempty-body]

due to the fact that 'flush_tlb_fix_spurious_fault' is a macro
that can sometimes be defined to nothing.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: linux-mm@kvack.org
Cc: Michel Lespinasse <walken@google.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Link: http://lkml.kernel.org/r/alpine.LNX.2.00.1112180128070.21784@swampdragon.chaosbits.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/pgtable.h