Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2023 10:24:54 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5ce9df199d7c - stable/14 - linux(4): Staticize lsiginfo_to_siginfo
Message-ID:  <202309251024.38PAOsJ7092776@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=5ce9df199d7c5f70b4bcaac1ccb26254ddc72d83

commit 5ce9df199d7c5f70b4bcaac1ccb26254ddc72d83
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-09-18 14:52:43 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-09-25 10:18:54 +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
    
    (cherry picked from commit 794328fbc174360a09b6ad341624e9bce46f0d2e)
---
 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_ */



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