[PATCH 05/14] header: types.h: add __poll_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



__poll_t was added for kernel 4.15 in commit 8ced390c2b ("define
__poll_t, annotate constants"), add it here for older kernel versions.
Multiple drivers are using this type.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/types.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/backport-include/linux/types.h b/backport/backport-include/linux/types.h
index 160570b4..0671e140 100644
--- a/backport/backport-include/linux/types.h
+++ b/backport/backport-include/linux/types.h
@@ -7,4 +7,8 @@
 typedef __s64 time64_t;
 #endif
 
+#if LINUX_VERSION_IS_LESS(4,16,0)
+typedef unsigned __poll_t;
+#endif
+
 #endif /* __BACKPORT_TYPES */
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux