git: 4fced8642f8e - main - sigfastblock_setpend() and fastblock_mask can be static now
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Aug 2022 18:12:17 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=4fced8642f8eeadbd16c9cc411bba5f0419ccc0e
commit 4fced8642f8eeadbd16c9cc411bba5f0419ccc0e
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-07-22 06:59:16 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-08-02 18:11:10 +0000
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
---
sys/kern/kern_sig.c | 5 +++--
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);