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

Error in Solus Budgie #27

Open
devmrfitz opened this issue May 4, 2020 · 1 comment
Open

Error in Solus Budgie #27

devmrfitz opened this issue May 4, 2020 · 1 comment

Comments

@devmrfitz
Copy link

$ 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
@thimslugga
Copy link

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.

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