r8168
r8168 copied to clipboard
Error in Solus Budgie
$ sudo ./autorun.sh
Check old driver and unload it.
Build the module and install
/home/aps/Downloads/r8168-master/src/r8168_n.c: In function ‘rtl8168_proc_init’:
/home/aps/Downloads/r8168-master/src/r8168_n.c:1670:47: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
1670 | &rtl8168_proc_fops, f->show)) {
| ^~~~~~~~~~~~~~~~~~
| |
| const struct file_operations *
In file included from /home/aps/Downloads/r8168-master/src/r8168_n.c:92:
./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
| ^~~~~~~~~~~~~~~~
/home/aps/Downloads/r8168-master/src/r8168_n.c: At top level:
/home/aps/Downloads/r8168-master/src/r8168_n.c:25825:31: error: initialization of ‘void (*)(struct net_device *, unsigned int)’ from incompatible pointer type ‘void (*)(struct net_device *)’ [-Werror=incompatible-pointer-types]
25825 | .ndo_tx_timeout = rtl8168_tx_timeout,
| ^~~~~~~~~~~~~~~~~~
/home/aps/Downloads/r8168-master/src/r8168_n.c:25825:31: note: (near initialization for ‘rtl8168_netdev_ops.ndo_tx_timeout’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:268: /home/aps/Downloads/r8168-master/src/r8168_n.o] Error 1
make[2]: *** [Makefile:1683: /home/aps/Downloads/r8168-master/src] Error 2
make[1]: *** [Makefile:140: modules] Error 2
make: *** [Makefile:40: modules] Error 2
which kernel version are you running and which version of the r8168? I'm assuming 8.048.02 based on the date but just want to confirm.