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
@@ -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)