Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2023 16:35:30 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3f1bfc136f8f - main - linux(4): Guard linux_fork.h by _KERNEL for use by libsysdecode
Message-ID:  <202305261635.34QGZUOh052182@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f1bfc136f8fb8c6a7c4dcccebd27962bc104670

commit 3f1bfc136f8fb8c6a7c4dcccebd27962bc104670
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-05-26 16:31:47 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-05-26 16:31:47 +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
---
 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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305261635.34QGZUOh052182>