From d53194f4cadff25c88ba781da36daeec563226a0 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 5 Mar 2013 09:00:56 -0500 Subject: [PATCH] Make backwards compatible with 3.6 --- procprotect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/procprotect.c b/procprotect.c index 1ceea46..56910b3 100644 --- a/procprotect.c +++ b/procprotect.c @@ -33,7 +33,12 @@ #error "This code does not support your architecture" #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) static char *aclpath = "procprotect"; +#else +static char *aclpath __devinitdata = "procprotect"; +#endif + static struct qstr aclqpath; module_param(aclpath, charp, 0); -- 2.43.0