aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/asm-generic/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/asm-generic/poll.h')
-rw-r--r--include/uapi/asm-generic/poll.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/poll.h b/include/uapi/asm-generic/poll.h
index 8c0e9dd384b6..639fade14b23 100644
--- a/include/uapi/asm-generic/poll.h
+++ b/include/uapi/asm-generic/poll.h
@@ -33,6 +33,20 @@
#define POLL_BUSY_LOOP (__force __poll_t)0x8000
+#ifdef __KERNEL__
+#ifndef __ARCH_HAS_MANGLED_POLL
+static inline __u16 mangle_poll(__poll_t val)
+{
+ return (__force __u16)val;
+}
+
+static inline __poll_t demangle_poll(__u16 v)
+{
+ return (__force __poll_t)v;
+}
+#endif
+#endif
+
struct pollfd {
int fd;
short events;

Privacy Policy