From nobody Tue Nov 07 11:23:04 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 4SPm6c46wWz4ygn8; Tue, 7 Nov 2023 11:23:04 +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 4SPm6c39ZMz3cHq; Tue, 7 Nov 2023 11:23:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699356184; 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=BwiDgPXB7t4ut++Jtb0NQRoBbFyQDZHivsTyRXdGhpw=; b=q6awJ4qvdM1D0GX/2eWfLZx9fwYZYaoohfob+RQnRAm+WN6PVDTGrN5FV3ETlsUPoFAozD hFxT+TIKyepW5rSK7mX/0YmRe35G4Dqlv+wucSAEMtkgOLFKQbUYI13EW3q0+0q6IzODAh BItYhx6VcmaX6vEoTkignczAOOoSOUOT94VRAlzgmQIrg10VtRv+8IlYjyxCyQ8C6XDXLd T5bXhy8+E5sozM3v0DULC/xNJHEflUEDSh8SRi35ALU5MP5S6472QmDiVK5Vup/qpoGyDA wnEapiI8/Ow8qOnQoc8NzajwtUWmUP0DavXrFJ/gkKGYyld7VclPxGTjjYrCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699356184; 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=BwiDgPXB7t4ut++Jtb0NQRoBbFyQDZHivsTyRXdGhpw=; b=qggnA6GUZ3zdOpzbN8JK2fV6hO/M2M+NAcm4AMTM2Bngi88vTYfZSBuFPPzrdy3UWHha/R J3/lnWlzHooD0SgRcuY7ZleowB3jOYzmKTfABaQJ5rdeFThNLCUHd2yq4eDCKW4hsNJ5TL y5T9uq8gg2n/vo6jcS5UccgyJcjYl9Gt9o3p/NKgpXcvxv31dyvjRl9ue3iEkZMWDdMIcm BhW3n+q6sBhmNGmDz3yxbXmix88LktAwxb4Q1B6qsc4RXdh1R2W0fxUcgFttlg0VP0j1oD 3w/CKuYqJ2dDdrRgDkZdfzZ8FHu/7xyU++GVakP37IqUxkY8sWV52Y76TPWC8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699356184; a=rsa-sha256; cv=none; b=OYdVnfA9zy/Z45tUCn5KzfV1dhLHkGx6avvppGAPzAp100EuWuzsPfs6tts5nyB0x7eIxq EZFOJgd6JjAZAH983B71QgAQ7UFtC6gTuHoF4+Aui7M7iv4EnOhtxzxveAuCGK9LHbPNep F3TmbQFULiTS1WDfsQfxsSS5xLrwygxqZhSa8HMU6WHo9dTSbP0EPZZTNBl9VS30TfZ6nX QPEgJzshbhXMG65erS4ES8QIZ9yQrjIjPqjbkWevjp9KYHFbccLHh+m7BILbT1XHdybZsZ 4/YbBPRFsc8MpfixposCIlPCVNJQS7JaKfmNkeEsFI4MLribOvSySyVxOXtraw== 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 4SPm6c28Kwzp0f; Tue, 7 Nov 2023 11:23:04 +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 3A7BN4hO034140; Tue, 7 Nov 2023 11:23:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3A7BN4SE034137; Tue, 7 Nov 2023 11:23:04 GMT (envelope-from git) Date: Tue, 7 Nov 2023 11:23:04 GMT Message-Id: <202311071123.3A7BN4SE034137@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: 96cb1d70008e - main - 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/main X-Git-Reftype: branch X-Git-Commit: 96cb1d70008e6d42750e95135316cafd6899384f Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=96cb1d70008e6d42750e95135316cafd6899384f commit 96cb1d70008e6d42750e95135316cafd6899384f Author: Konstantin Belousov AuthorDate: 2023-11-07 10:56:39 +0000 Commit: Konstantin Belousov CommitDate: 2023-11-07 10:58:21 +0000 linuxkpi linux_work: use 'true' instead of 'non-zero' Submitted by: markj MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42468 --- 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