From owner-svn-src-stable@freebsd.org Thu Apr 27 18:21:40 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AFFAD53B82; Thu, 27 Apr 2017 18:21:40 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CB70316C4; Thu, 27 Apr 2017 18:21:39 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3RILcpJ097579; Thu, 27 Apr 2017 18:21:38 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3RILcwn097578; Thu, 27 Apr 2017 18:21:38 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201704271821.v3RILcwn097578@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Thu, 27 Apr 2017 18:21:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r317513 - stable/10/sys/kern X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2017 18:21:40 -0000 Author: emaste Date: Thu Apr 27 18:21:38 2017 New Revision: 317513 URL: https://svnweb.freebsd.org/changeset/base/317513 Log: MFC r315237 (kib): Hide kev_iovlen() definition under #ifdef KTRACE Fixes build of kernel configs without KTRACE. Sponsored by: The FreeBSD Foundation Modified: stable/10/sys/kern/kern_event.c Modified: stable/10/sys/kern/kern_event.c ============================================================================== --- stable/10/sys/kern/kern_event.c Thu Apr 27 17:53:05 2017 (r317512) +++ stable/10/sys/kern/kern_event.c Thu Apr 27 18:21:38 2017 (r317513) @@ -825,6 +825,7 @@ done2: return (error); } +#ifdef KTRACE static size_t kev_iovlen(int n, u_int kgio) { @@ -833,6 +834,7 @@ kev_iovlen(int n, u_int kgio) return (kgio); return (n * sizeof(struct kevent)); } +#endif #ifndef _SYS_SYSPROTO_H_ struct kevent_args {