Commit | Line | Data |
---|---|---|
3a523f5b MD |
1 | commit e6b48d720e39d17f06a4462be4164e1a358817de |
2 | Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
3 | Date: Sat Sep 1 17:51:33 2012 -0700 | |
4 | ||
5 | kallsyms: Re-enable export of kallsyms_lookup (backport) | |
6 | ||
7 | Backport of part of commit: | |
8 | ||
9 | commit f60d24d2ad04977b0bd9e3eb35dba2d2fa569af9 | |
10 | Author: Frederic Weisbecker <fweisbec@gmail.com> | |
11 | Date: Tue Nov 10 10:17:07 2009 +0100 | |
12 | ||
13 | hw-breakpoints: Fix broken hw-breakpoint sample module | |
14 | ||
15 | The hw-breakpoint sample module has been broken during the | |
16 | hw-breakpoint internals refactoring. Propagate the changes | |
17 | to it. | |
18 | ||
19 | Reported-by: "K. Prasad" <prasad@linux.vnet.ibm.com> | |
20 | Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> | |
21 | ||
22 | for kernel 2.6.32.x. (just the symbol export) | |
23 | ||
24 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
25 | ||
26 | diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c | |
27 | index 8b6b8b6..8e5288a 100644 | |
28 | --- a/kernel/kallsyms.c | |
29 | +++ b/kernel/kallsyms.c | |
30 | @@ -181,6 +181,7 @@ unsigned long kallsyms_lookup_name(const char *name) | |
31 | } | |
32 | return module_kallsyms_lookup_name(name); | |
33 | } | |
34 | +EXPORT_SYMBOL_GPL(kallsyms_lookup_name); | |
35 | ||
36 | int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, | |
37 | unsigned long), |