You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am trying to compile Netmap to use on Almalinux 9.5 i get the following errors with the virtio_net driver which is the one i am using.
Would be helpfull is someone could put me in the right direction but I am guessing that there is a problem with the virtio_net.c file it is using provided by the distro ?
make[2]: Entering directory '/usr/src/kernels/5.14.0-503.26.1.el9_5.x86_64'
CC [M] /root/netmap/virtio_net.c/virtio_net_src.o
In file included from /root/netmap/virtio_net.c/virtio_net_src.c:274:
/root/netmap/virtio_net.c/virtio_net_src.c: In function ‘virtnet_stats’:
/root/netmap/LINUX/if_virtio_net_netmap.h:72:41: error: implicit declaration of function ‘u64_stats_fetch_begin_bh’; did you mean ‘u64_stats_fetch_begin’? [-Werror=implicit-function-declaration]
72 | #define u64_stats_fetch_begin_irq u64_stats_fetch_begin_bh
| ^~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c:1081:33: note: in expansion of macro ‘u64_stats_fetch_begin_irq’
1081 | start = u64_stats_fetch_begin_irq(&stats->tx_syncp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/LINUX/if_virtio_net_netmap.h:73:41: error: implicit declaration of function ‘u64_stats_fetch_retry_bh’; did you mean ‘u64_stats_fetch_retry’? [-Werror=implicit-function-declaration]
73 | #define u64_stats_fetch_retry_irq u64_stats_fetch_retry_bh
| ^~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c:1084:26: note: in expansion of macro ‘u64_stats_fetch_retry_irq’
1084 | } while (u64_stats_fetch_retry_irq(&stats->tx_syncp, start));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c: At top level:
/root/netmap/virtio_net.c/virtio_net_src.c:1403:26: error: initialization of ‘void (*)(struct net_device *, struct ethtool_ringparam *, struct kernel_ethtool_ringparam *, struct netlink_ext_ack )’ from incompatible pointer type ‘void ()(struct net_device *, struct ethtool_ringparam *)’ [-Werror=incompatible-pointer-types]
1403 | .get_ringparam = virtnet_get_ringparam,
| ^~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c:1403:26: note: (near initialization for ‘virtnet_ethtool_ops.get_ringparam’)
/root/netmap/virtio_net.c/virtio_net_src.c: In function ‘virtnet_alloc_queues’:
/root/netmap/virtio_net.c/virtio_net_src.c:1652:17: error: too many arguments to function ‘netif_napi_add’
1652 | netif_napi_add(vi->dev, &vi->rq[i].napi, virtnet_poll,
| ^~~~~~~~~~~~~~
In file included from /root/netmap/virtio_net.c/virtio_net_src.c:19:
./include/linux/netdevice.h:2694:1: note: declared here
2694 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:249: /root/netmap/virtio_net.c/virtio_net_src.o] Error 1
make[2]: *** [Makefile:1944: /root/netmap/virtio_net.c] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-503.26.1.el9_5.x86_64'
make[1]: *** [Makefile:17: all] Error 2
make[1]: Leaving directory '/root/netmap/virtio_net.c'
make: *** [netmap.mak:87: build-virtio_net.c] Error 2
The text was updated successfully, but these errors were encountered:
Hi all,
When I am trying to compile Netmap to use on Almalinux 9.5 i get the following errors with the virtio_net driver which is the one i am using.
Would be helpfull is someone could put me in the right direction but I am guessing that there is a problem with the virtio_net.c file it is using provided by the distro ?
make[2]: Entering directory '/usr/src/kernels/5.14.0-503.26.1.el9_5.x86_64'
CC [M] /root/netmap/virtio_net.c/virtio_net_src.o
In file included from /root/netmap/virtio_net.c/virtio_net_src.c:274:
/root/netmap/virtio_net.c/virtio_net_src.c: In function ‘virtnet_stats’:
/root/netmap/LINUX/if_virtio_net_netmap.h:72:41: error: implicit declaration of function ‘u64_stats_fetch_begin_bh’; did you mean ‘u64_stats_fetch_begin’? [-Werror=implicit-function-declaration]
72 | #define u64_stats_fetch_begin_irq u64_stats_fetch_begin_bh
| ^~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c:1081:33: note: in expansion of macro ‘u64_stats_fetch_begin_irq’
1081 | start = u64_stats_fetch_begin_irq(&stats->tx_syncp);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/LINUX/if_virtio_net_netmap.h:73:41: error: implicit declaration of function ‘u64_stats_fetch_retry_bh’; did you mean ‘u64_stats_fetch_retry’? [-Werror=implicit-function-declaration]
73 | #define u64_stats_fetch_retry_irq u64_stats_fetch_retry_bh
| ^~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c:1084:26: note: in expansion of macro ‘u64_stats_fetch_retry_irq’
1084 | } while (u64_stats_fetch_retry_irq(&stats->tx_syncp, start));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c: At top level:
/root/netmap/virtio_net.c/virtio_net_src.c:1403:26: error: initialization of ‘void (*)(struct net_device *, struct ethtool_ringparam *, struct kernel_ethtool_ringparam *, struct netlink_ext_ack )’ from incompatible pointer type ‘void ()(struct net_device *, struct ethtool_ringparam *)’ [-Werror=incompatible-pointer-types]
1403 | .get_ringparam = virtnet_get_ringparam,
| ^~~~~~~~~~~~~~~~~~~~~
/root/netmap/virtio_net.c/virtio_net_src.c:1403:26: note: (near initialization for ‘virtnet_ethtool_ops.get_ringparam’)
/root/netmap/virtio_net.c/virtio_net_src.c: In function ‘virtnet_alloc_queues’:
/root/netmap/virtio_net.c/virtio_net_src.c:1652:17: error: too many arguments to function ‘netif_napi_add’
1652 | netif_napi_add(vi->dev, &vi->rq[i].napi, virtnet_poll,
| ^~~~~~~~~~~~~~
In file included from /root/netmap/virtio_net.c/virtio_net_src.c:19:
./include/linux/netdevice.h:2694:1: note: declared here
2694 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:249: /root/netmap/virtio_net.c/virtio_net_src.o] Error 1
make[2]: *** [Makefile:1944: /root/netmap/virtio_net.c] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-503.26.1.el9_5.x86_64'
make[1]: *** [Makefile:17: all] Error 2
make[1]: Leaving directory '/root/netmap/virtio_net.c'
make: *** [netmap.mak:87: build-virtio_net.c] Error 2
The text was updated successfully, but these errors were encountered: