]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:31 +0000 (13:58 -0800)
commit4f7b9db5e1714319211bfdd1c31f38e6e536aa2a
tree4dc944aaf6799b8ffd64621ac9802f1c15033274
parentb3568787820faf58fd5429a6a392b555e6b2ae82
xen: Provide a variant of __RING_SIZE() that is an integer constant expression

commit 667c78afaec0ac500908e191e8f236e9578d7b1f upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/block/xen-blkfront.c
drivers/net/xen-netfront.c
include/xen/interface/io/ring.h