1*a95f2880SEmmanuel Vadot /*-
2*a95f2880SEmmanuel Vadot * Copyright (c) 2018 Johannes Lundberg <johalun0@gmail.com>
3*a95f2880SEmmanuel Vadot *
4*a95f2880SEmmanuel Vadot * Redistribution and use in source and binary forms, with or without
5*a95f2880SEmmanuel Vadot * modification, are permitted provided that the following conditions
6*a95f2880SEmmanuel Vadot * are met:
7*a95f2880SEmmanuel Vadot * 1. Redistributions of source code must retain the above copyright
8*a95f2880SEmmanuel Vadot * notice unmodified, this list of conditions, and the following
9*a95f2880SEmmanuel Vadot * disclaimer.
10*a95f2880SEmmanuel Vadot * 2. Redistributions in binary form must reproduce the above copyright
11*a95f2880SEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the
12*a95f2880SEmmanuel Vadot * documentation and/or other materials provided with the distribution.
13*a95f2880SEmmanuel Vadot *
14*a95f2880SEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15*a95f2880SEmmanuel Vadot * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16*a95f2880SEmmanuel Vadot * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17*a95f2880SEmmanuel Vadot * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18*a95f2880SEmmanuel Vadot * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19*a95f2880SEmmanuel Vadot * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20*a95f2880SEmmanuel Vadot * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21*a95f2880SEmmanuel Vadot * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22*a95f2880SEmmanuel Vadot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23*a95f2880SEmmanuel Vadot * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24*a95f2880SEmmanuel Vadot */
25*a95f2880SEmmanuel Vadot
26*a95f2880SEmmanuel Vadot #ifndef _LINUXKPI_LINUX_MMU_CONTEXT_H_
27*a95f2880SEmmanuel Vadot #define _LINUXKPI_LINUX_MMU_CONTEXT_H_
28*a95f2880SEmmanuel Vadot
29*a95f2880SEmmanuel Vadot struct mm_struct;
30*a95f2880SEmmanuel Vadot
31*a95f2880SEmmanuel Vadot static inline void
use_mm(struct mm_struct * mm)32*a95f2880SEmmanuel Vadot use_mm(struct mm_struct *mm)
33*a95f2880SEmmanuel Vadot {
34*a95f2880SEmmanuel Vadot /* NOP is deliberate */
35*a95f2880SEmmanuel Vadot }
36*a95f2880SEmmanuel Vadot
37*a95f2880SEmmanuel Vadot static inline void
unuse_mm(struct mm_struct * mm)38*a95f2880SEmmanuel Vadot unuse_mm(struct mm_struct *mm)
39*a95f2880SEmmanuel Vadot {
40*a95f2880SEmmanuel Vadot /* NOP is deliberate */
41*a95f2880SEmmanuel Vadot }
42*a95f2880SEmmanuel Vadot
43*a95f2880SEmmanuel Vadot #endif /* _LINUXKPI_LINUX_MMU_CONTEXT_H_ */
44