mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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:
parent
c3fe42aabd
commit
60356b1a21
@ -28,6 +28,7 @@
|
|||||||
#include "zed.h"
|
#include "zed.h"
|
||||||
#include "zed_conf.h"
|
#include "zed_conf.h"
|
||||||
#include "zed_disk_event.h"
|
#include "zed_disk_event.h"
|
||||||
|
#include "zed_event.h"
|
||||||
#include "zed_exec.h"
|
#include "zed_exec.h"
|
||||||
#include "zed_file.h"
|
#include "zed_file.h"
|
||||||
#include "zed_log.h"
|
#include "zed_log.h"
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include "zed_exec.h"
|
||||||
#include "zed_file.h"
|
#include "zed_file.h"
|
||||||
#include "zed_log.h"
|
#include "zed_log.h"
|
||||||
#include "zed_strings.h"
|
#include "zed_strings.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#define ZED_EXEC_H
|
#define ZED_EXEC_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "zed_strings.h"
|
||||||
|
|
||||||
int zed_exec_process(uint64_t eid, const char *class, const char *subclass,
|
int zed_exec_process(uint64_t eid, const char *class, const char *subclass,
|
||||||
const char *dir, zed_strings_t *zedlets, zed_strings_t *envs,
|
const char *dir, zed_strings_t *zedlets, zed_strings_t *envs,
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include "zed_file.h"
|
||||||
#include "zed_log.h"
|
#include "zed_log.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#include <libzfs.h>
|
#include <libzfs.h>
|
||||||
#include <libshare.h>
|
#include <libshare.h>
|
||||||
#include "libshare_impl.h"
|
#include "libshare_impl.h"
|
||||||
|
#include "nfs.h"
|
||||||
|
|
||||||
static boolean_t nfs_available(void);
|
static boolean_t nfs_available(void);
|
||||||
|
|
||||||
|
@ -21,14 +21,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <limits.h>
|
|
||||||
#include <sys/param.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/sysctl.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/param.h>
|
||||||
|
#include <sys/sysctl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
getexecname(void)
|
getexecname(void)
|
||||||
|
@ -25,10 +25,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
getexecname(void)
|
getexecname(void)
|
||||||
|
@ -43,6 +43,8 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#include <libzfs.h>
|
#include <libzfs.h>
|
||||||
|
|
||||||
|
#include "libzfs_impl.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val,
|
build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val,
|
||||||
size_t len)
|
size_t len)
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <sys/modctl.h>
|
#include <sys/modctl.h>
|
||||||
#include <sys/crypto/common.h>
|
#include <sys/crypto/common.h>
|
||||||
|
#include <sys/crypto/icp.h>
|
||||||
#include <sys/crypto/spi.h>
|
#include <sys/crypto/spi.h>
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#include <sys/edonr.h>
|
#include <sys/edonr.h>
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
#include <sys/modctl.h>
|
#include <sys/modctl.h>
|
||||||
#include <sys/crypto/common.h>
|
#include <sys/crypto/common.h>
|
||||||
|
#include <sys/crypto/icp.h>
|
||||||
#include <sys/crypto/spi.h>
|
#include <sys/crypto/spi.h>
|
||||||
|
|
||||||
#include <sha1/sha1.h>
|
#include <sha1/sha1.h>
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <sys/modctl.h>
|
#include <sys/modctl.h>
|
||||||
#include <sys/crypto/common.h>
|
#include <sys/crypto/common.h>
|
||||||
|
#include <sys/crypto/icp.h>
|
||||||
#include <sys/crypto/spi.h>
|
#include <sys/crypto/spi.h>
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#define SKEIN_MODULE_IMPL
|
#define SKEIN_MODULE_IMPL
|
||||||
|
@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <sys/byteorder.h>
|
#include <sys/byteorder.h>
|
||||||
#include <sys/lock.h>
|
#include <sys/lock.h>
|
||||||
#include <sys/freebsd_rwlock.h>
|
#include <sys/freebsd_rwlock.h>
|
||||||
|
#include <sys/vm.h>
|
||||||
|
|
||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
#include <vm/vm_param.h>
|
#include <vm/vm_param.h>
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/kstat.h>
|
#include <sys/kstat.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
|
#include <sys/sunddi.h>
|
||||||
#include <linux/ctype.h>
|
#include <linux/ctype.h>
|
||||||
#include <sys/disp.h>
|
#include <sys/disp.h>
|
||||||
#include <sys/random.h>
|
#include <sys/random.h>
|
||||||
|
@ -857,6 +857,7 @@ zfs_prop_valid_keylocation(const char *str, boolean_t encrypted)
|
|||||||
|
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
#include <libzfs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns a string describing the set of acceptable values for the given
|
* Returns a string describing the set of acceptable values for the given
|
||||||
|
@ -235,6 +235,7 @@ zpool_prop_random_value(zpool_prop_t prop, uint64_t seed)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
#include <libzfs.h>
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
zpool_prop_values(zpool_prop_t prop)
|
zpool_prop_values(zpool_prop_t prop)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
* Copyright (c) 2013, 2016 by Delphix. All rights reserved.
|
* Copyright (c) 2013, 2016 by Delphix. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <sys/blkptr.h>
|
||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
#include <sys/zio.h>
|
#include <sys/zio.h>
|
||||||
#include <sys/zio_compress.h>
|
#include <sys/zio_compress.h>
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <sys/dbuf.h>
|
#include <sys/dbuf.h>
|
||||||
#include <sys/dmu.h>
|
#include <sys/dmu.h>
|
||||||
|
#include <sys/dmu_impl.h>
|
||||||
#include <sys/dmu_objset.h>
|
#include <sys/dmu_objset.h>
|
||||||
#include <sys/dmu_tx.h>
|
#include <sys/dmu_tx.h>
|
||||||
#include <sys/dnode.h>
|
#include <sys/dnode.h>
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
*/
|
*/
|
||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
#include <sys/zio.h>
|
#include <sys/zio.h>
|
||||||
|
#include <sys/zio_checksum.h>
|
||||||
#include <sys/edonr.h>
|
#include <sys/edonr.h>
|
||||||
#include <sys/zfs_context.h> /* For CTASSERT() */
|
|
||||||
#include <sys/abd.h>
|
#include <sys/abd.h>
|
||||||
|
|
||||||
#define EDONR_MODE 512
|
#define EDONR_MODE 512
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/strings.h>
|
#include <sys/strings.h>
|
||||||
#include <sys/qat.h>
|
#include <sys/qat.h>
|
||||||
|
#include <sys/zio_compress.h>
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
|
#include <sys/zio_compress.h>
|
||||||
|
|
||||||
static int real_LZ4_compress(const char *source, char *dest, int isize,
|
static int real_LZ4_compress(const char *source, char *dest, int isize,
|
||||||
int osize);
|
int osize);
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
|
#include <sys/zio_compress.h>
|
||||||
|
|
||||||
#define MATCH_BITS 6
|
#define MATCH_BITS 6
|
||||||
#define MATCH_MIN 3
|
#define MATCH_MIN 3
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
#include <sys/zio.h>
|
#include <sys/zio.h>
|
||||||
|
#include <sys/zio_checksum.h>
|
||||||
#include <sys/sha2.h>
|
#include <sys/sha2.h>
|
||||||
#include <sys/abd.h>
|
#include <sys/abd.h>
|
||||||
#include <sys/qat.h>
|
#include <sys/qat.h>
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <sys/zfs_context.h>
|
#include <sys/zfs_context.h>
|
||||||
#include <sys/zio.h>
|
#include <sys/zio.h>
|
||||||
|
#include <sys/zio_checksum.h>
|
||||||
#include <sys/skein.h>
|
#include <sys/skein.h>
|
||||||
|
|
||||||
#include <sys/abd.h>
|
#include <sys/abd.h>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
|
|
||||||
#include <sys/zio.h>
|
#include <sys/zio.h>
|
||||||
#include <sys/spa.h>
|
#include <sys/spa_boot.h>
|
||||||
#include <sys/sunddi.h>
|
#include <sys/sunddi.h>
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
#include <sys/zcp.h>
|
#include <sys/zcp.h>
|
||||||
#include <sys/zcp_iter.h>
|
#include <sys/zcp_iter.h>
|
||||||
#include <sys/zcp_global.h>
|
#include <sys/zcp_global.h>
|
||||||
|
#include <sys/zcp_prop.h>
|
||||||
#include <sys/zfs_ioctl.h>
|
#include <sys/zfs_ioctl.h>
|
||||||
#include <sys/zfs_znode.h>
|
#include <sys/zfs_znode.h>
|
||||||
#include <sys/zvol.h>
|
#include <sys/zvol.h>
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
|
#include <sys/zio_compress.h>
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
zle_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)
|
zle_compress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)
|
||||||
|
Loading…
Reference in New Issue
Block a user