summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-02-11 23:54:59 +0100
committerSimon Rettberg2022-02-11 23:54:59 +0100
commit5b7d0541271f4829b505ec01810709e374b73746 (patch)
tree99caff22b8c934f1d30568d5f6e785302c91387c
parent[CMAKE] Fix finding kernel include dir on Debian (diff)
downloaddnbd3-5b7d0541271f4829b505ec01810709e374b73746.tar.gz
dnbd3-5b7d0541271f4829b505ec01810709e374b73746.tar.xz
dnbd3-5b7d0541271f4829b505ec01810709e374b73746.zip
[KERNEL] Add missing include to fix compile on 4.14.x
-rw-r--r--README.md3
-rw-r--r--src/kernel/net.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7a5af91..a20f00f 100644
--- a/README.md
+++ b/README.md
@@ -7,10 +7,11 @@ This repository contains the source code for the following dnbd3 components:
- **dnbd3**: Linux kernel module client for dnbd3
- **dnbd3-bench**: Benchmark utility to test dnbd3
- **dnbd3-fuse**: Fuse client for dnbd3
- - **dnbd3-server**: Server to serve virtual disk images for dnbd3
+ - **dnbd3-server**: Server to serve virtual disk images for dnbd3
The dnbd3 components can be built for the following Linux kernel versions and Unix distributions:
+ - Generic/Vanilla Kernel **4.14** – **5.15**
- Archlinux with **Linux kernel 5.15.x** or **5.10.x**
- Raspberry Pi OS with **Linux kernel 5.4.x**
- Ubuntu 20.04 with **Linux kernel 5.4.x**
diff --git a/src/kernel/net.c b/src/kernel/net.c
index c3ecc54..5919832 100644
--- a/src/kernel/net.c
+++ b/src/kernel/net.c
@@ -30,6 +30,7 @@
#include <linux/time.h>
#include <linux/ktime.h>
#include <linux/tcp.h>
+#include <linux/sched/task.h>
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))