Thread (87 messages) 87 messages, 13 authors, 2023-08-10
STALE1078d
Revisions (3)
  1. v4 current
  2. v5 [diff vs current]
  3. v5 [diff vs current]

[PATCH v4 02/21] kallsyms: Export kallsyms_lookup_name

From: Mukesh Ojha <hidden>
Date: 2023-06-28 12:36:15
Also in: linux-arm-msm, linux-devicetree, linux-doc, linux-gpio, linux-hardening, linux-remoteproc, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Module like minidump providing debugging support will need to
get the symbol information from the core kernel e.g to get
the linux_banner, kernel section addresses bss, data, ro etc.

commit 0bd476e6c671 ("kallsyms: unexport kallsyms_lookup_name()
 and kallsyms_on_each_symbol()") unexports kallsyms_lookup_name
due to lack of in-tree user of the symbol. Now, that minidump
will one of its user, export it.

Signed-off-by: Mukesh Ojha <redacted>
---
 kernel/kallsyms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 77747391f49b..34a074f58736 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -283,7 +283,7 @@ unsigned long kallsyms_lookup_name(const char *name)
 
 	return module_kallsyms_lookup_name(name);
 }
-
+EXPORT_SYMBOL_GPL(kallsyms_lookup_name);
 /*
  * Iterate over all symbols in vmlinux.  For symbols from modules use
  * module_kallsyms_on_each_symbol instead.
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help