From fa4e3331d8d430a2dfeca62cb7c6b237f5eb57f9 Mon Sep 17 00:00:00 2001 From: internal Date: Tue, 25 Oct 2022 19:30:52 +0200 Subject: [PATCH] move compatibility stuff to dd_compat.h --- include/dd_compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/dd_compat.h b/include/dd_compat.h index 50bcced..d1f019d 100644 --- a/include/dd_compat.h +++ b/include/dd_compat.h @@ -1,3 +1,11 @@ +#include + +#if (KERNEL_VERSION(3, 8, 0) <= LINUX_VERSION_CODE) +#define __devexit +#define __devinit +#define __devinitconst +#endif + #ifndef __has_attribute #define __has_attribute(x) 0 #endif