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 <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10470
This commit is contained in:
Arvind Sankar
2020-06-11 16:25:39 -04:00
committed by Brian Behlendorf
parent c3fe42aabd
commit 60356b1a21
26 changed files with 36 additions and 11 deletions
+1
View File
@@ -25,6 +25,7 @@
#include <sys/modctl.h>
#include <sys/crypto/common.h>
#include <sys/crypto/icp.h>
#include <sys/crypto/spi.h>
#include <sys/sysmacros.h>
#include <sys/edonr.h>
+1
View File
@@ -27,6 +27,7 @@
#include <sys/zfs_context.h>
#include <sys/modctl.h>
#include <sys/crypto/common.h>
#include <sys/crypto/icp.h>
#include <sys/crypto/spi.h>
#include <sha1/sha1.h>
+1
View File
@@ -25,6 +25,7 @@
#include <sys/modctl.h>
#include <sys/crypto/common.h>
#include <sys/crypto/icp.h>
#include <sys/crypto/spi.h>
#include <sys/sysmacros.h>
#define SKEIN_MODULE_IMPL
+1
View File
@@ -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>
+1
View File
@@ -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>
+1
View File
@@ -857,6 +857,7 @@ zfs_prop_valid_keylocation(const char *str, boolean_t encrypted)
#ifndef _KERNEL
#include <libzfs.h>
/*
* Returns a string describing the set of acceptable values for the given
+1
View File
@@ -235,6 +235,7 @@ zpool_prop_random_value(zpool_prop_t prop, uint64_t seed)
}
#ifndef _KERNEL
#include <libzfs.h>
const char *
zpool_prop_values(zpool_prop_t prop)
+1
View File
@@ -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>
+1
View File
@@ -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>
+1 -1
View File
@@ -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
+1
View File
@@ -30,6 +30,7 @@
#include <sys/types.h>
#include <sys/strings.h>
#include <sys/qat.h>
#include <sys/zio_compress.h>
#ifdef _KERNEL
+1
View File
@@ -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);
+1
View File
@@ -37,6 +37,7 @@
*/
#include <sys/zfs_context.h>
#include <sys/zio_compress.h>
#define MATCH_BITS 6
#define MATCH_MIN 3
+1
View File
@@ -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>
+1
View File
@@ -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>
+1 -1
View File
@@ -27,7 +27,7 @@
#ifdef _KERNEL
#include <sys/zio.h>
#include <sys/spa.h>
#include <sys/spa_boot.h>
#include <sys/sunddi.h>
char *
+1
View File
@@ -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>
+1
View File
@@ -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)