[PATCH 14/16] mm/score: use vm_flags_t for vma flags

From: Konstantin Khlebnikov
Date: Wed Mar 21 2012 - 02:58:15 EST


Signed-off-by: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxx>
Cc: Chen Liqin <liqin.chen@xxxxxxxxxxxxx>
Cc: Lennox Wu <lennox.wu@xxxxxxxxx>
---
arch/score/mm/cache.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/score/mm/cache.c b/arch/score/mm/cache.c
index b25e957..2288ffc 100644
--- a/arch/score/mm/cache.c
+++ b/arch/score/mm/cache.c
@@ -79,7 +79,7 @@ void __update_cache(struct vm_area_struct *vma, unsigned long address,
{
struct page *page;
unsigned long pfn, addr;
- int exec = (vma->vm_flags & VM_EXEC);
+ int exec = (vma->vm_flags & VM_EXEC) != VM_NONE;

pfn = pte_pfn(pte);
if (unlikely(!pfn_valid(pfn)))
@@ -172,7 +172,7 @@ void flush_cache_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{
struct mm_struct *mm = vma->vm_mm;
- int exec = vma->vm_flags & VM_EXEC;
+ int exec = (vma->vm_flags & VM_EXEC) != VM_NONE;
pgd_t *pgdp;
pud_t *pudp;
pmd_t *pmdp;
@@ -210,7 +210,7 @@ void flush_cache_range(struct vm_area_struct *vma,
void flush_cache_page(struct vm_area_struct *vma,
unsigned long addr, unsigned long pfn)
{
- int exec = vma->vm_flags & VM_EXEC;
+ int exec = (vma->vm_flags & VM_EXEC) != VM_NONE;
unsigned long kaddr = 0xa0000000 | (pfn << PAGE_SHIFT);

flush_dcache_range(kaddr, kaddr + PAGE_SIZE);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/