Re: [PATCH rdma-core 5/8] mlx4: Add ability to poll CQs through iterator's style API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 25, 2017 at 10:04:13AM -0700, Jason Gunthorpe wrote:
> 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.

I tried once :)
https://www.spinics.net/lists/linux-rdma/msg43086.html

>
> 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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux