Re: [PATCH v8 6/8] modpost: Add modname to mod_device_table alias

From
Nicolas Schier <nsc@kernel.org>
Date
2025-09-24 06:40:11
Also in
linux-kbuild, lkml, rust-for-linux
Reply to
Alexey Gladkov, 2025-09-18
On Thu, Sep 18, 2025 at 10:05:50AM +0200, Alexey Gladkov wrote:
At this point, if a symbol is compiled as part of the kernel,
information about which module the symbol belongs to is lost.

To save this it is possible to add the module name to the alias name.
It's not very pretty, but it's possible for now.

Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Andreas Hindborg <a.hindborg@kernel.org>
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Alex Gaynor <redacted>
Cc: <redacted>
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
---
 include/linux/module.h   | 14 +++++++++++++-
 rust/kernel/device_id.rs |  8 ++++----
 scripts/mod/file2alias.c | 15 ++++++++++++---
 3 files changed, 29 insertions(+), 8 deletions(-)
Acked-by: Nicolas Schier <nsc@kernel.org>

-- 
Nicolas
Thread (22 messages) 22 messages, 4 authors, last reply 2025-10-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help