mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 00:33:16 +00:00
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: 054a9cd395
("modpost: rename alias symbol for MODULE_DEVICE_TABLE()")
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://patch.msgid.link/20241212130015.238863-1-fujita.tomonori@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
7203d10e93
commit
94901b7a74
@ -860,7 +860,7 @@ const fn as_int(&self) -> u32 {
|
||||
/// ];
|
||||
/// #[cfg(MODULE)]
|
||||
/// #[no_mangle]
|
||||
/// static __mod_mdio__phydev_device_table: [::kernel::bindings::mdio_device_id; 2] = _DEVICE_TABLE;
|
||||
/// static __mod_device_table__mdio__phydev: [::kernel::bindings::mdio_device_id; 2] = _DEVICE_TABLE;
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! module_phy_driver {
|
||||
@ -883,7 +883,7 @@ macro_rules! module_phy_driver {
|
||||
|
||||
#[cfg(MODULE)]
|
||||
#[no_mangle]
|
||||
static __mod_mdio__phydev_device_table: [$crate::bindings::mdio_device_id;
|
||||
static __mod_device_table__mdio__phydev: [$crate::bindings::mdio_device_id;
|
||||
$crate::module_phy_driver!(@count_devices $($dev),+) + 1] = _DEVICE_TABLE;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user