[lkml]   [2019]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] depmod: create and use
depmod in its current version is not aware of symbol namespace in
ksymtab entries introduced with 8651ec01daed ("module: add support for
symbol namespaces."). They have the form


A fix for kmod's depmod has been proposed [1]. In order to support older
versions of depmod as well, create a during
scripts/ that has the pre-namespaces format. That way users do
not immediately upgrade the userspace tool.


Reported-by: Stefan Wahren <>
Fixes: 8651ec01daed ("module: add support for symbol namespaces.")
Cc: Masahiro Yamada <>
Cc: Lucas De Marchi <>
Cc: Jessica Yu <>
Cc: Martijn Coenen <>
Cc: Greg Kroah-Hartman <>
Signed-off-by: Matthias Maennich <>

Please note this depends on the new ksymtab entry format proposed in

That is likely to be merged soon as well as it fixes problems in 5.4-rc*, hence
this patch depends on it.


.gitignore | 1 +
scripts/ | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 70580bdd352c..5ed58a7cb433 100644
--- a/.gitignore
+++ b/.gitignore
@@ -59,6 +59,7 @@ modules.order

diff --git a/scripts/ b/scripts/
index e083bcae343f..602e1af072c7 100755
--- a/scripts/
+++ b/scripts/
@@ -39,7 +39,13 @@ if $depmod_hack_needed; then

-set -- -ae -F
+# Older versions of depmod do not support symbol namespaces in ksymtab entries,
+# hence create an alternative with namespace patched out to use for
+# depmod. I.e. transform entries as follows:
+# __ksymtab_NAMESPACE.symbol_name -> __ksymtab_symbol_name
+sed 's/__ksymtab_.*\./__ksymtab_/' >
+set -- -ae -F
if test -n "$INSTALL_MOD_PATH"; then
set -- "$@" -b "$INSTALL_MOD_PATH"
 \ /
  Last update: 2019-10-04 11:58    [W:0.144 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site