Re: [PATCH 2/2] tools/virtio: virtio_test tool

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

 



On Mon, Nov 29, 2010 at 3:16 PM, Michael S. Tsirkin <mst@xxxxxxxxxx> wrote:
> +#define container_of(ptr, type, member) ({ Â Â Â Â Â Â Â Â Â Â \
> + Â Â Â const typeof( ((type *)0)->member ) *__mptr = (ptr); Â Â\
> + Â Â Â (type *)( (char *)__mptr - offsetof(type,member) );})
> +
> +#define uninitialized_var(x) x = x
> +
> +# ifndef likely
> +# Âdefine likely(x) Â Â(__builtin_expect(!!(x), 1))
> +# endif
> +# ifndef unlikely
> +# Âdefine unlikely(x) Â(__builtin_expect(!!(x), 0))
> +# endif

It seems you are not using these macros. Do you really need them here?
Can't you include the right linux header files for these macros
instead?
_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/virtualization



[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux