summaryrefslogtreecommitdiffstats
path: root/src/kernel/net.c
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-09 18:03:24 +0100
committerSimon Rettberg2023-01-09 18:03:24 +0100
commitb5aafc8f1bad5e90a9dbd51adb45127d2e26dd7a (patch)
tree03b6ef5c199ba82e31d001f8b13515997879d754 /src/kernel/net.c
parentFix linter issues to satisfy Linux kernel code style (diff)
downloaddnbd3-b5aafc8f1bad5e90a9dbd51adb45127d2e26dd7a.tar.gz
dnbd3-b5aafc8f1bad5e90a9dbd51adb45127d2e26dd7a.tar.xz
dnbd3-b5aafc8f1bad5e90a9dbd51adb45127d2e26dd7a.zip
[KERNEL] Update for Linux 6.1
Diffstat (limited to 'src/kernel/net.c')
-rw-r--r--src/kernel/net.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/net.c b/src/kernel/net.c
index 8408954..e24778f 100644
--- a/src/kernel/net.c
+++ b/src/kernel/net.c
@@ -26,6 +26,11 @@
#include <dnbd3/shared/serialize.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 14)
+#include <linux/prandom.h>
+#else
+#include <linux/random.h>
+#endif
#include <linux/time.h>
#include <linux/ktime.h>
#include <linux/tcp.h>