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

cank't build moduel for kernel 5.7 #202

Closed
ingmarcosp opened this issue Jun 13, 2020 · 1 comment
Closed

cank't build moduel for kernel 5.7 #202

ingmarcosp opened this issue Jun 13, 2020 · 1 comment

Comments

@ingmarcosp
Copy link

I'll try to build the module for the kernel 5.7.2 and get this errors:

make                                                                                                                                                                                               [±master ✓]
make -C /lib/modules/5.7.2-2.g7721ea3-default/build M="$(pwd)" modules
make[1]: se entra en el directorio '/usr/src/linux-5.7.2-2.g7721ea3-obj/x86_64/default'
  CC [M]  /home/koxmoz/rpm_gz/bbswitch/bbswitch.o
/home/koxmoz/rpm_gz/bbswitch/bbswitch.c: In function ‘bbswitch_init’:
/home/koxmoz/rpm_gz/bbswitch/bbswitch.c:460:18: error: implicit declaration of function ‘proc_create’; did you mean ‘vfs_create’? [-Werror=implicit-function-declaration]
     acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
                  ^~~~~~~~~~~
                  vfs_create
/home/koxmoz/rpm_gz/bbswitch/bbswitch.c:460:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
                ^
/home/koxmoz/rpm_gz/bbswitch/bbswitch.c: In function ‘bbswitch_exit’:
/home/koxmoz/rpm_gz/bbswitch/bbswitch.c:490:5: error: implicit declaration of function ‘remove_proc_entry’; did you mean ‘remove_memory’? [-Werror=implicit-function-declaration]
     remove_proc_entry("bbswitch", acpi_root_dir);
     ^~~~~~~~~~~~~~~~~
     remove_memory
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-5.7.2-2.g7721ea3/scripts/Makefile.build:268: /home/koxmoz/rpm_gz/bbswitch/bbswitch.o] Error 1
make[2]: *** [/usr/src/linux-5.7.2-2.g7721ea3/Makefile:1744: /home/koxmoz/rpm_gz/bbswitch] Error 2
make[1]: *** [../../../linux-5.7.2-2.g7721ea3/Makefile:180: sub-make] Error 2
make[1]: se sale del directorio '/usr/src/linux-5.7.2-2.g7721ea3-obj/x86_64/default'
make: *** [Makefile:13: default] Error 2

I also try to apply a patch that I found to the kernel 5.6 but make in worse. I hope that you can help me with this.

@Lekensteyn
Copy link
Member

Please try the develop branch, see also #198.

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