X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flinux%2Fcompat.h;h=593b07f4b5db621b79371b8338e59579ba521314;hb=3ae6abb697b85516975443ca7eac44d18ed4c53f;hp=39c693f7a8c0a50ab1addfe1b90696908dd373e1;hpb=7b15e2bb9b1026925f0f98243cd6cf80bd3fb47d;p=u-boot diff --git a/include/linux/compat.h b/include/linux/compat.h index 39c693f7a8..593b07f4b5 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -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