netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2] rust: net::phy fix module autoloading
@ 2024-12-12 13:00 FUJITA Tomonori
  2024-12-17  8:54 ` Paolo Abeni
  2024-12-17  9:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 10+ messages in thread
From: FUJITA Tomonori @ 2024-12-12 13:00 UTC (permalink / raw)
  To: netdev
  Cc: davem, edumazet, kuba, pabeni, rust-for-linux, andrew, hkallweit1,
	tmgross, aliceryhl, boqun.feng, gary, bjorn3_gh, benno.lossin,
	a.hindborg, ojeda, alex.gaynor

The alias symbol name was renamed. Adjust module_phy_driver macro to
create the proper symbol name to fix module autoloading.

Fixes: 054a9cd395a7 ("modpost: rename alias symbol for MODULE_DEVICE_TABLE()")
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
---
 rust/kernel/net/phy.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust/kernel/net/phy.rs b/rust/kernel/net/phy.rs
index b89c681d97c0..2fbfb6a94c11 100644
--- a/rust/kernel/net/phy.rs
+++ b/rust/kernel/net/phy.rs
@@ -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;
     };
 

base-commit: 51a00be6a0994da2ba6b4ace3b7a0d9373b4b25e
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-12-18 19:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 13:00 [PATCH net v2] rust: net::phy fix module autoloading FUJITA Tomonori
2024-12-17  8:54 ` Paolo Abeni
2024-12-17 14:54   ` Jakub Kicinski
2024-12-17 15:11     ` Paolo Abeni
2024-12-17 15:44       ` Jakub Kicinski
2024-12-17 16:51         ` Jakub Kicinski
2024-12-18  2:24           ` FUJITA Tomonori
2024-12-18 10:04           ` Paolo Abeni
2024-12-18 19:58             ` Jakub Kicinski
2024-12-17  9:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).