Added kernel v5.1+ support (get_ds -> KERNEL_DS)

This commit is contained in:
Christian Bremvåg 2019-06-22 19:41:09 +02:00 committed by GitHub
parent 472b8b3176
commit df6381f35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,10 @@ atomic_t _malloc_size = ATOMIC_INIT(0);
#endif
#endif /* DBG_MEMORY_LEAK */
/* This is to fix get_ds() type mismatch on kernels above 5.1.x */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0))
#define get_ds() KERNEL_DS
#endif
#if defined(PLATFORM_LINUX)
/*