Date: Fri, 17 Apr 2015 00:10:59 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r281632 - user/delphij/zfs-arc-rebase/sys/cddl/compat/opensolaris/sys Message-ID: <201504170011.t3H0B0Fh072554@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri Apr 17 00:10:59 2015 New Revision: 281632 URL: https://svnweb.freebsd.org/changeset/base/281632 Log: ks_update has to be defined outside _KERNEL scope, otherwise code that assigns it would have to protect the assignment inside #ifdef _KERNEL. Modified: user/delphij/zfs-arc-rebase/sys/cddl/compat/opensolaris/sys/kstat.h Modified: user/delphij/zfs-arc-rebase/sys/cddl/compat/opensolaris/sys/kstat.h ============================================================================== --- user/delphij/zfs-arc-rebase/sys/cddl/compat/opensolaris/sys/kstat.h Fri Apr 17 00:05:34 2015 (r281631) +++ user/delphij/zfs-arc-rebase/sys/cddl/compat/opensolaris/sys/kstat.h Fri Apr 17 00:10:59 2015 (r281632) @@ -41,8 +41,8 @@ typedef struct kstat { void *ks_data; u_int ks_ndata; -#ifdef _KERNEL int (*ks_update)(struct kstat *, int); /* dynamic update callback */ +#ifdef _KERNEL struct sysctl_ctx_list ks_sysctl_ctx; struct sysctl_oid *ks_sysctl_root; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504170011.t3H0B0Fh072554>