git: 794328fbc174 - main - linux(4): Staticize lsiginfo_to_siginfo
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Sep 2023 14:53:24 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=794328fbc174360a09b6ad341624e9bce46f0d2e
commit 794328fbc174360a09b6ad341624e9bce46f0d2e
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-09-18 14:52:43 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-09-18 14:52:43 +0000
linux(4): Staticize lsiginfo_to_siginfo
It's not used outside of linux_signal.c
While here fix the indentation.
MFC after: 1 week
---
sys/compat/linux/linux_signal.c | 2 +-
sys/compat/linux/linux_signal.h | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c
index 5b4f9c2adc6a..e3e3fc74a6a9 100644
--- a/sys/compat/linux/linux_signal.c
+++ b/sys/compat/linux/linux_signal.c
@@ -766,7 +766,7 @@ siginfo_to_lsiginfo(const siginfo_t *si, l_siginfo_t *lsi, l_int sig)
}
}
-int
+static int
lsiginfo_to_siginfo(struct thread *td, const l_siginfo_t *lsi,
siginfo_t *si, int sig)
{
diff --git a/sys/compat/linux/linux_signal.h b/sys/compat/linux/linux_signal.h
index 3ef64c0007fb..3f3599f4027e 100644
--- a/sys/compat/linux/linux_signal.h
+++ b/sys/compat/linux/linux_signal.h
@@ -31,9 +31,7 @@
int linux_do_sigaction(struct thread *, int, l_sigaction_t *, l_sigaction_t *);
void siginfo_to_lsiginfo(const siginfo_t *si, l_siginfo_t *lsi, l_int sig);
-int lsiginfo_to_siginfo(struct thread *td, const l_siginfo_t *lsi,
- siginfo_t *si, int sig);
int linux_copyin_sigset(struct thread *td, l_sigset_t *, l_size_t, sigset_t *,
- sigset_t **);
+ sigset_t **);
#endif /* _LINUX_SIGNAL_H_ */