git: ac9d194f493f - stable/13 - linux(4): Guard linux_fork.h by _KERNEL for use by libsysdecode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Jun 2023 08:20:39 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=ac9d194f493f3cc3bf161bc8e42f6e359081171b
commit ac9d194f493f3cc3bf161bc8e42f6e359081171b
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-05-26 16:31:47 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-06-29 08:15:59 +0000
linux(4): Guard linux_fork.h by _KERNEL for use by libsysdecode
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D40149
MFC after: 1 month
(cherry picked from commit 3f1bfc136f8fb8c6a7c4dcccebd27962bc104670)
---
sys/compat/linux/linux_fork.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/compat/linux/linux_fork.h b/sys/compat/linux/linux_fork.h
index bdc201bce57e..2a6e2a158241 100644
--- a/sys/compat/linux/linux_fork.h
+++ b/sys/compat/linux/linux_fork.h
@@ -62,6 +62,7 @@
#define LINUX_CSIGNAL 0x000000ff
+#if defined(_KERNEL)
/*
* User-space clone3 args layout.
*/
@@ -97,5 +98,6 @@ struct l_clone_args {
int linux_set_upcall(struct thread *, register_t);
int linux_set_cloned_tls(struct thread *, void *);
void linux_thread_detach(struct thread *);
+#endif /* defined(_KERNEL) */
#endif /* _LINUX_FORK_H_ */