diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-03-31 03:13:57 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-03-31 03:13:57 +0200 |
commit | 2926f6f92dab25ba19c3e758931e6b3e34db1891 (patch) | |
tree | ae8bd9136ad1e40c56bd96c5dbe17c48c6bd73fc /xen/net.c | |
parent | 2e1342cdcd9907076015398fd47943c191633518 (diff) | |
download | gnumach-2926f6f92dab25ba19c3e758931e6b3e34db1891.tar.gz gnumach-2926f6f92dab25ba19c3e758931e6b3e34db1891.tar.bz2 gnumach-2926f6f92dab25ba19c3e758931e6b3e34db1891.zip |
xen: fix const warning
* xen/public/io/ring.h (__CONST_RING_SIZE): Add macro from upstream
* xen/net.c (WINDOW): Use __CONST_RING_SIZE instead of __RING_SIZE.
Diffstat (limited to 'xen/net.c')
-rw-r--r-- | xen/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ /* Hypervisor part */ #define ADDRESS_SIZE 6 -#define WINDOW __RING_SIZE((netif_rx_sring_t*)0, PAGE_SIZE) +#define WINDOW __CONST_RING_SIZE(netif_rx, PAGE_SIZE) struct net_data { struct device device; |