]> git.sur5r.net Git - u-boot/blobdiff - include/linux/compat.h
OMAP3: mcx: read hot-water-button after reset
[u-boot] / include / linux / compat.h
index 39c693f7a8c0a50ab1addfe1b90696908dd373e1..593b07f4b5db621b79371b8338e59579ba521314 100644 (file)
@@ -48,5 +48,8 @@
 #define BUG_ON(condition) do { if (condition) BUG(); } while(0)
 #endif /* BUG */
 
+#define WARN_ON(x) if (x) {printf("WARNING in %s line %d\n" \
+                                 , __FILE__, __LINE__); }
+
 #define PAGE_SIZE      4096
 #endif