Skip to content

Compile error on kernel 5.15.84-v7+ #14

@Dinth

Description

@Dinth

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions