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
42#define EPOLLRDHUP (__force __poll_t)0x0000200042#define EPOLLRDHUP (__force __poll_t)0x00002000
43 43
44/* Set exclusive wakeup mode for the target file descriptor */44/* 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))
46 46
47/*47/*
48 * Request the handling of system wakeup events so as to prevent system suspends48 * Request the handling of system wakeup events so as to prevent system suspends
@@ -54,13 +54,13 @@ · 5 unmodified lines
54 *54 *
55 * Requires CAP_BLOCK_SUSPEND55 * Requires CAP_BLOCK_SUSPEND
56 */56 */
57#define EPOLLWAKEUP (__force __poll_t)(1U << 29)57#define EPOLLWAKEUP ((__force __poll_t)(1U << 29))
58 58
59/* Set the One Shot behaviour for the target file descriptor */59/* 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))
61 61
62/* Set the Edge Triggered behaviour for the target file descriptor */62/* 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))
64 64
65/* 65/*
66 * On x86-64 make the 64bit structure have the same alignment as the66 * On x86-64 make the 64bit structure have the same alignment as the