[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-2ac13462b6d242684996e88a07fbed6dec6af622@git.kernel.org>
Date: Sun, 18 Dec 2011 15:50:45 -0800
From: tip-bot for Jesper Juhl <jj@...osbits.net>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
eric.dumazet@...il.com, mel@....ul.ie, hannes@...xchg.org,
hughd@...gle.com, riel@...hat.com, jj@...osbits.net,
aarcange@...hat.com, tglx@...utronix.de,
kamezawa.hiroyu@...fujitsu.com, walken@...gle.com, mingo@...e.hu
Subject: [tip:x86/cleanups] x86: Use "do { } while(0)"
for empty flush_tlb_fix_spurious_fault() macro
Commit-ID: 2ac13462b6d242684996e88a07fbed6dec6af622
Gitweb: http://git.kernel.org/tip/2ac13462b6d242684996e88a07fbed6dec6af622
Author: Jesper Juhl <jj@...osbits.net>
AuthorDate: Sun, 18 Dec 2011 01:32:09 +0100
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sun, 18 Dec 2011 09:14:18 +0100
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@...osbits.net>
Cc: Eric Dumazet <eric.dumazet@...il.com>
Cc: linux-mm@...ck.org
Cc: Michel Lespinasse <walken@...gle.com>
Cc: Hugh Dickins <hughd@...gle.com>
Cc: Andrea Arcangeli <aarcange@...hat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Cc: Rik van Riel <riel@...hat.com>
Cc: Mel Gorman <mel@....ul.ie>
Cc: Johannes Weiner <hannes@...xchg.org>
Link: http://lkml.kernel.org/r/alpine.LNX.2.00.1112180128070.21784@swampdragon.chaosbits.net
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/include/asm/pgtable.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 18601c8..49afb3f 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -703,7 +703,7 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm,
pte_update(mm, addr, ptep);
}
-#define flush_tlb_fix_spurious_fault(vma, address)
+#define flush_tlb_fix_spurious_fault(vma, address) do { } while (0)
#define mk_pmd(page, pgprot) pfn_pmd(page_to_pfn(page), (pgprot))
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists