mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Add prototypes
Add prototypes/move prototypes to header files. 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:
committed by
Brian Behlendorf
parent
60356b1a21
commit
0ce2de637b
@@ -159,7 +159,7 @@ typedef struct ace_list {
|
||||
* returns (-1 = less than, 0 = equal, 1 = greater than
|
||||
*/
|
||||
void
|
||||
ksort(caddr_t v, int n, int s, int (*f)())
|
||||
ksort(caddr_t v, int n, int s, int (*f)(void *, void *))
|
||||
{
|
||||
int g, i, j, ii;
|
||||
unsigned int *p1, *p2;
|
||||
|
||||
@@ -52,7 +52,8 @@ typedef struct callb {
|
||||
char c_flag; /* info about the callb state */
|
||||
uchar_t c_class; /* this callb's class */
|
||||
kcondvar_t c_done_cv; /* signal callb completion */
|
||||
boolean_t (*c_func)(); /* cb function: returns true if ok */
|
||||
boolean_t (*c_func)(void *, int);
|
||||
/* cb function: returns true if ok */
|
||||
void *c_arg; /* arg to c_func */
|
||||
char c_name[CB_MAXNAME+1]; /* debug:max func name length */
|
||||
} callb_t;
|
||||
|
||||
@@ -106,11 +106,6 @@ SYSCTL_INT(_vfs_zfs_version, OID_AUTO, ioctl, CTLFLAG_RD, &zfs_version_ioctl,
|
||||
|
||||
static struct cdev *zfsdev;
|
||||
|
||||
extern void zfs_init(void);
|
||||
extern void zfs_fini(void);
|
||||
extern void zfs_ioctl_init(void);
|
||||
|
||||
|
||||
static struct root_hold_token *zfs_root_token;
|
||||
|
||||
extern uint_t rrw_tsd_key;
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <sys/zil.h>
|
||||
#include <sys/ddt.h>
|
||||
#include <sys/vdev_impl.h>
|
||||
#include <sys/vdev_os.h>
|
||||
#include <sys/vdev_removal.h>
|
||||
#include <sys/vdev_indirect_mapping.h>
|
||||
#include <sys/vdev_indirect_births.h>
|
||||
@@ -72,9 +73,6 @@
|
||||
#include "zfs_prop.h"
|
||||
#include "zfs_comutil.h"
|
||||
|
||||
extern int vdev_geom_read_pool_label(const char *name, nvlist_t ***configs,
|
||||
uint64_t *count);
|
||||
|
||||
static nvlist_t *
|
||||
spa_generate_rootconf(const char *name)
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <sys/spa.h>
|
||||
#include <sys/spa_impl.h>
|
||||
#include <sys/vdev_impl.h>
|
||||
#include <sys/vdev_os.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include <sys/zio.h>
|
||||
#include <geom/geom.h>
|
||||
|
||||
Reference in New Issue
Block a user