svn commit: r315989 - in vendor-sys/illumos/dist/uts/common/fs/zfs: . sys
Josh Paetzel
jpaetzel at FreeBSD.org
Sun Mar 26 16:49:22 UTC 2017
Author: jpaetzel
Date: Sun Mar 26 16:49:20 2017
New Revision: 315989
URL: https://svnweb.freebsd.org/changeset/base/315989
Log:
7603 xuio_stat_wbuf_* should be declared (void)
illumos/illumos-gate at 99aa8b55058e512798eafbd71f72f916bdc10181
https://github.com/illumos/illumos-gate/commit/99aa8b55058e512798eafbd71f72f916bdc10181
https://www.illumos.org/issues/7603
The funcs are declared k&r style, where the args are not specified:
void xuio_stat_wbuf_copied();
They should be declared to take no arguments:
void xuio_stat_wbuf_copied(void);
Need to change both .c and .h.
Author: Prashanth Sreenivasa <pks at delphix.com>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Paul Dagnelie <pcd at delphix.com>
Reviewed by: Robert Mustacchi <rm at joyent.com>
Approved by: Richard Lowe <richlowe at richlowe.net>
Modified:
vendor-sys/illumos/dist/uts/common/fs/zfs/dmu.c
vendor-sys/illumos/dist/uts/common/fs/zfs/sys/dmu.h
Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/dmu.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/dmu.c Sun Mar 26 16:46:39 2017 (r315988)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/dmu.c Sun Mar 26 16:49:20 2017 (r315989)
@@ -1124,13 +1124,13 @@ xuio_stat_fini(void)
}
void
-xuio_stat_wbuf_copied()
+xuio_stat_wbuf_copied(void)
{
XUIOSTAT_BUMP(xuiostat_wbuf_copied);
}
void
-xuio_stat_wbuf_nocopy()
+xuio_stat_wbuf_nocopy(void)
{
XUIOSTAT_BUMP(xuiostat_wbuf_nocopy);
}
Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/sys/dmu.h
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/sys/dmu.h Sun Mar 26 16:46:39 2017 (r315988)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/sys/dmu.h Sun Mar 26 16:49:20 2017 (r315989)
@@ -753,8 +753,8 @@ int dmu_xuio_add(struct xuio *uio, struc
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 boolean_t zfs_prefetch_disable;
extern int zfs_max_recordsize;
More information about the svn-src-vendor
mailing list