Whamcloud - gitweb
b=20092 Add kernel patch for symbol exports to 2.0 kernel
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-symbols-for-dmu.patch
1 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
2 --- linux-2.6.18-164.6.1_a/fs/proc/mmu.c        2010-07-20 12:15:18.000000000 +0530
3 +++ linux-2.6.18-164.6.1_b/fs/proc/mmu.c        2010-07-20 12:31:06.000000000 +0530
4 @@ -75,3 +75,4 @@ void get_vmalloc_info(struct vmalloc_inf
5                 read_unlock(&vmlist_lock);
6         }
7  }
8 +EXPORT_SYMBOL(get_vmalloc_info);
9 diff -rupN linux-2.6.18-164.6.1_a/kernel/sched.c linux-2.6.18-164.6.1_b/kernel/sched.c
10 --- linux-2.6.18-164.6.1_a/kernel/sched.c       2010-07-20 12:19:16.000000000 +0530
11 +++ linux-2.6.18-164.6.1_b/kernel/sched.c       2010-07-20 12:32:05.000000000 +0530
12 @@ -1037,10 +1037,11 @@ static inline void resched_task(struct t
13   * task_curr - is this task currently executing on a CPU?
14   * @p: the task in question.
15   */
16 -inline int task_curr(const struct task_struct *p)
17 +int task_curr(const struct task_struct *p)
18  {
19         return cpu_curr(task_cpu(p)) == p;
20  }
21 +EXPORT_SYMBOL(task_curr);
22  
23  /* Used instead of source_load when we know the type == 0 */
24  unsigned long weighted_cpuload(const int cpu)
25