History

eventpoll.h: wrap casts in () properly

When importing the latest copy of the kernel headers into Bionic, Christpher and Elliott noticed that the eventpoll.h casts were not wrapped in (). As it is, clang complains about macros without surrounding (), so this makes it a pain for userspace tools. So fix it up by adding another () pair, and make them line up purty by using tabs.

Greg Kroah-Hartman committed 8 years ago

Commit 45cd74c1 parent 6da27821 file · +4 −4Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/eventpoll.h+4−4
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 #define EPOLLRDHUP (__force __poll_t)0x00002000
4343
4444 /* Set exclusive wakeup mode for the target file descriptor */
45−#define EPOLLEXCLUSIVE (__force __poll_t)(1U << 28)
45+#define EPOLLEXCLUSIVE ((__force __poll_t)(1U << 28))
4646
4747 /*
4848 * Request the handling of system wakeup events so as to prevent system suspends
@@ -54,13 +54,13 @@ · 5 unmodified lines
5454 *
5555 * Requires CAP_BLOCK_SUSPEND
5656 */
57−#define EPOLLWAKEUP (__force __poll_t)(1U << 29)
57+#define EPOLLWAKEUP ((__force __poll_t)(1U << 29))
5858
5959 /* Set the One Shot behaviour for the target file descriptor */
60−#define EPOLLONESHOT (__force __poll_t)(1U << 30)
60+#define EPOLLONESHOT ((__force __poll_t)(1U << 30))
6161
6262 /* Set the Edge Triggered behaviour for the target file descriptor */
63−#define EPOLLET (__force __poll_t)(1U << 31)
63+#define EPOLLET ((__force __poll_t)(1U << 31))
6464
6565 /*
6666 * On x86-64 make the 64bit structure have the same alignment as the