From nobody Sat Sep 03 01:29:20 2022 X-Original-To: dev-commits-src-all@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 4MKHJ065SQz4bwF9; Sat, 3 Sep 2022 01:29:20 +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 4MKHJ05f1Tz3Mtc; Sat, 3 Sep 2022 01:29:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662168560; 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=hKs3Xjdjq/U8o9NOhQAxnpp4oLdNnOxyRS+BAnUOpFY=; b=yrNAE3CByBQmn7HOl5s9Qr9gCGUh518IxFpUuVpJw7K2E6SUkuyZcIV+8HDQfydLOZo/lP fQtvtpdi/PM4iZKybEFIv2TzJH4YDwx43aPtGN+Cwzl3wcn/Zbr6rzCZyyd8K/w/jyddQI oa1C0QEsfOe49HouhrmJiN18UeHUCUZdeIVFDpayU6bkThiJeOlyxYWbyZv72RQJ8IpK+k 1FLo8i0MSl6lQ8x2Nwl5HLB7UcxvydHQhQQeDmTrtRXe5Z+ldsWOt5beF6zJzaa/t34XjA F6dgiyP27y+2NSLf3cC18WcPgW14xz+tdFDE+tA+8uqjsZ09TDAqVoVQJYAL+g== 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 4MKHJ04m9Nz10PD; Sat, 3 Sep 2022 01:29:20 +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 2831TKmN002569; Sat, 3 Sep 2022 01:29:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2831TKvP002568; Sat, 3 Sep 2022 01:29:20 GMT (envelope-from git) Date: Sat, 3 Sep 2022 01:29:20 GMT Message-Id: <202209030129.2831TKvP002568@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: a7fff8e60f24 - stable/13 - ksiginfo_tryfree(): change return type to bool List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: a7fff8e60f24037028441da60073893a62e7e621 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662168560; 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=hKs3Xjdjq/U8o9NOhQAxnpp4oLdNnOxyRS+BAnUOpFY=; b=wF0dpOIRFFV52hN6d7FDjveK3y4VDZPKmCXn0lKGNXFUJ9HW9xP4QKjugsNr9DoqAuiHUG juynwvyfEP/ZU0oIhHLpFVMiO9NunYgnORrIV6Ow+WXAq0XszMogp39Fi+rjK1LtZon6f+ SenIE/cd41J3j4f5oX3dcHBH6rteR3wtopSBaiQc7Q8V/tvG6NFcx5hxnVseaW+Wit4ngQ 8CfqljrgATpe3ZuiyrdXRVqtJ7/R8cKGM8JGbX3WOxnZjaolVkO6dDBjShdFrJuT4z4nEd 51Fhf6Cai7IpMXTF8wUeU60DzJqTXNP3c9qVgw6FL/0ngAnBGUmAWMM40w4CcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662168560; a=rsa-sha256; cv=none; b=NEKyKPohszdRJbg3oGWW6pVVYn7igXXYJM1OpwEeU17QziRXSZKpIalZ4+0dvCXT8Atseq uDasyITH8x1GTwsIqyDUjzqUQJeeRoiEq+vJhOeS0NHXGEdbI9WtrG0/VuAIo55XiYS83f /gwhmobIeRJlnpyyVx2PepQyEe9vySDsWJpkc45lP2PZButH9G/BPm8DBOIO3Mwa+m47QS WkwGG2Gu3knbuQrpFH/c77ftBR4ACo/tFkCdAa+vxk3KeStVLx5TGLYoYOvsO4VLILbxnh EmxbklkvhcdxQCJNnK/x7hyqKYCWr7rgO77pOJ8onaTcM22wKbbVyK+GwNimog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a7fff8e60f24037028441da60073893a62e7e621 commit a7fff8e60f24037028441da60073893a62e7e621 Author: Konstantin Belousov AuthorDate: 2022-08-17 16:58:46 +0000 Commit: Konstantin Belousov CommitDate: 2022-09-03 01:17:35 +0000 ksiginfo_tryfree(): change return type to bool (cherry picked from commit cdb58f9d04cfb99d00e757ee769f8c2c3efcff89) --- sys/kern/kern_sig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 54d2ed857c07..9953cf6b8d79 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -303,14 +303,14 @@ ksiginfo_free(ksiginfo_t *ksi) uma_zfree(ksiginfo_zone, ksi); } -static __inline int +static __inline bool ksiginfo_tryfree(ksiginfo_t *ksi) { - if (!(ksi->ksi_flags & KSI_EXT)) { + if ((ksi->ksi_flags & KSI_EXT) == 0) { uma_zfree(ksiginfo_zone, ksi); - return (1); + return (true); } - return (0); + return (false); } void