]> granicus.if.org Git - zfs/commitdiff
Refresh gcc-invalid-prototype branch
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Dec 2008 23:00:44 +0000 (15:00 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Dec 2008 23:00:44 +0000 (15:00 -0800)
.topdeps [new file with mode: 0644]
.topmsg [new file with mode: 0644]
zfs/lib/libspl/include/sys/zfs_context.h
zfs/lib/libzfs/libzfs_mount.c
zfs/lib/libzpool/include/sys/spa.h
zfs/lib/libzpool/include/sys/zfs_znode.h
zfs/lib/libzpool/spa_history.c
zfs/lib/libzpool/spa_misc.c

diff --git a/.topdeps b/.topdeps
new file mode 100644 (file)
index 0000000..1f7391f
--- /dev/null
+++ b/.topdeps
@@ -0,0 +1 @@
+master
diff --git a/.topmsg b/.topmsg
new file mode 100644 (file)
index 0000000..d1a9bb7
--- /dev/null
+++ b/.topmsg
@@ -0,0 +1,6 @@
+From: Brian Behlendorf <behlendorf1@llnl.gov>
+Subject: [PATCH] gcc invalid prototype
+
+Gcc -Wall warn: 'invalid prototype'
+
+Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
index 0e7019bba8681d5bd1cdbcdbb1696ce66be7f297..f924dd1a64a349900465c2b823125b8cf3e06d2b 100644 (file)
@@ -195,7 +195,7 @@ typedef struct kthread kthread_t;
        zk_thread_create(func, arg)
 #define        thread_exit() thr_exit(NULL)
 
-extern kthread_t *zk_thread_create(void (*func)(), void *arg);
+extern kthread_t *zk_thread_create(void (*func)(void), void *arg);
 
 #define        issig(why)      (FALSE)
 #define        ISSIG(thr, why) (FALSE)
index 7c5c7f3ecaeed850c032b254610c643d60adbd6f..bdc254566e285924619524db4d6e3d89a332ff39 100644 (file)
@@ -93,7 +93,7 @@ zfs_share_type_t zfs_is_shared_proto(zfs_handle_t *, char **,
 static int (*iscsitgt_zfs_share)(const char *);
 static int (*iscsitgt_zfs_unshare)(const char *);
 static int (*iscsitgt_zfs_is_shared)(const char *);
-static int (*iscsitgt_svc_online)();
+static int (*iscsitgt_svc_online)(void);
 
 /*
  * The share protocols table must be in the same order as the zfs_share_prot_t
@@ -140,7 +140,7 @@ zfs_iscsi_init(void)
            "iscsitgt_zfs_unshare")) == NULL ||
            (iscsitgt_zfs_is_shared = (int (*)(const char *))dlsym(libiscsitgt,
            "iscsitgt_zfs_is_shared")) == NULL ||
-           (iscsitgt_svc_online = (int (*)(const char *))dlsym(libiscsitgt,
+           (iscsitgt_svc_online = (int (*)(void))dlsym(libiscsitgt,
            "iscsitgt_svc_online")) == NULL) {
                iscsitgt_zfs_share = NULL;
                iscsitgt_zfs_unshare = NULL;
index 24b3ca44767953d22713b3680cc8a95580123541..1029b38294f43714b1830c5a7537f0e212976b05 100644 (file)
@@ -522,7 +522,7 @@ extern void vdev_cache_stat_fini(void);
 /* Initialization and termination */
 extern void spa_init(int flags);
 extern void spa_fini(void);
-extern void spa_boot_init();
+extern void spa_boot_init(void);
 
 /* properties */
 extern int spa_prop_set(spa_t *spa, nvlist_t *nvp);
index a5416525c7a379f5326e7a8c312467d809a8af51..db40968fa2b0d14ce4da6fe381f5dbebcb5cff0b 100644 (file)
@@ -305,8 +305,8 @@ extern int  zfs_rezget(znode_t *);
 extern void    zfs_zinactive(znode_t *);
 extern void    zfs_znode_delete(znode_t *, dmu_tx_t *);
 extern void    zfs_znode_free(znode_t *);
-extern void    zfs_remove_op_tables();
-extern int     zfs_create_op_tables();
+extern void    zfs_remove_op_tables(void);
+extern int     zfs_create_op_tables(void);
 extern int     zfs_sync(vfs_t *vfsp, short flag, cred_t *cr);
 extern dev_t   zfs_cmpldev(uint64_t);
 extern int     zfs_get_zplprop(objset_t *os, zfs_prop_t prop, uint64_t *value);
index c997240c148f23d6385609c2b5e2a114ea0bb2b8..8b422cf8b90b1c8cf6f0b2481793d9964e3731cc 100644 (file)
@@ -176,7 +176,7 @@ spa_history_write(spa_t *spa, void *buf, uint64_t len, spa_history_phys_t *shpp,
 }
 
 static char *
-spa_history_zone()
+spa_history_zone(void)
 {
 #ifdef _KERNEL
        return (curproc->p_zone->zone_name);
index 36046e6df1c04e640d887e7b45acb0552966708c..e188b2da162901e1996714eb8009f1e209680b08 100644 (file)
@@ -1329,7 +1329,7 @@ spa_busy(void)
 }
 
 void
-spa_boot_init()
+spa_boot_init(void)
 {
        spa_config_load();
 }