Skip to content

Commit 783011b

Browse files
committed
unicore32: mm: Add missing parameter to arch_vma_access_permitted
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 <dave.hansen@linux.intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
1 parent f31494b commit 783011b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/unicore32/include/asm/mmu_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,
9898
}
9999

100100
static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
101-
bool write, bool foreign)
101+
bool write, bool execute, bool foreign)
102102
{
103103
/* by default, allow everything */
104104
return true;

0 commit comments

Comments
 (0)