Fix WARN_ON() on bitfield ops for all other archs
[sfrench/cifs-2.6.git] / include / asm-parisc / bug.h
index 83ba510ed5d874ea77c70ec9d8ed7352fd31b6dc..8cfc553fc837267e2342cbf66f4ef27efacde143 100644 (file)
@@ -74,7 +74,7 @@
 
 
 #define WARN_ON(x) ({                                          \
-       typeof(x) __ret_warn_on = (x);                          \
+       int __ret_warn_on = !!(x);                              \
        if (__builtin_constant_p(__ret_warn_on)) {              \
                if (__ret_warn_on)                              \
                        __WARN();                               \