Whamcloud - gitweb
b=20092 Add kernel patch for symbol exports to 2.0 kernel
authorRahul Deshmukh <Rahul.Deshmukh@sun.com>
Mon, 6 Sep 2010 11:02:47 +0000 (15:02 +0400)
committerMikhail Pershin <tappro@sun.com>
Mon, 13 Sep 2010 18:50:57 +0000 (22:50 +0400)
Adding a patch to export kernel symbol needed dmu.

i=sheng.yang

lustre/kernel_patches/patches/export-symbols-for-dmu.patch [new file with mode: 0644]
lustre/kernel_patches/series/2.6-rhel5.series

diff --git a/lustre/kernel_patches/patches/export-symbols-for-dmu.patch b/lustre/kernel_patches/patches/export-symbols-for-dmu.patch
new file mode 100644 (file)
index 0000000..7087004
--- /dev/null
@@ -0,0 +1,25 @@
+diff -rupN linux-2.6.18-164.6.1_a/fs/proc/mmu.c linux-2.6.18-164.6.1_b/fs/proc/mmu.c
+--- linux-2.6.18-164.6.1_a/fs/proc/mmu.c       2010-07-20 12:15:18.000000000 +0530
++++ linux-2.6.18-164.6.1_b/fs/proc/mmu.c       2010-07-20 12:31:06.000000000 +0530
+@@ -75,3 +75,4 @@ void get_vmalloc_info(struct vmalloc_inf
+               read_unlock(&vmlist_lock);
+       }
+ }
++EXPORT_SYMBOL(get_vmalloc_info);
+diff -rupN linux-2.6.18-164.6.1_a/kernel/sched.c linux-2.6.18-164.6.1_b/kernel/sched.c
+--- linux-2.6.18-164.6.1_a/kernel/sched.c      2010-07-20 12:19:16.000000000 +0530
++++ linux-2.6.18-164.6.1_b/kernel/sched.c      2010-07-20 12:32:05.000000000 +0530
+@@ -1037,10 +1037,11 @@ static inline void resched_task(struct t
+  * task_curr - is this task currently executing on a CPU?
+  * @p: the task in question.
+  */
+-inline int task_curr(const struct task_struct *p)
++int task_curr(const struct task_struct *p)
+ {
+       return cpu_curr(task_cpu(p)) == p;
+ }
++EXPORT_SYMBOL(task_curr);
+ /* Used instead of source_load when we know the type == 0 */
+ unsigned long weighted_cpuload(const int cpu)
+
index c847422..6d7639d 100644 (file)
@@ -25,3 +25,4 @@ prune-icache-use-trylock-rhel5.patch
 jbd2-jcberr-2.6-rhel5.patch
 jbd2-commit-timer-no-jiffies-rounding.diff
 md-avoid-bug_on-when-bmc-overflow.patch
 jbd2-jcberr-2.6-rhel5.patch
 jbd2-commit-timer-no-jiffies-rounding.diff
 md-avoid-bug_on-when-bmc-overflow.patch
+export-symbols-for-dmu.patch