summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2020-07-09 17:05:36 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2020-07-09 17:05:36 +0200
commita2ff777765656324ca43ae7265f34d5b0b2e3b3a (patch)
tree596be6ea4895579df76099b911ae5f6b74ad6250 /driver
parent40ecf001fe8ec59defccdbeeaf54e8cf8c159e84 (diff)
downloadpcitool-a2ff777765656324ca43ae7265f34d5b0b2e3b3a.tar.gz
pcitool-a2ff777765656324ca43ae7265f34d5b0b2e3b3a.tar.bz2
pcitool-a2ff777765656324ca43ae7265f34d5b0b2e3b3a.tar.xz
pcitool-a2ff777765656324ca43ae7265f34d5b0b2e3b3a.zip
Added compatibility for Kernel 5.5+
ioremap_nocache and ioremap are now identical https://lore.kernel.org/linux-mips/20191209194819.GA28157@lst.de/T/
Diffstat (limited to 'driver')
-rw-r--r--driver/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver/compat.h b/driver/compat.h
index e6ff69e..472ca4f 100644
--- a/driver/compat.h
+++ b/driver/compat.h
@@ -48,5 +48,11 @@
# define get_user_pages_compat(vma, nr, pages) get_user_pages(current, current->mm, vma, nr, 1, 0, pages, NULL)
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0)
+# define ioremap_nocache ioremap
+// ioremap_nocache and ioremap are now platform independent and identical, as of
+// Kernel Version 5.5
+// https://lore.kernel.org/linux-mips/20191209194819.GA28157@lst.de/T/
+#endif
#endif