/*
 * Define generic no-op hooks for arch_dup_mmap, arch_exit_mmap
 * and arch_unmap to be included in asm-FOO/mmu_context.h for any
 * arch FOO which doesn't need to hook these.
 */
#ifndef _ASM_GENERIC_MM_HOOKS_H
#define _ASM_GENERIC_MM_HOOKS_H

static inline void arch_dup_mmap(struct mm_struct *oldmm,
				 struct mm_struct *mm)
{
}

static inline void arch_exit_mmap(struct mm_struct *mm)
{
}

static inline void arch_unmap(struct mm_struct *mm,
			struct vm_area_struct *vma,
			unsigned long start, unsigned long end)
{
}

static inline void arch_bprm_mm_init(struct mm_struct *mm,
				     struct vm_area_struct *vma)
{
}

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

static inline bool arch_pte_access_permitted(pte_t pte, bool write)
{
	/* by default, allow everything */
	return true;
}
#endif	/* _ASM_GENERIC_MM_HOOKS_H */
e='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/net/af_vsock.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/net/af_vsock.h?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/net/af_vsock.h?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/net/af_vsock.h?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/net/af_vsock.h'>
<input type='hidden' name='id' value='63fca65d08632fbec9d9b655f671cf08aa1aeeb8'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/net?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/net/af_vsock.h?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8'>af_vsock.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/net/af_vsock.h?id=63fca65d08632fbec9d9b655f671cf08aa1aeeb8&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
pse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>