On Wed, Jan 25, 2017 at 04:49:48PM +0200, Yishai Hadas wrote: > diff --git a/providers/mlx4/mlx4.h b/providers/mlx4/mlx4.h > index 5ab083c..cb4c8d4 100644 > +++ b/providers/mlx4/mlx4.h > @@ -59,12 +59,20 @@ enum { > > #ifndef likely > #ifdef __GNUC__ > -#define likely(x) __builtin_expect(!!(x),1) > +#define likely(x) __builtin_expect(!!(x), 1) > #else > #define likely(x) (x) > #endif > #endif > > +#ifndef unlikely > +#ifdef __GNUC__ > +#define unlikely(x) __builtin_expect(!!(x), 0) > +#else > +#define unlikely(x) (x) > +#endif > +#endif Also move all the copies of these into util/compiler.h instead of adding more. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html