xen: Provide a variant of __RING_SIZE() that is an integer constant expression
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 8 Dec 2010 20:39:12 +0000 (12:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Dec 2010 20:34:28 +0000 (12:34 -0800)
commit667c78afaec0ac500908e191e8f236e9578d7b1f
tree11a469d8a4cfefea2fd3a56be2cda4c7784d54a1
parent6c965ff5e7ca844494f1dcf0ec0440146db01294
xen: Provide a variant of __RING_SIZE() that is an integer constant expression

Without this, gcc 4.5 won't compile xen-netfront and xen-blkfront, where
this is being used to specify array sizes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: David Miller <davem@davemloft.net>
Cc: Stable Kernel <stable@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/xen-blkfront.c
drivers/net/xen-netfront.c
include/xen/interface/io/ring.h