]> git.proxmox.com Git - mirror_spl-debian.git/blob - patches/rhel5-spl-export-symbols.patch
Imported Upstream version 0.6.2+git20140204
[mirror_spl-debian.git] / patches / rhel5-spl-export-symbols.patch
1 Index: linux+rh+chaos/kernel/sched.c
2 ===================================================================
3 --- linux+rh+chaos.orig/kernel/sched.c
4 +++ linux+rh+chaos/kernel/sched.c
5 @@ -1034,10 +1034,11 @@ static inline void resched_task(struct t
6 * task_curr - is this task currently executing on a CPU?
7 * @p: the task in question.
8 */
9 -inline int task_curr(const struct task_struct *p)
10 +int task_curr(const struct task_struct *p)
11 {
12 return cpu_curr(task_cpu(p)) == p;
13 }
14 +EXPORT_SYMBOL(task_curr); /* Request export upstream */
15
16 /* Used instead of source_load when we know the type == 0 */
17 unsigned long weighted_cpuload(const int cpu)
18 Index: linux+rh+chaos/kernel/time.c
19 ===================================================================
20 --- linux+rh+chaos.orig/kernel/time.c
21 +++ linux+rh+chaos/kernel/time.c
22 @@ -605,6 +605,7 @@ void set_normalized_timespec(struct time
23 ts->tv_sec = sec;
24 ts->tv_nsec = nsec;
25 }
26 +EXPORT_SYMBOL(set_normalized_timespec); /* Exported as of 2.6.26 */
27
28 /**
29 * ns_to_timespec - Convert nanoseconds to timespec
30 Index: linux+rh+chaos/kernel/kallsyms.c
31 ===================================================================
32 --- linux+rh+chaos.orig/kernel/kallsyms.c
33 +++ linux+rh+chaos/kernel/kallsyms.c
34 @@ -154,6 +154,7 @@ unsigned long kallsyms_lookup_name(const
35 }
36 return module_kallsyms_lookup_name(name);
37 }
38 +EXPORT_SYMBOL(kallsyms_lookup_name); /* Exported prior to 2.6.19 */
39
40 /*
41 * Lookup an address
42 Index: linux+rh+chaos/fs/proc/mmu.c
43 ===================================================================
44 --- linux+rh+chaos.orig/fs/proc/mmu.c
45 +++ linux+rh+chaos/fs/proc/mmu.c
46 @@ -75,3 +75,4 @@ void get_vmalloc_info(struct vmalloc_inf
47 read_unlock(&vmlist_lock);
48 }
49 }
50 +EXPORT_SYMBOL(get_vmalloc_info); /* Request clean upstream API for this */
51 Index: linux+rh+chaos/mm/mmzone.c
52 ===================================================================
53 --- linux+rh+chaos.orig/mm/mmzone.c
54 +++ linux+rh+chaos/mm/mmzone.c
55 @@ -14,7 +14,7 @@ struct pglist_data *first_online_pgdat(v
56 return NODE_DATA(first_online_node);
57 }
58
59 -EXPORT_UNUSED_SYMBOL(first_online_pgdat); /* June 2006 */
60 +EXPORT_SYMBOL(first_online_pgdat); /* Exported prior to 2.6.18 */
61
62 struct pglist_data *next_online_pgdat(struct pglist_data *pgdat)
63 {
64 @@ -24,7 +24,7 @@ struct pglist_data *next_online_pgdat(st
65 return NULL;
66 return NODE_DATA(nid);
67 }
68 -EXPORT_UNUSED_SYMBOL(next_online_pgdat); /* June 2006 */
69 +EXPORT_SYMBOL(next_online_pgdat); /* Exported prior to 2.6.18 */
70
71
72 /*
73 @@ -45,5 +45,5 @@ struct zone *next_zone(struct zone *zone
74 }
75 return zone;
76 }
77 -EXPORT_UNUSED_SYMBOL(next_zone); /* June 2006 */
78 +EXPORT_SYMBOL(next_zone); /* Exported prior to 2.6.18 */
79
80 Index: linux+rh+chaos/mm/vmstat.c
81 ===================================================================
82 --- linux+rh+chaos.orig/mm/vmstat.c
83 +++ linux+rh+chaos/mm/vmstat.c
84 @@ -45,6 +45,7 @@ void get_zone_counts(unsigned long *acti
85 *free += n;
86 }
87 }
88 +EXPORT_SYMBOL(get_zone_counts); /* Request clean upstream API for this */
89
90 #ifdef CONFIG_VM_EVENT_COUNTERS
91 DEFINE_PER_CPU(struct vm_event_state, vm_event_states) = {{0}};