git: 01f281d0ee52 - stable/13 - Fix the build after 47a57144

From: Justin Hibbits <jhibbits_at_FreeBSD.org>
Date: Mon, 23 May 2022 22:11:40 UTC
The branch stable/13 has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=01f281d0ee528a5b2a08d12ad6c91aeb8beb9419

commit 01f281d0ee528a5b2a08d12ad6c91aeb8beb9419
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-05-19 18:40:59 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2022-05-23 22:11:22 +0000

    Fix the build after 47a57144
    
    (cherry picked from commit 89737eb8290a10d96b77afac1b68e4740b43353b)
---
 sys/compat/linux/linux_misc.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index fb529f140d3e..e45a72ecebb7 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -2172,6 +2172,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.
  */
@@ -2192,7 +2197,8 @@ linux_sched_getaffinity(struct thread *td,
 	PROC_UNLOCK(tdt->td_proc);
 
 	error = kern_cpuset_getaffinity(td, CPU_LEVEL_WHICH, CPU_WHICH_TID,
-	    tdt->td_tid, sizeof(cpuset_t), (cpuset_t *)args->user_mask_ptr);
+	    tdt->td_tid, sizeof(cpuset_t), (cpuset_t *)args->user_mask_ptr,
+	    &copy_set);
 	if (error == 0)
 		td->td_retval[0] = sizeof(cpuset_t);
 
@@ -2218,7 +2224,8 @@ linux_sched_setaffinity(struct thread *td,
 	PROC_UNLOCK(tdt->td_proc);
 
 	return (kern_cpuset_setaffinity(td, CPU_LEVEL_WHICH, CPU_WHICH_TID,
-	    tdt->td_tid, sizeof(cpuset_t), (cpuset_t *) args->user_mask_ptr));
+	    tdt->td_tid, sizeof(cpuset_t), (cpuset_t *) args->user_mask_ptr,
+	    &copy_set));
 }
 
 struct linux_rlimit64 {