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