aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/mm_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/mm_types.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mm_types.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/mm_types.h b/sys/compat/linuxkpi/common/include/linux/mm_types.h
index 4c9eddf500d6..c08e2511725b 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm_types.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm_types.h
@@ -22,15 +22,14 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#ifndef _LINUX_MM_TYPES_H_
-#define _LINUX_MM_TYPES_H_
+#ifndef _LINUXKPI_LINUX_MM_TYPES_H_
+#define _LINUXKPI_LINUX_MM_TYPES_H_
#include <linux/types.h>
#include <linux/page.h>
+#include <linux/rbtree.h>
#include <linux/rwsem.h>
#include <asm/atomic.h>
@@ -45,6 +44,7 @@ struct mm_struct {
atomic_t mm_count;
atomic_t mm_users;
size_t pinned_vm;
+ /* Renamed to mmap_lock in v5.8 */
struct rw_semaphore mmap_sem;
};
@@ -79,4 +79,4 @@ mmgrab(struct mm_struct *mm)
extern struct mm_struct *linux_get_task_mm(struct task_struct *);
#define get_task_mm(task) linux_get_task_mm(task)
-#endif /* _LINUX_MM_TYPES_H_ */
+#endif /* _LINUXKPI_LINUX_MM_TYPES_H_ */