From nobody Tue Nov 14 00:27:25 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 4STnDs4HQbz50Mm5; Tue, 14 Nov 2023 00:27:25 +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 4STnDs3KSBz4MQW; Tue, 14 Nov 2023 00:27:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699921645; 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=76X4QA4wJ3a9bmWcbNkyFVE/gLy4DVQeh/is0rA1WXo=; b=PzWpsTMeJO49UFp7UdfM9OzMrEPy/GLyqyD1CAHIohG5rLTkhBpIDt53a/8l7AwFlU9TAx 3hJVvoJikvQA5E5NIiTntyJJDtTRYuyPsfZm9bwsGOM1H8C/gkO10xnZPCEJxEFzoiZq9W RZ8CEVJ0kud/8a/ZSqDMfoX+KKjjHcRG7ha737fUR6gbVir5Q9s/OkY9PHyRvN/0TxsF2H e0MxrMZXiejOKXDpf0PgPA3I/UC3bri/7H6FNd0OYY2CffZBwhSZp5nE9kgdIaU8wBG+UO Dj8QE0CVxWaYBYdzNvp5mSpcLCGLr56rkbE+QoeTRqn3BnycPLDXzwOXe98y+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699921645; 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=76X4QA4wJ3a9bmWcbNkyFVE/gLy4DVQeh/is0rA1WXo=; b=L9DZd1A0mKhcHyUBZ3iCH8/t6fIruZXxBq1U0oDW3nHqvw0dWmsjVmo0JEQ0n0kjfI4e3F f6IjWzYx6Piq0EJpew9HmtqAoQsktjgxYCYWfNzAlj724oRsomRFDD68lMLLF3uCu0Lbq9 ZiE2MqPcjdRw4hfpAp9/xhhLH9ld6DK0Bh7iaj1Ml6ItSg7PWDSlHKoopyKSj9818wLl6Q DFlIxlyl13MwHuonuEj1Vf+4fVtgk4FOdBTEN0BF+x3qwxkOu4h2s9jjKqSkKRKwG1FTsb ZC6YvoBzHeAp1YPZNywZwmwjgWe7Fk0W/bNKz+y/+kCB/QdzaH3lNThb3cJy8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699921645; a=rsa-sha256; cv=none; b=fXV7hNrTA2MLNtb7N98jDy58atk6YdUtpya29gOa/1RnrP86YMIVGmA67/U+VH2cgdChhA /0TDwyPSqKLa8BsTXoibeO7MGrUJ1+XdTK//OfQmYIu1X04N5PeEHlvtdIEqvUMJSZ5ITt odigPpyvfJ6AJuzMUopLf8kBYlPoCltLCa0f/CdrPn5xtIJgFRnQwQwsKs2Z35SiApO02r gFRYkP5V5nviWXVM17RchqOTqE/Vj1uD4rUUGXKASa46OTMwg5l4Ft+PW+d+enjEXG5KkB rMYZFLe7iEvXjPRNgiZjTiXlK8l3qjesNkhhh6etoWX5SylV2jr0l8bRnABDjw== 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 4STnDs2C3czC7w; Tue, 14 Nov 2023 00:27:25 +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 3AE0RPGX064333; Tue, 14 Nov 2023 00:27:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AE0RPcr064330; Tue, 14 Nov 2023 00:27:25 GMT (envelope-from git) Date: Tue, 14 Nov 2023 00:27:25 GMT Message-Id: <202311140027.3AE0RPcr064330@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: dbec48131fc0 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: dbec48131fc0b4ce6c36220c50797e324f68a4f2 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dbec48131fc0b4ce6c36220c50797e324f68a4f2 commit dbec48131fc0b4ce6c36220c50797e324f68a4f2 Author: Konstantin Belousov AuthorDate: 2023-11-07 10:56:39 +0000 Commit: Konstantin Belousov CommitDate: 2023-11-13 22:29:30 +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