From nobody Mon Mar 28 16:31:36 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 6D4401A44BE9; Mon, 28 Mar 2022 16:31:36 +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 4KRyrS2Wn8z3vl6; Mon, 28 Mar 2022 16:31:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648485096; 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=qyyNNpVMptVyLESSKIFmTEJ93aOVM7bP/PAjFa8oBMM=; b=ZzmPw3ljNiolVdJ/oMtbz2rhChmHG2kK3toRPo4Mdikd64omGexzEcMYKkfSp687Lka9F6 aMzWOZ1oTAMDY/2iBC975MeCoqwvqlig8rxGylU6sx7WhM45N+80Zdnk6fakbZUuRAtOEQ 8LbxgITo7ygkPjC14m6h9BeB/A7fCHWUB7FMJw7lglff7f7N4G5r2z1dBbtnbbqS7r0oE+ y42CTLmzmIuClHm5N83lZrOPcyxmExKJPy8drLUYaHlXAw0nNuNfMN9EEOxEtK3yNIRRYN 6AG+BgtcA8x0y3Z90MR2QNsW70xGuG4BR9rQR5TUqa8yB8cwVYdY0IXdHNGTLw== 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 367F65783; Mon, 28 Mar 2022 16:31:36 +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 22SGVa3r077930; Mon, 28 Mar 2022 16:31:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22SGVahj077929; Mon, 28 Mar 2022 16:31:36 GMT (envelope-from git) Date: Mon, 28 Mar 2022 16:31:36 GMT Message-Id: <202203281631.22SGVahj077929@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 2192bc32554a - main - linuxkpi: Change irq_work_queue to return a bool 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2192bc32554ab94900d644e2af197c700c81692d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648485096; 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=qyyNNpVMptVyLESSKIFmTEJ93aOVM7bP/PAjFa8oBMM=; b=MSfwy69mrHN0EzFOcSSV1+HZrboPEVTaNIl7HOvEbl4sJK+jGgDqq6He7PWfXGNoE+ZAS4 4PfqyCAPVx9RDRKThRvdd+oAFzWSVgAOQ/vCintiwreHFnuZYucfxVwmA6kCeBJoQYqT1c PZCJmHs4ymOFJjIk44q7uzMon64bbw2lUIdcd8eD+aiHGeCtvrOatR9Qkz9TdG6K7niHKs 0BqYbWlbD1uIOE+juR1VcaGtU3/LT4+qFFE3MU+xtUTzuHMlc9XIUsXCEyhuv+DJvwXrNK c9B0MNsPPbcUa5hptjN7BZnMi6Hr8g2xxmY5nEJsGU0GiAZEaw9aNBwxLMITOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648485096; a=rsa-sha256; cv=none; b=nLwASm3fd5NI37zIUbIB5hftUSUJ9I3CkKtyTzs/RWeH009aIS3Gw0bMznt602j3/aGMyh 21+ZPxELfHblnV8NPGx7LuZ+H44h91DEMKKudFo0Az3os0fhQ3+6j+shT784lhUrzx8gxp PqV+k1qNOAE8ouY6wOL7W6kIZGCZLEHQxr0b95bZYyetmgtPqgK4F+0PNfBpdi8p8FH7Y1 fEekoiV5o2+t9ejKjaEtqltw7w14VleC2TUjJiqAqtEQ0GsTII8AjycOY1SELmiCpXwHAe uVUSjqStRnM/IP7anO0mp/aTXkTrSXkdy9bFNVUY0O6TSxlv3X+j7TFDklFZQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=2192bc32554ab94900d644e2af197c700c81692d commit 2192bc32554ab94900d644e2af197c700c81692d Author: Emmanuel Vadot AuthorDate: 2022-03-28 13:27:27 +0000 Commit: Emmanuel Vadot CommitDate: 2022-03-28 16:31:31 +0000 linuxkpi: Change irq_work_queue to return a bool This was changed in Linux v5.10 MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co .KG --- sys/compat/linuxkpi/common/include/linux/irq_work.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h index d87ac8f0f44f..d5b211248de3 100644 --- a/sys/compat/linuxkpi/common/include/linux/irq_work.h +++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h @@ -60,10 +60,13 @@ init_irq_work(struct irq_work *irqw, irq_work_func_t func) irqw->func = func; } -static inline void +static inline bool irq_work_queue(struct irq_work *irqw) { - taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task); + if(taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task) == 0) + return (true); + + return (false); } static inline void