From: Sapan Bhatia Date: Tue, 5 Mar 2013 14:00:56 +0000 (-0500) Subject: Make backwards compatible with 3.6 X-Git-Tag: procprotect-0.3-2~10 X-Git-Url: http://git.onelab.eu/?p=procprotect.git;a=commitdiff_plain;h=d53194f4cadff25c88ba781da36daeec563226a0 Make backwards compatible with 3.6 --- 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);