git: 2e194c20c10e - main - LinuxKPI: Add readx_poll_timeout wrapper

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Mon, 10 Jan 2022 19:50:48 UTC
The branch main has been updated by wulf:

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

commit 2e194c20c10ee7484d5b11361e1e8f59eb93efc1
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-12-06 20:32:51 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2022-01-10 19:49:38 +0000

    LinuxKPI: Add readx_poll_timeout wrapper
    
    Required by drm-kmod 5.7
    
    MFC after:      1 week
    Reviewed by:    hselasky
    Differential Revision:  https://reviews.freebsd.org/D33307
---
 sys/compat/linuxkpi/common/include/linux/iopoll.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/iopoll.h b/sys/compat/linuxkpi/common/include/linux/iopoll.h
index ea876042eab6..e6a3dbc23a01 100644
--- a/sys/compat/linuxkpi/common/include/linux/iopoll.h
+++ b/sys/compat/linuxkpi/common/include/linux/iopoll.h
@@ -61,6 +61,9 @@
 	(_cond) ? 0 : (-ETIMEDOUT);						\
 })
 
+#define readx_poll_timeout(_pollfp, _addr, _var, _cond, _us, _to)		\
+	read_poll_timeout(_pollfp, _var, _cond, _us, _to, false, _addr)
+
 #define	read_poll_timeout_atomic(_pollfp, _var, _cond, _us, _to, _early_sleep, ...)	\
 ({										\
 	struct timeval __now, __end;						\