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
This commit is contained in:
Konstantin Belousov 2017-03-14 08:45:52 +00:00
parent 0cbfd9bb18
commit 67d0b0ea60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315237

View File

@ -887,6 +887,7 @@ kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps)
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 {