From nobody Fri Nov 11 17:57:39 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 4N85yW6p72z4dTX4; Fri, 11 Nov 2022 17:57:39 +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 4N85yW60fXz3QJy; Fri, 11 Nov 2022 17:57:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668189459; 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=xjx3c/OIjwSOMa57l6I0L+bbTvXVHv/DIItIgTccLmM=; b=Z0C6cpZekqzAOsVGAPxk6bSOwVZMRNSLvMEXljy3qIU+AMHZvCSbLUEs+0o6FtHzwUtQn3 BqfnQ1ixP/+pYn/zTrS24WutcC3lnUit2m1XSIDQ8EJG5MrK1NpTYu712ni3J31gWs5MmC fFnV7S3Ud7QRIxyjJ/dZZiW+Hvx+eeHM6STzmeJyFMcXiWnzKE0Lmxv4TijniHWEJQlL/Y QxTdIgtNuPvfKPhYOXBcX+5SNii5rhp/G+2/Z7zE5JMDGhEBQolxwLJj+8AQDntnFna2sL nrPvkegvh2PqQ6KeVHX8C2bZxbXwQ4onaU+JNdabmggmUjAfPYtk2lj9VK6e3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668189459; 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=xjx3c/OIjwSOMa57l6I0L+bbTvXVHv/DIItIgTccLmM=; b=uD343qm2IzTTZYyYL0+P118Z8h2VUSWmNm9eecTML41RqwyeZwYd2RqzNOgdu8wV0TXG/f 6xfqpSdBw/KT0OP+ea9QvyydAUOMU2oGvUlpRA9BOKvNPKD7xNSTGNEC+NNhRmtbqfo4JF DD4jSIO6/bBQ5wmT0vGEYwcISQv7xIQ/XYsDSQOdSe248qYRS+SZCGFcrN2U082hvqAweW jv+vHZE0o5ZoNwc8kspo8RITEg305am+AGZ5Hk7aR+Ud5iKnGmd+fEMhtuZ/KnVFiaxDDQ ZLIZD+SEf1knhlfDNajUmcKceO4EjzekU3sDFQcM+XxscC6TI4CyAZyxcbNuSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668189459; a=rsa-sha256; cv=none; b=hf0VBJHAQ3GGt+/cZKyN4TSemGp5OdpqDCKG5PRXEicS1iemqHWa/li1IsehyQWx4+/jn6 9Dx2oUjJiBICqWvr0AgNdAcRp06ze5O9aLB0lX6DGY9jgPBNgj01Cfxr66rRY+MUTJA2Pw 0xKO1RHT7uqn7kzIYs76UpSEak/9VoTIq7GpemLmQAQaG7brtrYQE8pW2bAksh7MihSVyw b6MqjzETy3syJ0GzJoxo4JE7KfEEU77eebk3jgOntL0HSZFJ/b/sH4F3GJT8gOxiAbUpaU t+bs2hQIpaSqJvF26qFMv9B3z9usMLfp8BRCXAtA/b+bjvZaLZxVrGfl7KOYog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N85yW4xn9zrhZ; Fri, 11 Nov 2022 17:57:39 +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 2ABHvd9h044666; Fri, 11 Nov 2022 17:57:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABHvdSi044665; Fri, 11 Nov 2022 17:57:39 GMT (envelope-from git) Date: Fri, 11 Nov 2022 17:57:39 GMT Message-Id: <202211111757.2ABHvdSi044665@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: f021c5c4a177 - main - linuxkpi: Update `struct irq_work` 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f021c5c4a1770987f01530fa59e5ccba3759c0ab Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=f021c5c4a1770987f01530fa59e5ccba3759c0ab commit f021c5c4a1770987f01530fa59e5ccba3759c0ab Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 17:32:58 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2022-11-11 17:32:58 +0000 linuxkpi: Update `struct irq_work` The previous `llnode` field is moved inside another field `node`. This `node` field is a `struct __call_single_node` in Linux. Here, we simply add an anonymous struct with the `llnode` field inside. That field's new name is `llist` now. V2: Use an anonymous union to keep the structure backward compatible with drivers using the previous `llnode` field. This was suggested by wufl@ and hselasky@. Thank you! Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36955 --- sys/compat/linuxkpi/common/include/linux/irq_work.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h index ec71a7ee094f..a263d730967b 100644 --- a/sys/compat/linuxkpi/common/include/linux/irq_work.h +++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h @@ -51,7 +51,12 @@ typedef void (*irq_work_func_t)(struct irq_work *); struct irq_work { struct task irq_task; - struct llist_node llnode; + union { + struct llist_node llnode; + struct { + struct llist_node llist; + } node; + }; irq_work_func_t func; };