Re: [net-next PATCH v10 7/7] rust: net::phy sync with match_phy_device C changes

From
kernel test robot <hidden>
Date
2025-05-16 11:57:44
Also in
oe-kbuild-all
Reply to
Christian Marangi, 2025-05-15
Hi Christian,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Christian-Marangi/net-phy-pass-PHY-driver-to-match_phy_device-OP/20250515-193151
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250515112721.19323-8-ansuelsmth%40gmail.com (local)
patch subject: [net-next PATCH v10 7/7] rust: net::phy sync with match_phy_device C changes
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250516/202505161944.2x21wbM5-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250516/202505161944.2x21wbM5-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot [off-list ref]
| Closes: https://lore.kernel.org/oe-kbuild-all/202505161944.2x21wbM5-lkp@intel.com/ (local)

All errors (new ones prefixed by >>):

   PATH=/opt/cross/clang-18/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
   INFO PATH=/opt/cross/rustc-1.78.0-bindgen-0.65.1/cargo/bin:/opt/cross/clang-18/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
   /usr/bin/timeout -k 100 12h /usr/bin/make KCFLAGS= -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef W=1 --keep-going LLVM=1 -j32 -C source O=/kbuild/obj/consumer/x86_64-rhel-9.4-rust ARCH=x86_64 SHELL=/bin/bash rustfmtcheck
   make: Entering directory '/kbuild/src/consumer'
   make[1]: Entering directory '/kbuild/obj/consumer/x86_64-rhel-9.4-rust'
quoted
Diff in rust/kernel/net/phy.rs at line 422:
        //  `phy_driver`.
        unsafe extern "C" fn match_phy_device_callback(
            phydev: *mut bindings::phy_device,
   -        phydrv: *const bindings::phy_driver
   +        phydrv: *const bindings::phy_driver,
        ) -> crate::ffi::c_int {
            // SAFETY: This callback is called only in contexts
            // where we hold `phy_device->lock`, so the accessors on
quoted
Diff in rust/kernel/net/phy.rs at line 422:
        //  `phy_driver`.
        unsafe extern "C" fn match_phy_device_callback(
            phydev: *mut bindings::phy_device,
   -        phydrv: *const bindings::phy_driver
   +        phydrv: *const bindings::phy_driver,
        ) -> crate::ffi::c_int {
            // SAFETY: This callback is called only in contexts
            // where we hold `phy_device->lock`, so the accessors on
quoted
Diff in rust/kernel/net/phy.rs at line 422:
        //  `phy_driver`.
        unsafe extern "C" fn match_phy_device_callback(
            phydev: *mut bindings::phy_device,
   -        phydrv: *const bindings::phy_driver
   +        phydrv: *const bindings::phy_driver,
        ) -> crate::ffi::c_int {
            // SAFETY: This callback is called only in contexts
            // where we hold `phy_device->lock`, so the accessors on
   make[2]: *** [Makefile:1826: rustfmt] Error 123
   make[2]: Target 'rustfmtcheck' not remade because of errors.
   make[1]: Leaving directory '/kbuild/obj/consumer/x86_64-rhel-9.4-rust'
   make[1]: *** [Makefile:248: __sub-make] Error 2
   make[1]: Target 'rustfmtcheck' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2
   make: Target 'rustfmtcheck' not remade because of errors.
   make: Leaving directory '/kbuild/src/consumer'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Thread (28 messages) 28 messages, 4 authors, last reply 2025-05-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help