]> granicus.if.org Git - zfs/commitdiff
Update gcc-invalid-prototypes
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 Jun 2010 22:25:49 +0000 (15:25 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 Jun 2010 22:25:49 +0000 (15:25 -0700)
Fix new invalid prototypes, typically just a missing void arg.

cmd/ztest/ztest.c
module/zfs/include/sys/dmu.h
module/zfs/include/sys/sa.h

index 2806356aa4e3b6db3837620e8576ae757d91168c..11a24e67c5bd990ba872f7e044a5440acc0a1e6f 100644 (file)
@@ -5346,7 +5346,7 @@ print_time(hrtime_t t, char *timebuf)
 }
 
 static nvlist_t *
-make_random_props()
+make_random_props(void)
 {
        nvlist_t *props;
 
index 83932f467a6fa2081b43fd436b1232a15930820c..54115a08cb7a52d3bfe0d70dcbea42f6aaa33243 100644 (file)
@@ -528,8 +528,8 @@ int dmu_xuio_add(struct xuio *uio, struct arc_buf *abuf, offset_t off,
 int dmu_xuio_cnt(struct xuio *uio);
 struct arc_buf *dmu_xuio_arcbuf(struct xuio *uio, int i);
 void dmu_xuio_clear(struct xuio *uio, int i);
-void xuio_stat_wbuf_copied();
-void xuio_stat_wbuf_nocopy();
+void xuio_stat_wbuf_copied(void);
+void xuio_stat_wbuf_nocopy(void);
 
 extern int zfs_prefetch_disable;
 
index e9a96a0f950e90dc0f0dda73819108d87ee12d4a..176bb3a179145e36e5f5fbba73e268fd785c4158 100644 (file)
@@ -148,8 +148,8 @@ int sa_replace_all_by_template(sa_handle_t *, sa_bulk_attr_t *,
 int sa_replace_all_by_template_locked(sa_handle_t *, sa_bulk_attr_t *,
     int, dmu_tx_t *);
 boolean_t sa_enabled(objset_t *);
-void sa_cache_init();
-void sa_cache_fini();
+void sa_cache_init(void);
+void sa_cache_fini(void);
 int sa_set_sa_object(objset_t *, uint64_t);
 int sa_hdrsize(void *);
 void sa_handle_lock(sa_handle_t *);