diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2022-07-22 06:59:16 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-08-02 18:11:10 +0000 |
commit | 4fced8642f8eeadbd16c9cc411bba5f0419ccc0e (patch) | |
tree | f8965f5c34721a502da4c6dfeabbc9aab81ef3f2 | |
parent | c6d31b8306eb708441c61c33bcf886ecad268a16 (diff) |
sigfastblock_setpend() and fastblock_mask can be static now
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35888
-rw-r--r-- | sys/kern/kern_sig.c | 5 | ||||
-rw-r--r-- | sys/sys/signalvar.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index e28b7f61800c..cad8cc3edf98 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -116,6 +116,7 @@ static void filt_sigdetach(struct knote *kn); static int filt_signal(struct knote *kn, long hint); static struct thread *sigtd(struct proc *p, int sig, bool fast_sigblock); static void sigqueue_start(void); +static void sigfastblock_setpend(struct thread *td, bool resched); static uma_zone_t ksiginfo_zone = NULL; struct filterops sig_filtops = { @@ -272,7 +273,7 @@ static int sigproptbl[NSIG] = { for (int32_t __i = -1, __bits = 0; \ _SIG_FOREACH_ADVANCE(i, set); ) \ -sigset_t fastblock_mask; +static sigset_t fastblock_mask; static void ast_sig(struct thread *td, int tda) @@ -4451,7 +4452,7 @@ sigfastblock_setpend1(struct thread *td) } } -void +static void sigfastblock_setpend(struct thread *td, bool resched) { struct proc *p; diff --git a/sys/sys/signalvar.h b/sys/sys/signalvar.h index 4e86f54856f6..85538abeedf9 100644 --- a/sys/sys/signalvar.h +++ b/sys/sys/signalvar.h @@ -272,7 +272,6 @@ int __sys_sigfastblock(int cmd, void *ptr); #endif #ifdef _KERNEL -extern sigset_t fastblock_mask; extern bool sigfastblock_fetch_always; /* Return nonzero if process p has an unmasked pending signal. */ @@ -406,7 +405,6 @@ void sigexit(struct thread *td, int sig) __dead2; int sigev_findtd(struct proc *p, struct sigevent *sigev, struct thread **); void sigfastblock_clear(struct thread *td); void sigfastblock_fetch(struct thread *td); -void sigfastblock_setpend(struct thread *td, bool resched); int sig_intr(void); void siginit(struct proc *p); void signotify(struct thread *td); |