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 while compiling the kernel module #4

Open
hellkaim opened this issue Nov 10, 2022 · 1 comment
Open

Error while compiling the kernel module #4

hellkaim opened this issue Nov 10, 2022 · 1 comment

Comments

@hellkaim
Copy link

Need your help...
I am trying to compile this patch for the kernel version 5.4-132 in Ubuntu.... and after making all proposed changes I got the following erro.

Could you please help me what is wrong and how to fix it.

Thanks in advance.

`Step 4: Compile modules.

make: entering directory «/usr/src/linux-headers-5.4.0-132-generic»
make: entering directory «/usr/src/linux-headers-5.4.0-132-generic»
Make 1 done.

make: entering directory «/usr/src/linux-headers-5.4.0-132-generic»
CC [M] /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_vhci.o
CC [M] /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.o
/home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.c: In function ‘hci_uart_init’:
/home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.c:836:23: error: assignment to ‘ssize_t (*)(struct tty_struct *, struct file *, unsigned char , size_t)’ {aka ‘long int ()(struct tty_struct *, struct file *, unsigned char , long unsigned int)’} from incompatible pointer type ‘ssize_t ()(struct tty_struct *, struct file *, unsigned char , size_t, void **, long unsigned int)’ {aka ‘long int ()(struct tty_struct *, struct file *, unsigned char *, long unsigned int, void **, long unsigned int)’} [-Werror=incompatible-pointer-types]
836 | hci_uart_ldisc.read = hci_uart_tty_read;
| ^
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:270: /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.o]
Error 1
make: *** [Makefile:1765: /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth] Ошибка 2
make: leaving directory «/usr/src/linux-headers-5.4.0-132-generic»
Make 2 done.`

@YunusKaratepe
Copy link

YunusKaratepe commented Jun 7, 2023

I had the same error as well.

Just don't do that step: "Depending on the kernel version you're using, you also might need to change the following inside hci_ldisc.c:"

Leave as it is and continue the other steps. It works just fine.

Note: I have secure boot disabled and didn't do those secure boot steps as well.

Kernel: 5.4.0-150-generic
Ubuntu 18.04.6

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