diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2025-02-25 16:03:25 -0800 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2025-02-25 16:03:25 -0800 | 
| commit | 0b119045b79a672bc6d8f18641c60fc8ce1b4585 (patch) | |
| tree | 69c63ecfec55b9576c34dc742e0c38f46f8a317a /rust/kernel/net | |
| parent | 7f7573bd4f37d4edc168c5b5def0bc2a1951c657 (diff) | |
| parent | d082ecbc71e9e0bf49883ee4afd435a77a5101b6 (diff) | |
Merge tag 'v6.14-rc4' into next
Sync up with the mainline.
Diffstat (limited to 'rust/kernel/net')
| -rw-r--r-- | rust/kernel/net/phy.rs | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/rust/kernel/net/phy.rs b/rust/kernel/net/phy.rs index b89c681d97c0..bb654a28dab3 100644 --- a/rust/kernel/net/phy.rs +++ b/rust/kernel/net/phy.rs @@ -587,17 +587,17 @@ pub trait Driver {      /// Issues a PHY software reset.      fn soft_reset(_dev: &mut Device) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Sets up device-specific structures during discovery.      fn probe(_dev: &mut Device) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Probes the hardware to determine what abilities it has.      fn get_features(_dev: &mut Device) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Returns true if this is a suitable driver for the given phydev. @@ -609,32 +609,32 @@ pub trait Driver {      /// Configures the advertisement and resets auto-negotiation      /// if auto-negotiation is enabled.      fn config_aneg(_dev: &mut Device) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Determines the negotiated speed and duplex.      fn read_status(_dev: &mut Device) -> Result<u16> { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Suspends the hardware, saving state if needed.      fn suspend(_dev: &mut Device) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Resumes the hardware, restoring state if needed.      fn resume(_dev: &mut Device) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Overrides the default MMD read function for reading a MMD register.      fn read_mmd(_dev: &mut Device, _devnum: u8, _regnum: u16) -> Result<u16> { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Overrides the default MMD write function for writing a MMD register.      fn write_mmd(_dev: &mut Device, _devnum: u8, _regnum: u16, _val: u16) -> Result { -        kernel::build_error(VTABLE_DEFAULT_ERROR) +        build_error!(VTABLE_DEFAULT_ERROR)      }      /// Callback for notification of link change. @@ -837,7 +837,7 @@ impl DeviceMask {  ///         [::kernel::net::phy::create_phy_driver::<PhySample>()];  ///  ///     impl ::kernel::Module for Module { -///         fn init(module: &'static ThisModule) -> Result<Self> { +///         fn init(module: &'static ::kernel::ThisModule) -> Result<Self> {  ///             let drivers = unsafe { &mut DRIVERS };  ///             let mut reg = ::kernel::net::phy::Registration::register(  ///                 module, @@ -860,7 +860,7 @@ impl DeviceMask {  /// ];  /// #[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;      }; @@ -903,7 +903,7 @@ macro_rules! module_phy_driver {                  [$($crate::net::phy::create_phy_driver::<$driver>()),+];              impl $crate::Module for Module { -                fn init(module: &'static ThisModule) -> Result<Self> { +                fn init(module: &'static $crate::ThisModule) -> Result<Self> {                      // SAFETY: The anonymous constant guarantees that nobody else can access                      // the `DRIVERS` static. The array is used only in the C side.                      let drivers = unsafe { &mut DRIVERS }; | 
