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

Compile Error on Kernel 5.4 #6

Closed
SandnerSoft opened this issue Jun 14, 2020 · 2 comments
Closed

Compile Error on Kernel 5.4 #6

SandnerSoft opened this issue Jun 14, 2020 · 2 comments

Comments

@SandnerSoft
Copy link

Hello,

The following error occurs when compiling on kernel 5.4:

make -C /lib/modules/5.4.45-v7+/build M=/home/pi/ttyebus modules make[1]: Verzeichnis „/home/pi/linux-9be502dfddaaa8f33790a7293900f8916c883944“ wird betreten CC [M] /home/pi/ttyebus/ttyebusm.o /home/pi/ttyebus/ttyebusm.c: In function ‘ttyebus_raspi_model’: /home/pi/ttyebus/ttyebusm.c:805:12: error: implicit declaration of function ‘get_ds’; did you mean ‘get_fs’? [-Werror=implicit-function-declaration] set_fs(get_ds()); ^~~~~~ get_fs cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:266: /home/pi/ttyebus/ttyebusm.o] Fehler 1 make[1]: *** [Makefile:1706: /home/pi/ttyebus] Fehler 2 make[1]: Verzeichnis „/home/pi/linux-9be502dfddaaa8f33790a7293900f8916c883944“ wird verlassen make: *** [Makefile:24: all] Fehler 2

@SandnerSoft
Copy link
Author

set_fs(get_ds());
changed to:
set_fs(KERNEL_DS);

solve this problem on newer kernel.

@Galileo53
Copy link
Member

Corrected in version 1.8
Thank you for finding this issue

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