git: 89737eb8290a - main - Fix the build after 47a57144
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 May 2022 18:41:23 UTC
The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=89737eb8290a10d96b77afac1b68e4740b43353b commit 89737eb8290a10d96b77afac1b68e4740b43353b Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2022-05-19 18:40:59 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2022-05-19 18:40:59 +0000 Fix the build after 47a57144 --- sys/compat/linux/linux_misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index d8687945b0e8..652a9b4b5067 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -2239,6 +2239,11 @@ linux_sched_getparam(struct thread *td, return (error); } +static const struct cpuset_copy_cb copy_set = { + .copyin = copyin, + .copyout = copyout +}; + /* * Get affinity of a process. */ @@ -2257,7 +2262,7 @@ linux_sched_getaffinity(struct thread *td, PROC_UNLOCK(tdt->td_proc); error = kern_cpuset_getaffinity(td, CPU_LEVEL_WHICH, CPU_WHICH_TID, - tid, args->len, (cpuset_t *)args->user_mask_ptr); + tid, args->len, (cpuset_t *)args->user_mask_ptr, ©_set); if (error == ERANGE) error = EINVAL; if (error == 0)