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:
parent
0cbfd9bb18
commit
67d0b0ea60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315237
@ -887,6 +887,7 @@ kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef KTRACE
|
||||||
static size_t
|
static size_t
|
||||||
kev_iovlen(int n, u_int kgio)
|
kev_iovlen(int n, u_int kgio)
|
||||||
{
|
{
|
||||||
@ -895,6 +896,7 @@ kev_iovlen(int n, u_int kgio)
|
|||||||
return (kgio);
|
return (kgio);
|
||||||
return (n * sizeof(struct kevent));
|
return (n * sizeof(struct kevent));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _SYS_SYSPROTO_H_
|
#ifndef _SYS_SYSPROTO_H_
|
||||||
struct kevent_args {
|
struct kevent_args {
|
||||||
|
Loading…
Reference in New Issue
Block a user