Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-show_task-2.4-vanilla.patch
1 Index: linux-2.4.24/kernel/ksyms.c
2 ===================================================================
3 --- linux-2.4.24.orig/kernel/ksyms.c    2004-10-22 14:00:00.000000000 -0400
4 +++ linux-2.4.24/kernel/ksyms.c 2004-10-22 14:03:54.000000000 -0400
5 @@ -70,6 +70,8 @@
6  extern spinlock_t dma_spin_lock;
7  extern int panic_timeout;
8  
9 +extern void show_task(struct task_struct *);
10 +
11  #ifdef CONFIG_MODVERSIONS
12  const struct module_symbol __export_Using_Versions
13  __attribute__((section("__ksymtab"))) = {
14 @@ -619,6 +621,7 @@
15  
16  /* debug */
17  EXPORT_SYMBOL(dump_stack);
18 +EXPORT_SYMBOL(show_task);
19  
20  /* To match ksyms with System.map */
21  extern const char _end[];
22 Index: linux-2.4.24/kernel/sched.c
23 ===================================================================
24 --- linux-2.4.24.orig/kernel/sched.c    2003-11-28 13:26:21.000000000 -0500
25 +++ linux-2.4.24/kernel/sched.c 2004-10-22 14:10:10.000000000 -0400
26 @@ -1177,7 +1177,7 @@
27         return retval;
28  }
29  
30 -static void show_task(struct task_struct * p)
31 +void show_task(struct task_struct * p)
32  {
33         unsigned long free = 0;
34         int state;