summaryrefslogtreecommitdiffstats
path: root/module/zfs
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/zfs
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/zfs')
-rw-r--r--module/zfs/blkptr.c1
-rw-r--r--module/zfs/dmu_object.c1
-rw-r--r--module/zfs/edonr_zfs.c2
-rw-r--r--module/zfs/gzip.c1
-rw-r--r--module/zfs/lz4.c1
-rw-r--r--module/zfs/lzjb.c1
-rw-r--r--module/zfs/sha256.c1
-rw-r--r--module/zfs/skein_zfs.c1
-rw-r--r--module/zfs/spa_boot.c2
-rw-r--r--module/zfs/zcp_get.c1
-rw-r--r--module/zfs/zle.c1
11 files changed, 11 insertions, 2 deletions
diff --git a/module/zfs/blkptr.c b/module/zfs/blkptr.c
index ee24b1c31..73600e4ab 100644
--- a/module/zfs/blkptr.c
+++ b/module/zfs/blkptr.c
@@ -17,6 +17,7 @@
* Copyright (c) 2013, 2016 by Delphix. All rights reserved.
*/
+#include <sys/blkptr.h>
#include <sys/zfs_context.h>
#include <sys/zio.h>
#include <sys/zio_compress.h>
diff --git a/module/zfs/dmu_object.c b/module/zfs/dmu_object.c
index be4eba91c..453a2842c 100644
--- a/module/zfs/dmu_object.c
+++ b/module/zfs/dmu_object.c
@@ -26,6 +26,7 @@
#include <sys/dbuf.h>
#include <sys/dmu.h>
+#include <sys/dmu_impl.h>
#include <sys/dmu_objset.h>
#include <sys/dmu_tx.h>
#include <sys/dnode.h>
diff --git a/module/zfs/edonr_zfs.c b/module/zfs/edonr_zfs.c
index e92da6d6c..aa00e1c94 100644
--- a/module/zfs/edonr_zfs.c
+++ b/module/zfs/edonr_zfs.c
@@ -27,8 +27,8 @@
*/
#include <sys/zfs_context.h>
#include <sys/zio.h>
+#include <sys/zio_checksum.h>
#include <sys/edonr.h>
-#include <sys/zfs_context.h> /* For CTASSERT() */
#include <sys/abd.h>
#define EDONR_MODE 512
diff --git a/module/zfs/gzip.c b/module/zfs/gzip.c
index 9d8af3228..e2c6e5996 100644
--- a/module/zfs/gzip.c
+++ b/module/zfs/gzip.c
@@ -30,6 +30,7 @@
#include <sys/types.h>
#include <sys/strings.h>
#include <sys/qat.h>
+#include <sys/zio_compress.h>
#ifdef _KERNEL
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c
index 953c440df..52e527b02 100644
--- a/module/zfs/lz4.c
+++ b/module/zfs/lz4.c
@@ -33,6 +33,7 @@
*/
#include <sys/zfs_context.h>
+#include <sys/zio_compress.h>
static int real_LZ4_compress(const char *source, char *dest, int isize,
int osize);
diff --git a/module/zfs/lzjb.c b/module/zfs/lzjb.c
index ae1846701..a478e64c5 100644
--- a/module/zfs/lzjb.c
+++ b/module/zfs/lzjb.c
@@ -37,6 +37,7 @@
*/
#include <sys/zfs_context.h>
+#include <sys/zio_compress.h>
#define MATCH_BITS 6
#define MATCH_MIN 3
diff --git a/module/zfs/sha256.c b/module/zfs/sha256.c
index 406c926a0..d297768ea 100644
--- a/module/zfs/sha256.c
+++ b/module/zfs/sha256.c
@@ -28,6 +28,7 @@
*/
#include <sys/zfs_context.h>
#include <sys/zio.h>
+#include <sys/zio_checksum.h>
#include <sys/sha2.h>
#include <sys/abd.h>
#include <sys/qat.h>
diff --git a/module/zfs/skein_zfs.c b/module/zfs/skein_zfs.c
index 8deb84b26..11b9940e0 100644
--- a/module/zfs/skein_zfs.c
+++ b/module/zfs/skein_zfs.c
@@ -24,6 +24,7 @@
*/
#include <sys/zfs_context.h>
#include <sys/zio.h>
+#include <sys/zio_checksum.h>
#include <sys/skein.h>
#include <sys/abd.h>
diff --git a/module/zfs/spa_boot.c b/module/zfs/spa_boot.c
index be79542c9..674394650 100644
--- a/module/zfs/spa_boot.c
+++ b/module/zfs/spa_boot.c
@@ -27,7 +27,7 @@
#ifdef _KERNEL
#include <sys/zio.h>
-#include <sys/spa.h>
+#include <sys/spa_boot.h>
#include <sys/sunddi.h>
char *
diff --git a/module/zfs/zcp_get.c b/module/zfs/zcp_get.c
index a23230ffb..7256e4de1 100644
--- a/module/zfs/zcp_get.c
+++ b/module/zfs/zcp_get.c
@@ -34,6 +34,7 @@
#include <sys/zcp.h>
#include <sys/zcp_iter.h>
#include <sys/zcp_global.h>
+#include <sys/zcp_prop.h>
#include <sys/zfs_ioctl.h>
#include <sys/zfs_znode.h>
#include <sys/zvol.h>
diff --git a/module/zfs/zle.c b/module/zfs/zle.c
index 613607faa..0decebb13 100644
--- a/module/zfs/zle.c
+++ b/module/zfs/zle.c
@@ -32,6 +32,7 @@
*/
#include <sys/types.h>
#include <sys/sysmacros.h>
+#include <sys/zio_compress.h>
size_t
zle_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)