From nobody Tue Aug 02 18:12:17 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ly3415KTdz4Xr1Z; Tue, 2 Aug 2022 18:12:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ly3414kvDz40hq; Tue, 2 Aug 2022 18:12:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659463937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+xVWH9xTofqEr+l4glkvkISp+H8a5d2KyNoRMXfZtN4=; b=Wkg9IqHxaRcuJPFta2uhDlcYFvXbTyEb83/V82kkNdrOCNX6OmowcNY/ob1KczYtbNU3xW raan7/Ri/cfJDI2Xty5HgtYpAT2B2fC3+MI7i9qn7292hIqs98fzkDqFVUBaOGjEa+gFsm QU3jYobGXPEzRUTcxlKBF/1EzMl9/1OT0VcHbK1PAIw08sSIdEM72hLSkCZLkg4YPOptRo 3YouDdZI73stuIGYlS/NY+fopWm6MOKY3GyR3XT34CcBRDte1yiLhdCCur1apN7EAss1rb 2gRZirh9IMweOAOTAYWGsS2NebrbjYqBhWEqqTWWac2x4Yj/POVJqjhPU1iWkA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ly3413sD0zMny; Tue, 2 Aug 2022 18:12:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 272ICHDR000549; Tue, 2 Aug 2022 18:12:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 272ICHr5000548; Tue, 2 Aug 2022 18:12:17 GMT (envelope-from git) Date: Tue, 2 Aug 2022 18:12:17 GMT Message-Id: <202208021812.272ICHr5000548@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4fced8642f8e - main - sigfastblock_setpend() and fastblock_mask can be static now List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4fced8642f8eeadbd16c9cc411bba5f0419ccc0e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659463937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+xVWH9xTofqEr+l4glkvkISp+H8a5d2KyNoRMXfZtN4=; b=vZeZ1q3n/Cw3eUJ7rH5ZO0xX6+3XQvy/KU4Fw1XnEj7MAe+l1ID3aO5HsFixUdWmc8XICj F2ey6KTF6qKQcgA7VWxkgwzQnRUtLSidAwycAuEjTkDy2qGoek7PFuR47+bzkItg6C1bKf slhyY+w4FLrVwx/e5K2Iqgw1oeJaA+NjTRzYvmmy/4I7A2CbwheA1qx8MkciZ5oNFBBuBe c3iude75kgvKUBgr6X0puEaiCu4Kbefodgu1UuezoRZr/zFGo3HWEB4SGYy+hiGDL+IMJB V4+btEoCSRfQYji8gpLLNWk3pIdJlvgoQ2xdagwG40nkZDM/A12sibrP7EEcuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659463937; a=rsa-sha256; cv=none; b=S8Yj63+J449nQhWUK6JiCgNC8yf5OKm32s5Vs4Mfbmp+hS1NA3e2iGmr791Fq+OdBHQVTF h4GbxMd69ys3bdEi8IxC66FEyhm9jdExps9pp8w1navrx1SB75lHRmijkb2DiP8AGRSFfg GLuQEt0Huhl3o3jaCS0pSWcRBhQAdTuiWVyyHuihz+DVQ4n39IO9BZ4ryxErPQuni13Vef XZcbVDIcpnLIVUmUKVqwlLUG+9a2AHRyzsgksmhJXY1F3Xl/V3DUkJYAHh6XZWUltFwSeg /ckGSp9L1IucmteTj9veVGLOCYuHGqsnCWRzLo5XM4grHSBo20OBE9EbwXBG6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4fced8642f8eeadbd16c9cc411bba5f0419ccc0e commit 4fced8642f8eeadbd16c9cc411bba5f0419ccc0e Author: Konstantin Belousov AuthorDate: 2022-07-22 06:59:16 +0000 Commit: Konstantin Belousov 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);