git: 6d3d5653168b - main - linuxkpi: swap.h: Fix include
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Aug 2022 09:10:10 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=6d3d5653168b6c122a4858357f74dafc06e4e4ef
commit 6d3d5653168b6c122a4858357f74dafc06e4e4ef
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-09 13:23:50 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-08-18 07:46:50 +0000
linuxkpi: swap.h: Fix include
Add needed includes so we can use it.
Reviewed by: bz
Fixes: c3f4f28c63da ("linuxkpi: Add some basic swap functions")
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36109
---
sys/compat/linuxkpi/common/include/linux/swap.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/swap.h b/sys/compat/linuxkpi/common/include/linux/swap.h
index a080895bed98..600707524d86 100644
--- a/sys/compat/linuxkpi/common/include/linux/swap.h
+++ b/sys/compat/linuxkpi/common/include/linux/swap.h
@@ -29,6 +29,13 @@
#ifndef _LINUXKPI_LINUX_SWAP_H_
#define _LINUXKPI_LINUX_SWAP_H_
+#include <sys/param.h>
+#include <sys/domainset.h>
+#include <sys/queue.h>
+#include <sys/proc.h>
+#include <sys/pcpu.h>
+
+#include <vm/vm.h>
#include <vm/swap_pager.h>
#include <vm/vm_pageout.h>