git: cb15ed7da2be - main - linuxkpi: Add __var_waitqueue

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Thu, 17 Feb 2022 08:43:18 UTC
The branch main has been updated by manu:

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

commit cb15ed7da2be02b108d732e41bb6e68febf93f90
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-11 10:33:59 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-17 08:30:27 +0000

    linuxkpi: Add __var_waitqueue
    
    This returns the wait queue based on the object but in LinuxKPI
    we only have one waitqueue for this.
    
    Reviewed by:    hselasky, bz
    MFC after:      2 weeks
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D34250
---
 sys/compat/linuxkpi/common/include/linux/wait_bit.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/wait_bit.h b/sys/compat/linuxkpi/common/include/linux/wait_bit.h
index 17716583399f..66c1149da432 100644
--- a/sys/compat/linuxkpi/common/include/linux/wait_bit.h
+++ b/sys/compat/linuxkpi/common/include/linux/wait_bit.h
@@ -64,4 +64,10 @@ wake_up_var(void *var)
 	wake_up(&linux_var_waitq);
 }
 
+static inline wait_queue_head_t *
+__var_waitqueue(void *p)
+{
+	return (&linux_var_waitq);
+}
+
 #endif	/* __LINUXKPI_LINUX_WAITBIT_H__ */