Skip to content

Commit

Permalink
unicore32: mm: Add missing parameter to arch_vma_access_permitted
Browse files Browse the repository at this point in the history
unicore32 fails to compile with the following errors.

mm/memory.c: In function ‘__handle_mm_fault’:
mm/memory.c:3381: error:
	too many arguments to function ‘arch_vma_access_permitted’
mm/gup.c: In function ‘check_vma_flags’:
mm/gup.c:456: error:
	too many arguments to function ‘arch_vma_access_permitted’
mm/gup.c: In function ‘vma_permits_fault’:
mm/gup.c:640: error:
	too many arguments to function ‘arch_vma_access_permitted’

Fixes: d61172b ("mm/core, x86/mm/pkeys: Differentiate instruction fetches")
Cc: Dave Hansen <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Guan Xuetao <[email protected]>
  • Loading branch information
groeck committed Aug 13, 2016
1 parent f31494b commit 783011b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/unicore32/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,
}

static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
bool write, bool foreign)
bool write, bool execute, bool foreign)
{
/* by default, allow everything */
return true;
Expand Down

0 comments on commit 783011b

Please sign in to comment.