Skip to content

unable to build on kernel 4.18.0-513.9.1.el8_9.x86_64 #66

Description

@seblom

The make command returns this log. I'm tryng to use this driver for a TN9710P on a kernel version 4.18.0-513.9.1.el8_9.x86_64
Can anyone help me ??
Many thanks in advance

make
make -C /lib/modules/4.18.0-513.9.1.el8_9.x86_64/build M=/root/ethnew clean
make[1]: ingresso nella directory "/usr/src/kernels/4.18.0-513.9.1.el8_9.x86_64"
CLEAN /root/ethnew/.tmp_versions
make[1]: uscita dalla directory "/usr/src/kernels/4.18.0-513.9.1.el8_9.x86_64"
Building kernel 4.18.0-513.9.1.el8_9.x86_64 resume supported
make -C /lib/modules/4.18.0-513.9.1.el8_9.x86_64/build M=/root/ethnew modules
make[1]: ingresso nella directory "/usr/src/kernels/4.18.0-513.9.1.el8_9.x86_64"
CC [M] /root/ethnew/tn40.o
/root/ethnew/tn40.c: In function ‘bdx_probe’:
/root/ethnew/tn40.c:4643:49: error: macro "netif_napi_add" passed 4 arguments, but takes just 3
LUXOR__NAPI_ADD(ndev, &priv->napi, bdx_poll, 64);
^
In file included from /root/ethnew/tn40.c:9:
/root/ethnew/tn40.h:983:19: error: ‘netif_napi_add’ undeclared (first use in this function); did you mean ‘netif_napi_del’?
netif_napi_add(dev, napi, poll, weight)
^~~~~~~~~~~~~~
/root/ethnew/tn40.c:4643:2: note: in expansion of macro ‘LUXOR__NAPI_ADD’
LUXOR__NAPI_ADD(ndev, &priv->napi, bdx_poll, 64);
^~~~~~~~~~~~~~~
/root/ethnew/tn40.h:983:19: note: each undeclared identifier is reported only once for each function it appears in
netif_napi_add(dev, napi, poll, weight)
^~~~~~~~~~~~~~
/root/ethnew/tn40.c:4643:2: note: in expansion of macro ‘LUXOR__NAPI_ADD’
LUXOR__NAPI_ADD(ndev, &priv->napi, bdx_poll, 64);
^~~~~~~~~~~~~~~
/root/ethnew/tn40.c: In function ‘bdx_ethtool_ops’:
/root/ethnew/tn40.c:5379:30: error: initialization of ‘int (*)(struct net_device *, struct ethtool_coalesce *, struct kernel_ethtool_coalesce *, struct netlink_ext_ack )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_coalesce )’ [-Werror=incompatible-pointer-types]
.get_coalesce = bdx_get_coalesce,
^~~~~~~~~~~~~~~~
/root/ethnew/tn40.c:5379:30: note: (near initialization for ‘bdx_ethtool_ops..get_coalesce’)
/root/ethnew/tn40.c:5380:30: error: initialization of ‘int (
)(struct net_device *, struct ethtool_coalesce *, struct kernel_ethtool_coalesce *, struct netlink_ext_ack )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_coalesce )’ [-Werror=incompatible-pointer-types]
.set_coalesce = bdx_set_coalesce,
^~~~~~~~~~~~~~~~
/root/ethnew/tn40.c:5380:30: note: (near initialization for ‘bdx_ethtool_ops..set_coalesce’)
/root/ethnew/tn40.c:5381:30: 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]
.get_ringparam = bdx_get_ringparam,
^~~~~~~~~~~~~~~~~
/root/ethnew/tn40.c:5381:30: note: (near initialization for ‘bdx_ethtool_ops..get_ringparam’)
/root/ethnew/tn40.c:5382:30: error: initialization of ‘int (
)(struct net_device *, struct ethtool_ringparam *, struct kernel_ethtool_ringparam *, struct netlink_ext_ack )’ from incompatible pointer type ‘int ()(struct net_device *, struct ethtool_ringparam *)’ [-Werror=incompatible-pointer-types]
.set_ringparam = bdx_set_ringparam,
^~~~~~~~~~~~~~~~~
/root/ethnew/tn40.c:5382:30: note: (near initialization for ‘bdx_ethtool_ops..set_ringparam’)
At top level:
/root/ethnew/tn40.c:1208:12: warning: ‘bdx_poll’ defined but not used [-Wunused-function]
static int bdx_poll(struct napi_struct *napi, int budget)
^~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:318: /root/ethnew/tn40.o] Error 1
make[1]: *** [Makefile:1619: module/root/ethnew] Error 2
make[1]: uscita dalla directory "/usr/src/kernels/4.18.0-513.9.1.el8_9.x86_64"
make: *** [Makefile:147: all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions