aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-11 16:25:39 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:21:25 -0700
commit60356b1a211a0fcfe7dbd2e1dd280d6fc0170cf0 (patch)
treeca3cd9430efffadd0f1a98994c3d864ce16076b0 /module/os
parentc3fe42aabd9f8879500437e2be2968b47e8b6797 (diff)
Add include files for prototypes
Include the header with prototypes in the file that provides definitions as well, to catch any mismatch between prototype and definition. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10470
Diffstat (limited to 'module/os')
-rw-r--r--module/os/freebsd/spl/spl_vm.c1
-rw-r--r--module/os/linux/spl/spl-generic.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/module/os/freebsd/spl/spl_vm.c b/module/os/freebsd/spl/spl_vm.c
index cd18ebb7a..9f7acab74 100644
--- a/module/os/freebsd/spl/spl_vm.c
+++ b/module/os/freebsd/spl/spl_vm.c
@@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$");
#include <sys/byteorder.h>
#include <sys/lock.h>
#include <sys/freebsd_rwlock.h>
+#include <sys/vm.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
diff --git a/module/os/linux/spl/spl-generic.c b/module/os/linux/spl/spl-generic.c
index 837447239..aa74f6042 100644
--- a/module/os/linux/spl/spl-generic.c
+++ b/module/os/linux/spl/spl-generic.c
@@ -39,6 +39,7 @@
#include <sys/proc.h>
#include <sys/kstat.h>
#include <sys/file.h>
+#include <sys/sunddi.h>
#include <linux/ctype.h>
#include <sys/disp.h>
#include <sys/random.h>