summaryrefslogtreecommitdiffstats
path: root/src/kernel/blk.h
diff options
context:
space:
mode:
authorManuel Bentele2020-08-28 14:50:51 +0200
committerManuel Bentele2020-08-28 14:50:51 +0200
commit042b7ca9932f05ed7c69efc7b15fa58e42c6eb3c (patch)
tree5957cd5d532ce311f85c2bb2d7a9a861da18cd35 /src/kernel/blk.h
parent[KERNEL] convert to blk-mq and ktime (diff)
downloaddnbd3-042b7ca9932f05ed7c69efc7b15fa58e42c6eb3c.tar.gz
dnbd3-042b7ca9932f05ed7c69efc7b15fa58e42c6eb3c.tar.xz
dnbd3-042b7ca9932f05ed7c69efc7b15fa58e42c6eb3c.zip
[KERNEL] convert debug messages and clean up code
This change converts all debug messages to support the Linux kernel's dynamic debug feature. Debug messages can be enabled or disabled by the debug feature if the - kernel module is built in debug mode (EXTRA_CFLAGS=-g -DDEBUG) - Linux kernel supports dynamic debug (CONFIG_DYNAMIC_DEBUG is set) This patch removes outdated kernel compatibility macros (used for Linux kernels in version 4.x) and cleans up the kernel module's code.
Diffstat (limited to 'src/kernel/blk.h')
-rw-r--r--src/kernel/blk.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/kernel/blk.h b/src/kernel/blk.h
index 0afce2e..3377406 100644
--- a/src/kernel/blk.h
+++ b/src/kernel/blk.h
@@ -23,9 +23,7 @@
#include "dnbd3.h"
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
#define REQ_TYPE_SPECIAL REQ_TYPE_DRV_PRIV
-#endif
int dnbd3_blk_add_device(dnbd3_device_t *dev, int minor);