]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/signalfd.c
ide: two more pci_ioremap_bar() conversions
[linux-2.6-omap-h63xx.git] / fs / signalfd.c
index 5441a4bca77247b02585ce0032ca1d47bb6ea494..9c39bc7f843137cf167476797554697ce5834da5 100644 (file)
@@ -211,6 +211,10 @@ asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask,
        sigset_t sigmask;
        struct signalfd_ctx *ctx;
 
+       /* Check the SFD_* constants for consistency.  */
+       BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC);
+       BUILD_BUG_ON(SFD_NONBLOCK != O_NONBLOCK);
+
        if (flags & ~(SFD_CLOEXEC | SFD_NONBLOCK))
                return -EINVAL;