X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fmtd%2Fcompat.h;h=fe55087ea93602d61e2e620f5849ba47553fd72a;hb=ee460917afb74767aedc3da095d4fec4a50ba6f8;hp=460cd45c808e67e8e1ce646cca1fbf0a56d182ac;hpb=a3f0169880a44ac06de5177e7926d7c732368663;p=u-boot diff --git a/include/linux/mtd/compat.h b/include/linux/mtd/compat.h index 460cd45c80..fe55087ea9 100644 --- a/include/linux/mtd/compat.h +++ b/include/linux/mtd/compat.h @@ -31,11 +31,13 @@ #define max_t(type,x,y) \ ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; }) +#ifndef BUG #define BUG() do { \ printf("U-Boot BUG at %s:%d!\n", __FILE__, __LINE__); \ } while (0) #define BUG_ON(condition) do { if (condition) BUG(); } while(0) +#endif /* BUG */ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0)