Date: Tue, 14 Mar 2017 08:45:53 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315237 - head/sys/kern Message-ID: <201703140845.v2E8jrh5037057@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Mar 14 08:45:52 2017 New Revision: 315237 URL: https://svnweb.freebsd.org/changeset/base/315237 Log: Hide kev_iovlen() definition under #ifdef KTRACE, fixing build of kernel configs without KTRACE. Reported by: rpokala Sponsored by: The FreeBSD Foundation MFC after: 4 days Modified: head/sys/kern/kern_event.c Modified: head/sys/kern/kern_event.c ============================================================================== --- head/sys/kern/kern_event.c Tue Mar 14 08:45:33 2017 (r315236) +++ head/sys/kern/kern_event.c Tue Mar 14 08:45:52 2017 (r315237) @@ -887,6 +887,7 @@ kern_kqueue(struct thread *td, int flags return (0); } +#ifdef KTRACE static size_t kev_iovlen(int n, u_int kgio) { @@ -895,6 +896,7 @@ kev_iovlen(int n, u_int kgio) return (kgio); return (n * sizeof(struct kevent)); } +#endif #ifndef _SYS_SYSPROTO_H_ struct kevent_args {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703140845.v2E8jrh5037057>