free5gc / gtp5g

GTP-U Linux Kernel Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failure with kernel 5.17 due to mm_segment_t

bulvara opened this issue · comments

I'm using kernel 5.17.12 and the build fails.

./gtp5g.c: In Funktion »unix_sock_send«:
./gtp5g.c:362:5: Fehler: unbekannter Typname: »mm_segment_t«
  362 |     mm_segment_t oldfs;
      |     ^~~~~~~~~~~~
./gtp5g.c:436:13: Error [-Werror=implicit-function-declaration]
  436 |     oldfs = force_uaccess_begin();
      |             ^~~~~~~~~~~~~~~~~~~
      |             user_access_begin
./gtp5g.c:446:5: Error [-Werror=implicit-function-declaration]
  446 |     force_uaccess_end(oldfs);
      |     ^~~~~~~~~~~~~~~~~
      |     file_accessed

The implicit-function-declaration bugs are just follow-ups on the first one.

I've found https://lore.kernel.org/lkml/CAMuHMdUCmEeU0G9wkUxZKm5tC9YoB-KXSSCLKwpSia746Myebw@mail.gmail.com/ but am not wise enough to fix this. Do you have a solution?