compiler.h, bug.h: prevent double error messages with BUILD_BUG{,_ON}
[platform/adaptation/renesas_rcar/renesas_kernel.git] / include / linux / bug.h
index 73af37c..dc11dc7 100644 (file)
@@ -67,7 +67,7 @@ struct pt_regs;
                        __compiletime_error("BUILD_BUG_ON failed");     \
                if (__cond)                                             \
                        __build_bug_on_failed();                        \
-               ((void)sizeof(char[1 - 2 * __cond]));                   \
+               __compiletime_error_fallback(__cond);                   \
        } while (0)
 #endif