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

make error on Rocky Linux #17

Closed
Kirutian opened this issue Mar 8, 2022 · 1 comment
Closed

make error on Rocky Linux #17

Kirutian opened this issue Mar 8, 2022 · 1 comment

Comments

@Kirutian
Copy link

Kirutian commented Mar 8, 2022

/home/user/rtl8723du/os_dep/linux/os_intfs.c:1855:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/user/rtl8723du/os_dep/linux/os_intfs.c:1855:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/user/rtl8723du/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1571: module/home/user/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-348.12.2.el8_5.x86_64'
make: *** [Makefile:2462: modules] Error 2

@lwfinger
Copy link
Owner

lwfinger commented Mar 9, 2022

The code that is there matches a vanilla 4.18 kernel. Your must be modified. Please run the command

find /usr/src/ -name netdevice.h

You should get a result that ends in include/linux/netdevice.h. Use that name as <file_name> in the command 'grep -a 3 ndo_select_queue <file_name>' and post that output.

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

2 participants