Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2022 12:11:40 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bec4576e4c19 - main - LinuxKPI: Do not use forward declaration for struct llist_node
Message-ID:  <202205171211.24HCBeFo093252@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=bec4576e4c194a3b3bc8fb8cce613d7088dbfb2c

commit bec4576e4c194a3b3bc8fb8cce613d7088dbfb2c
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2022-05-17 12:10:20 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-05-17 12:10:20 +0000

    LinuxKPI: Do not use forward declaration for struct llist_node
    
    in linux/irq_work.h as irq_work structure contains full version of
    llist_node rather than reference to it.
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D35052
---
 sys/compat/linuxkpi/common/include/linux/irq_work.h | 3 ++-
 1 file changed, 2 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 8a0475c8999e..c2cdc6011c98 100644
--- a/sys/compat/linuxkpi/common/include/linux/irq_work.h
+++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h
@@ -34,8 +34,9 @@
 #include <sys/param.h>
 #include <sys/taskqueue.h>
 
+#include <linux/llist.h>
+
 struct irq_work;
-struct llist_node;
 typedef void (*irq_work_func_t)(struct irq_work *);
 
 struct irq_work {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205171211.24HCBeFo093252>