From nobody Tue Nov 14 00:29:07 2023 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 4STnGq3jqCz50N63; Tue, 14 Nov 2023 00:29:07 +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 4STnGq2wjXz4N64; Tue, 14 Nov 2023 00:29:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699921747; 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=ERktq7YWqBSMK4XZox3Pwbk+eVll52boTa50YpdP6Do=; b=TSFUrz+NGi5d3kuelleQVmSd+0EqGKWELXn4DFOZUmMYgGFT4fV28vuZMqxgdM4tcbLZJX WaTvx6RUw1u/WikxbeKnxjUOtWUknW4eGw9xSqfceUm+KyxvyRyMNFn9varCLBezEKOjG6 K1cdkSNZrEib4pQFCqH4pEwV5NaHMDdLwMoZqqSdHufZyDunkxYBZ2mtM8z8ReFxLcjJu0 iTcBo83qM22u2ubXJhpDp1oIVdDm++1MvHl6o7rEoCCM2zBnf+iJLGvYwKSCLC8syJmzJR E3B7y+4lsSls6hDuoksr+nmwXaFGJcgmAVc2w2v58kKPVjBWUl9Hloy+YsDxIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699921747; 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=ERktq7YWqBSMK4XZox3Pwbk+eVll52boTa50YpdP6Do=; b=wnbDfic5b/oRpH30cW6HWhDZqNJLxJ78/6jiex2+hhe3R0OBD7Yg9r+6T7BNkW5gXSjnzT LifbyOCcuYmglqfR9wlAkSHrFnK9Oe6WLVnP+uKod+JSOfdblxWJtKjSvdeGe/rhZeMEYP Qahz7C2a+rHCSsX0Kp9WU5bQdJ9ghaIYLIs0GxpQhUhs1OlQ4LYFoyE9LXp0NcO7kWlfAb Z6GCOehUYpTZpzgDpyiQRo/Tly03meHBSwRbRqWomUUybu3dmgacHrHR3RkcWultYVtqNR /R9GxmDzvH5Qb3c7Wk5CFLm5tSXN0vBtKgdU5wOJgsXlgtnDwnJ7jku28dsD7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699921747; a=rsa-sha256; cv=none; b=AOWZ7qlA049tHX3JNcEAUmMVNCfXuCkhWOfdEuusuAOHlAHHqOx0RLb/NvqGQv3AClDCqV uO4s5Y43R1+ucJcasmbflkd3bjEKw+yGPUC5v0zJcYZ7luAiMWTJseyxjpMYWAuaVJzoRg jAcnXu13pq1+m64tWpV6+/6aUmb09YRJIHpkHX+1KRBg6svjvUYT8GknKoZWN8TJKDCRpv ZttM1KHh0HHxuhnGhfaC4brISumFXnfd+FvyMxyKZ755rIZEgacVr7zjiZWxiBMCod7qDG 4sCtbyuoBn23pkgWAMA5hO47sbdZXC49/bzjb87uAh6qzskNxSaAu6QXdZtusg== 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 4STnGq1sx7zCGJ; Tue, 14 Nov 2023 00:29:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AE0T7O8064745; Tue, 14 Nov 2023 00:29:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AE0T7Fi064742; Tue, 14 Nov 2023 00:29:07 GMT (envelope-from git) Date: Tue, 14 Nov 2023 00:29:07 GMT Message-Id: <202311140029.3AE0T7Fi064742@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: 4c40dda67ade - stable/13 - linuxkpi linux_work: use 'true' instead of 'non-zero' 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: 4c40dda67ade420a0e3544b5e4fa461ac4787077 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4c40dda67ade420a0e3544b5e4fa461ac4787077 commit 4c40dda67ade420a0e3544b5e4fa461ac4787077 Author: Konstantin Belousov AuthorDate: 2023-11-07 10:56:39 +0000 Commit: Konstantin Belousov CommitDate: 2023-11-13 22:30:25 +0000 linuxkpi linux_work: use 'true' instead of 'non-zero' (cherry picked from commit 96cb1d70008e6d42750e95135316cafd6899384f) --- sys/compat/linuxkpi/common/src/linux_work.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/linuxkpi/common/src/linux_work.c b/sys/compat/linuxkpi/common/src/linux_work.c index 888ac97dbff6..c62302ad2346 100644 --- a/sys/compat/linuxkpi/common/src/linux_work.c +++ b/sys/compat/linuxkpi/common/src/linux_work.c @@ -206,7 +206,7 @@ linux_flush_rcu_work(struct rcu_work *rwork) /* * This function queues the given work structure on the given - * workqueue after a given delay in ticks. It returns non-zero if the + * workqueue after a given delay in ticks. It returns true if the * work was successfully [re-]queued. Else the work is already pending * for completion. */ @@ -230,7 +230,7 @@ linux_queue_delayed_work_on(int cpu, struct workqueue_struct *wq, switch (linux_update_state(&dwork->work.state, states)) { case WORK_ST_EXEC: case WORK_ST_CANCEL: - if (delay == 0 && linux_work_exec_unblock(&dwork->work) != 0) { + if (delay == 0 && linux_work_exec_unblock(&dwork->work)) { dwork->timer.expires = jiffies; res = true; goto out; @@ -468,7 +468,7 @@ linux_cancel_delayed_work(struct delayed_work *dwork) /* * This function cancels the given work structure in a synchronous - * fashion. It returns non-zero if the work was successfully + * fashion. It returns true if the work was successfully * cancelled. Else the work was already cancelled. */ static bool