git: 86e43b5def1b - main - linux: Export linux_convert_l_sigevent

From: Warner Losh <imp_at_FreeBSD.org>
Date: Thu, 23 May 2024 19:42:12 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=86e43b5def1bc1c94d40b809ab8c8ff0259735ff

commit 86e43b5def1bc1c94d40b809ab8c8ff0259735ff
Author:     Ricardo Branco <rbranco@suse.de>
AuthorDate: 2024-05-17 20:29:03 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-23 19:40:46 +0000

    linux: Export linux_convert_l_sigevent
    
    Reviewed by: imp, kib
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1248
---
 sys/compat/linux/linux_time.h  | 1 +
 sys/compat/linux/linux_timer.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linux/linux_time.h b/sys/compat/linux/linux_time.h
index d99684db1cbf..bb23105f4f23 100644
--- a/sys/compat/linux/linux_time.h
+++ b/sys/compat/linux/linux_time.h
@@ -137,6 +137,7 @@ int linux_to_native_itimerspec64(struct itimerspec *,
 				     struct l_itimerspec64 *);
 #endif
 
+int linux_convert_l_sigevent(const struct l_sigevent *l_sig, struct sigevent *sig);
 int linux_to_native_timerflags(int *, int);
 
 #endif	/* _LINUX_TIME_H */
diff --git a/sys/compat/linux/linux_timer.c b/sys/compat/linux/linux_timer.c
index 2188006ec38f..ed9133359302 100644
--- a/sys/compat/linux/linux_timer.c
+++ b/sys/compat/linux/linux_timer.c
@@ -43,8 +43,8 @@
 #endif
 #include <compat/linux/linux_time.h>
 
-static int
-linux_convert_l_sigevent(struct l_sigevent *l_sig, struct sigevent *sig)
+int
+linux_convert_l_sigevent(const struct l_sigevent *l_sig, struct sigevent *sig)
 {
 
 	CP(*l_sig, *sig, sigev_notify);