summaryrefslogtreecommitdiff
path: root/system/ksplice/kernel-2.6.29.diff
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2010-05-13 01:00:54 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 01:00:54 +0200
commit8a1315a092a3ba5090dc4b8c7c4e4f4e0be549ff (patch)
tree7262d257de6e898947a6925edf0b582004e95ef3 /system/ksplice/kernel-2.6.29.diff
parent0ed576edb0ae14cd0a58f828a779b7e7fd6e6d31 (diff)
downloadslackbuilds-8a1315a092a3ba5090dc4b8c7c4e4f4e0be549ff.tar.gz
system/ksplice: Added to 13.0 repository
Diffstat (limited to 'system/ksplice/kernel-2.6.29.diff')
-rw-r--r--system/ksplice/kernel-2.6.29.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/system/ksplice/kernel-2.6.29.diff b/system/ksplice/kernel-2.6.29.diff
new file mode 100644
index 0000000000..b2c8bbf590
--- /dev/null
+++ b/system/ksplice/kernel-2.6.29.diff
@@ -0,0 +1,21 @@
+diff --git a/kmodsrc/ksplice.c b/kmodsrc/ksplice.c
+index 6f6805c..63b0398 100644
+--- a/kmodsrc/ksplice.c
++++ b/kmodsrc/ksplice.c
+@@ -4098,6 +4098,8 @@ static const struct kernel_symbol *find_symbol(const char *name,
+ return NULL;
+ }
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
++/* a06f6211ef9b1785922f9d0e8766d63ac4e66de1 was after 2.6.28 */
+ static inline int within_module_core(unsigned long addr, struct module *mod)
+ {
+ return (unsigned long)mod->module_core <= addr &&
+@@ -4109,6 +4111,7 @@ static inline int within_module_init(unsigned long addr, struct module *mod)
+ return (unsigned long)mod->module_init <= addr &&
+ addr < (unsigned long)mod->module_init + mod->init_size;
+ }
++#endif
+
+ static struct module *__module_address(unsigned long addr)
+ {