powerpc: Enable AT_BASE_PLATFORM aux vector
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / timerfd.c
index 75d44ef..c502c60 100644 (file)
@@ -184,6 +184,10 @@ asmlinkage long sys_timerfd_create(int clockid, int flags)
        int ufd;
        struct timerfd_ctx *ctx;
 
+       /* Check the TFD_* constants for consistency.  */
+       BUILD_BUG_ON(TFD_CLOEXEC != O_CLOEXEC);
+       BUILD_BUG_ON(TFD_NONBLOCK != O_NONBLOCK);
+
        if (flags & ~(TFD_CLOEXEC | TFD_NONBLOCK))
                return -EINVAL;
        if (clockid != CLOCK_MONOTONIC &&