Re: [PATCH 3/3] um: remove process stub VMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2021-01-13 at 22:09 +0100, Johannes Berg wrote:
> 
> +++ b/arch/um/include/asm/mmu_context.h
> @@ -9,34 +9,9 @@
>  #include <linux/sched.h>
>  #include <linux/mm_types.h>
>  #include <linux/mmap_lock.h>
> -
> +#include <asm/mm_hooks.h>
>  #include <asm/mmu.h>
>  
> -extern void uml_setup_stubs(struct mm_struct *mm);
> -/*
> - * Needed since we do not use the asm-generic/mm_hooks.h:
> - */
> -static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm)
> -{
> -	uml_setup_stubs(mm);
> -	return 0;
> -}
> -extern void arch_exit_mmap(struct mm_struct *mm);
> -static inline void arch_unmap(struct mm_struct *mm,
> -			unsigned long start, unsigned long end)
> -{
> -}
> -static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
> -		bool write, bool execute, bool foreign)
> -{
> -	/* by default, allow everything */
> -	return true;
> -}
> -
> -/*
> - * end asm-generic/mm_hooks.h functions
> - */
> -
>  #define deactivate_mm(tsk,mm)	do { } while (0)


Just saw there's a small conflict since in the meantime, deactivate_mm()
has been removed. Just take neither code.

johannes




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux