From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx163.postini.com [74.125.245.163]) by kanga.kvack.org (Postfix) with SMTP id 5791F6B004D for ; Wed, 21 Mar 2012 02:56:53 -0400 (EDT) Received: by mail-bk0-f41.google.com with SMTP id q16so872729bkw.14 for ; Tue, 20 Mar 2012 23:56:52 -0700 (PDT) Subject: [PATCH 09/16] mm/ia64: use vm_flags_t for vma flags From: Konstantin Khlebnikov Date: Wed, 21 Mar 2012 10:56:50 +0400 Message-ID: <20120321065650.13852.75898.stgit@zurg> In-Reply-To: <20120321065140.13852.52315.stgit@zurg> References: <20120321065140.13852.52315.stgit@zurg> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-mm@kvack.org, Tony Luck , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu Signed-off-by: Konstantin Khlebnikov Cc: Tony Luck Cc: Fenghua Yu Cc: linux-ia64@vger.kernel.org --- arch/ia64/mm/fault.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/ia64/mm/fault.c b/arch/ia64/mm/fault.c index 20b3593..e50259d 100644 --- a/arch/ia64/mm/fault.c +++ b/arch/ia64/mm/fault.c @@ -80,7 +80,7 @@ ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *re struct vm_area_struct *vma, *prev_vma; struct mm_struct *mm = current->mm; struct siginfo si; - unsigned long mask; + vm_flags_t mask; int fault; /* mmap_sem is performance critical.... */ @@ -135,10 +135,9 @@ ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *re # define VM_WRITE_BIT 1 # define VM_EXEC_BIT 2 -# if (((1 << VM_READ_BIT) != VM_READ || (1 << VM_WRITE_BIT) != VM_WRITE) \ - || (1 << VM_EXEC_BIT) != VM_EXEC) -# error File is out of sync with . Please update. -# endif + BUILD_BUG_ON((1 << VM_READ_BIT) != VM_READ); + BUILD_BUG_ON((1 << VM_WRITE_BIT) != VM_WRITE); + BUILD_BUG_ON((1 << VM_EXEC_BIT) != VM_EXEC); if (((isr >> IA64_ISR_R_BIT) & 1UL) && (!(vma->vm_flags & (VM_READ | VM_WRITE)))) goto bad_area; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org