All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kari Argillander <kari.argillander@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC 3/6] rust: WIP: use ThisModule trait for initializing
Date: Thu, 1 Jan 2026 16:36:31 +0100	[thread overview]
Message-ID: <202601011613.fA0RPZ42-lkp@intel.com> (raw)
In-Reply-To: <20260101-this_module_fix-v1-3-46ae3e5605a0@gmail.com>

Hi Kari,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on cc3aa43b44bdb43dfbac0fcb51c56594a11338a8]

url:    https://github.com/intel-lab-lkp/linux/commits/Kari-Argillander/rust-Enable-const_refs_to_static-feature/20260101-172411
base:   cc3aa43b44bdb43dfbac0fcb51c56594a11338a8
patch link:    https://lore.kernel.org/r/20260101-this_module_fix-v1-3-46ae3e5605a0%40gmail.com
patch subject: [PATCH RFC 3/6] rust: WIP: use ThisModule trait for initializing
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260101/202601011613.fA0RPZ42-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260101/202601011613.fA0RPZ42-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601011613.fA0RPZ42-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   PATH=/opt/cross/clang-20/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
   INFO PATH=/opt/cross/rustc-1.88.0-bindgen-0.72.1/cargo/bin:/opt/cross/clang-20/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
   /usr/bin/timeout -k 100 12h /usr/bin/make KCFLAGS= -fno-crash-diagnostics -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'
>> Diff in rust/kernel/pci.rs:5:
    //! C header: [`include/linux/pci.h`](srctree/include/linux/pci.h)
    
    use crate::{
   -    bindings,
   -    container_of,
   -    device,
   +    bindings, container_of, device,
        device_id::{
            RawDeviceId,
            RawDeviceIdIndex, //
>> Diff in rust/kernel/pci.rs:5:
    //! C header: [`include/linux/pci.h`](srctree/include/linux/pci.h)
    
    use crate::{
   -    bindings,
   -    container_of,
   -    device,
   +    bindings, container_of, device,
        device_id::{
            RawDeviceId,
            RawDeviceIdIndex, //
   make[2]: *** [Makefile:1877: rustfmt] Error 123
   make[2]: Target 'rustfmtcheck' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2
   make[1]: Target 'rustfmtcheck' not remade because of errors.
   make[1]: Leaving directory '/kbuild/obj/consumer/x86_64-rhel-9.4-rust'
   make: *** [Makefile:248: __sub-make] Error 2
   make: Target 'rustfmtcheck' not remade because of errors.
   make: Leaving directory '/kbuild/src/consumer'
--
>> warning: `crate` references the macro call's crate
   --> rust/kernel/configfs.rs:1021:83
   |
   1021 |                         $crate::configfs::ItemType::<$container, $data>::new::<N, crate::THIS_MODULE>(
   |                                                                                   ^^^^^ help: to reference the macro definition's crate, use: `$crate`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def
   = note: `-W clippy::crate-in-macro-def` implied by `-W clippy::all`
   = help: to override `-W clippy::all` add `#[allow(clippy::crate_in_macro_def)]`
--
>> warning: unresolved link to `macros::module::module`
   --> rust/kernel/lib.rs:214:11
   |
   214 |     //! [`macros::module::module`]. Mechanism is equivalent to `THIS_MODULE` in
   |           ^^^^^^^^^^^^^^^^^^^^^^ `module` is a macro, not a module or type, and cannot have associated items
   |
   = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
--
>> warning: unresolved link to `this_module`
   --> rust/kernel/lib.rs:223:15
   |
   223 |     /// See [`this_module`]
   |               ^^^^^^^^^^^ no item named `this_module` in scope
   |
   = help: to escape `[` and `]` characters, add '' before them like `[` or `]`
--
>> warning: unresolved link to `this_module`
   --> rust/kernel/lib.rs:229:15
   |
   229 |     /// See [`this_module`]
   |               ^^^^^^^^^^^ no item named `this_module` in scope
   |
   = help: to escape `[` and `]` characters, add '' before them like `[` or `]`

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2026-01-01 15:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-01  5:20 [PATCH RFC 0/6] rust: Reimplement ThisModule to fix ownership problems Kari Argillander
2026-01-01  5:20 ` [PATCH RFC 1/6] rust: Enable const_refs_to_static feature Kari Argillander
2026-01-01  5:20 ` [PATCH RFC 2/6] rust: WIP: Introduce ThisModule trait and THIS_MODULE impl Kari Argillander
2026-01-01  5:20 ` [PATCH RFC 3/6] rust: WIP: use ThisModule trait for initializing Kari Argillander
2026-01-01 15:36   ` kernel test robot [this message]
2026-01-01  5:20 ` [PATCH RFC 4/6] rust: WIP: use ThisModule trait to fix some missing owners Kari Argillander
2026-01-01  5:20 ` [PATCH RFC 5/6] rust: debugfs: WIP: Use owner for file_operations Kari Argillander
2026-01-01 16:06   ` kernel test robot
2026-01-01  5:20 ` [PATCH RFC 6/6] rust: WIP: Replace ModuleMetadata with THIS_MODULE Kari Argillander
2026-01-01 16:35   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202601011613.fA0RPZ42-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kari.argillander@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.