Skip to content

Commit 94901b7

Browse files
fujitaPaolo Abeni
authored andcommitted
rust: net::phy fix module autoloading
The alias symbol name was renamed. Adjust module_phy_driver macro to create the proper symbol name to fix module autoloading. Fixes: 054a9cd ("modpost: rename alias symbol for MODULE_DEVICE_TABLE()") Signed-off-by: FUJITA Tomonori <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 7203d10 commit 94901b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/kernel/net/phy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ impl DeviceMask {
860860
/// ];
861861
/// #[cfg(MODULE)]
862862
/// #[no_mangle]
863-
/// static __mod_mdio__phydev_device_table: [::kernel::bindings::mdio_device_id; 2] = _DEVICE_TABLE;
863+
/// static __mod_device_table__mdio__phydev: [::kernel::bindings::mdio_device_id; 2] = _DEVICE_TABLE;
864864
/// ```
865865
#[macro_export]
866866
macro_rules! module_phy_driver {
@@ -883,7 +883,7 @@ macro_rules! module_phy_driver {
883883

884884
#[cfg(MODULE)]
885885
#[no_mangle]
886-
static __mod_mdio__phydev_device_table: [$crate::bindings::mdio_device_id;
886+
static __mod_device_table__mdio__phydev: [$crate::bindings::mdio_device_id;
887887
$crate::module_phy_driver!(@count_devices $($dev),+) + 1] = _DEVICE_TABLE;
888888
};
889889

0 commit comments

Comments
 (0)