]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
modpost: Add modname to mod_device_table alias
authorAlexey Gladkov <legion@kernel.org>
Thu, 18 Sep 2025 08:05:50 +0000 (10:05 +0200)
committerNathan Chancellor <nathan@kernel.org>
Wed, 24 Sep 2025 16:10:45 +0000 (09:10 -0700)
commit83fb49389bbe07defb85b063f7ff0fd016f06b35
treeb800fdcaeff669d0b70263d9b5870d54b7ac9472
parentb88f88c26705ad436ff9675258f76082dd43996a
modpost: Add modname to mod_device_table alias

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 <alex.gaynor@gmail.com>
Cc: rust-for-linux@vger.kernel.org
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Acked-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/1a0d0bd87a4981d465b9ed21e14f4e78eaa03ded.1758182101.git.legion@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
include/linux/module.h
rust/kernel/device_id.rs
scripts/mod/file2alias.c