Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: phy: use `srctree`-relative links

The relative paths like the following are bothersome and don't work
with `O=` builds:

//! C headers: [`include/linux/phy.h`](../../../../../../../include/linux/phy.h).

This updates such links by using the `srctree`-relative link feature
introduced in 6.8-rc1 like:

//! C headers: [`include/linux/phy.h`](srctree/include/linux/phy.h).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

FUJITA Tomonori and committed by
David S. Miller
1d4046b5 a70f2588

+4 -4
+4 -4
rust/kernel/net/phy.rs
··· 4 4 5 5 //! Network PHY device. 6 6 //! 7 - //! C headers: [`include/linux/phy.h`](../../../../../../../include/linux/phy.h). 7 + //! C headers: [`include/linux/phy.h`](srctree/include/linux/phy.h). 8 8 9 9 use crate::{bindings, error::*, prelude::*, str::CStr, types::Opaque}; 10 10 ··· 16 16 /// 17 17 /// Some of PHY drivers access to the state of PHY's software state machine. 18 18 /// 19 - /// [`enum phy_state`]: ../../../../../../../include/linux/phy.h 19 + /// [`enum phy_state`]: srctree/include/linux/phy.h 20 20 #[derive(PartialEq, Eq)] 21 21 pub enum DeviceState { 22 22 /// PHY device and driver are not ready for anything. ··· 61 61 /// Referencing a `phy_device` using this struct asserts that you are in 62 62 /// a context where all methods defined on this struct are safe to call. 63 63 /// 64 - /// [`struct phy_device`]: ../../../../../../../include/linux/phy.h 64 + /// [`struct phy_device`]: srctree/include/linux/phy.h 65 65 // During the calls to most functions in [`Driver`], the C side (`PHYLIB`) holds a lock that is 66 66 // unique for every instance of [`Device`]. `PHYLIB` uses a different serialization technique for 67 67 // [`Driver::resume`] and [`Driver::suspend`]: `PHYLIB` updates `phy_device`'s state with ··· 486 486 /// 487 487 /// `self.0` is always in a valid state. 488 488 /// 489 - /// [`struct phy_driver`]: ../../../../../../../include/linux/phy.h 489 + /// [`struct phy_driver`]: srctree/include/linux/phy.h 490 490 #[repr(transparent)] 491 491 pub struct DriverVTable(Opaque<bindings::phy_driver>); 492 492