diff options
author | Gianni Tedesco <gianni.tedesco@citrix.com> | 2011-01-07 18:01:18 +0000 |
---|---|---|
committer | Gianni Tedesco <gianni.tedesco@citrix.com> | 2011-01-07 18:01:18 +0000 |
commit | c761b54d7cb95d2c3f26110277d8ac21f0ebba05 (patch) | |
tree | 96f99e024e162ebf79d89f0031db89c4f4f53fd0 /extras/mini-os | |
parent | 2f5d40aab98f5c4d6ca0ff71adb349610295256e (diff) | |
download | xen-c761b54d7cb95d2c3f26110277d8ac21f0ebba05.tar.gz xen-c761b54d7cb95d2c3f26110277d8ac21f0ebba05.tar.bz2 xen-c761b54d7cb95d2c3f26110277d8ac21f0ebba05.zip |
minios: use constant expression to size arrays
Fixes a compile error in gcc-4.5 which is the reason __CONST_RING_SIZE()
was introduced. Let's just use it in minios netfront.
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'extras/mini-os')
-rw-r--r-- | extras/mini-os/netfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/mini-os/netfront.c b/extras/mini-os/netfront.c index ade329ee45..fd049a5cef 100644 --- a/extras/mini-os/netfront.c +++ b/extras/mini-os/netfront.c @@ -25,8 +25,8 @@ DECLARE_WAIT_QUEUE_HEAD(netfront_queue); -#define NET_TX_RING_SIZE __RING_SIZE((struct netif_tx_sring *)0, PAGE_SIZE) -#define NET_RX_RING_SIZE __RING_SIZE((struct netif_rx_sring *)0, PAGE_SIZE) +#define NET_TX_RING_SIZE __CONST_RING_SIZE(netif_tx, PAGE_SIZE) +#define NET_RX_RING_SIZE __CONST_RING_SIZE(netif_rx, PAGE_SIZE) #define GRANT_INVALID_REF 0 |