Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

napi_reschedule netif_napi_add error #60

Open
lglgdouble opened this issue Sep 6, 2024 · 0 comments
Open

napi_reschedule netif_napi_add error #60

lglgdouble opened this issue Sep 6, 2024 · 0 comments

Comments

@lglgdouble
Copy link

uname -r
5.14.0-427.33.1.el9_4.x86_64

cat /etc/redhat-release
Rocky Linux release 9.4 (Blue Onyx)

make
make -C /lib/modules/5.14.0-427.33.1.el9_4.x86_64/build M=/home/cyc/open-nic-driver modules
make[1]: Entering directory '/usr/src/kernels/5.14.0-427.33.1.el9_4.x86_64'
CC [M] /home/cyc/open-nic-driver/onic_netdev.o
/home/cyc/open-nic-driver/onic_netdev.c: In function ‘onic_rx_poll’:
/home/cyc/open-nic-driver/onic_netdev.c:257:25: error: implicit declaration of function ‘napi_reschedule’; did you mean ‘napi_schedule’? [-Werror=implicit-function-declaration]
257 | napi_reschedule(napi);
| ^~~~~~~~~~~~~~~
| napi_schedule
/home/cyc/open-nic-driver/onic_netdev.c: In function ‘onic_init_rx_queue’:
/home/cyc/open-nic-driver/onic_netdev.c:561:9: error: too many arguments to function ‘netif_napi_add’
561 | netif_napi_add(dev, &q->napi, onic_rx_poll, 64);
| ^~~~~~~~~~~~~~
In file included from ./include/linux/etherdevice.h:21,
from /home/cyc/open-nic-driver/onic_netdev.c:19:
./include/linux/netdevice.h:2732:1: note: declared here
2732 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:299: /home/cyc/open-nic-driver/onic_netdev.o] Error 1
make[1]: *** [Makefile:1936: /home/cyc/open-nic-driver] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-427.33.1.el9_4.x86_64'
make: *** [Makefile:32: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant