-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Im getting the following error:
make -C /lib/modules/5.15.84-v7+/build M=/home/dinth/ttyebus modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.84-v7+'
CC [M] /home/dinth/ttyebus/ttyebusm.o
/home/dinth/ttyebus/ttyebusm.c: In function ‘ttyebus_raspi_model’:
/home/dinth/ttyebus/ttyebusm.c:805:27: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
805 | mm_segment_t old_fs = get_fs();
| ^~~~~~
| sget_fc
/home/dinth/ttyebus/ttyebusm.c:805:27: error: invalid initializer
/home/dinth/ttyebus/ttyebusm.c:806:5: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
806 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/home/dinth/ttyebus/ttyebusm.c:806:12: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
806 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/home/dinth/ttyebus/ttyebusm.c:806:12: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:289: /home/dinth/ttyebus/ttyebusm.o] Error 1
make[1]: *** [Makefile:1902: /home/dinth/ttyebus] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.84-v7+'
make: *** [Makefile:24: all] Error 2
Metadata
Metadata
Assignees
Labels
No labels