summaryrefslogtreecommitdiff
path: root/kernel/xpp/xdefs.h
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2009-05-27 13:02:44 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2009-05-27 13:02:44 +0000
commit1a5c5df3dd49acdda584802aa1b7e0cc32476066 (patch)
treee001a403ef8772361c2e3ba920f0b0184472b783 /kernel/xpp/xdefs.h
parent28820a3e980eec518a3d5a6fc908bb315dd7af60 (diff)
xpp: 'owner' property of procfs was dropped in 2.6.30.
This adds a compatibility macro for older versions that is a noop for kernels >= 2.6.30. From dahdi-linux r6642, r6659 , regarding issue #14964 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4648 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/xpp/xdefs.h')
-rw-r--r--kernel/xpp/xdefs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/xpp/xdefs.h b/kernel/xpp/xdefs.h
index 9fe821d..1aadbe5 100644
--- a/kernel/xpp/xdefs.h
+++ b/kernel/xpp/xdefs.h
@@ -123,6 +123,11 @@ typedef unsigned char byte;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
#define OLD_HOTPLUG_SUPPORT_269// for way older kernels
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+#define SET_PROC_DIRENTRY_OWNER(p) do { (p)->owner = THIS_MODULE; } while(0);
+#else
+#define SET_PROC_DIRENTRY_OWNER(p) do { } while(0);
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
#define DEVICE_ATTR_READER(name,dev,buf) \