All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Andreas Hindborg" <a.hindborg@kernel.org>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Boqun Feng" <boqun.feng@gmail.com>,
	"Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <lossin@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Trevor Gross" <tmgross@umich.edu>,
	"Danilo Krummrich" <dakr@kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Dave Ertman" <david.m.ertman@intel.com>,
	"Ira Weiny" <ira.weiny@intel.com>,
	"Leon Romanovsky" <leon@kernel.org>,
	"Paul Moore" <paul@paul-moore.com>,
	"Serge Hallyn" <sergeh@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Alexander Viro" <viro@zeniv.linux.org.uk>,
	"Christian Brauner" <brauner@kernel.org>,
	"Jan Kara" <jack@suse.cz>,
	"Igor Korotin" <igor.korotin.linux@gmail.com>,
	"Daniel Almeida" <daniel.almeida@collabora.com>,
	"Lorenzo Stoakes" <lorenzo.stoakes@oracle.com>,
	"Liam R. Howlett" <Liam.Howlett@oracle.com>,
	"Viresh Kumar" <vireshk@kernel.org>, "Nishanth Menon" <nm@ti.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Bjorn Helgaas" <helgaas@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v14 2/9] rust: rename `AlwaysRefCounted` to `RefCounted`.
Date: Wed, 4 Feb 2026 23:50:40 +0100	[thread overview]
Message-ID: <202602042300.Ec1WiMLA-lkp@intel.com> (raw)
In-Reply-To: <20260204-unique-ref-v14-2-17cb29ebacbb@kernel.org>

Hi Andreas,

kernel test robot noticed the following build errors:

[auto build test ERROR on 63804fed149a6750ffd28610c5c1c98cce6bd377]

url:    https://github.com/intel-lab-lkp/linux/commits/Andreas-Hindborg/rust-types-Add-Ownable-Owned-types/20260204-200041
base:   63804fed149a6750ffd28610c5c1c98cce6bd377
patch link:    https://lore.kernel.org/r/20260204-unique-ref-v14-2-17cb29ebacbb%40kernel.org
patch subject: [PATCH v14 2/9] rust: rename `AlwaysRefCounted` to `RefCounted`.
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260204/202602042300.Ec1WiMLA-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/20260204/202602042300.Ec1WiMLA-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/202602042300.Ec1WiMLA-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0407]: method `inc_ref` is not a member of trait `AlwaysRefCounted`
   --> rust/kernel/usb.rs:378:5
   |
   378 | /     fn inc_ref(&self) {
   ...   |
   383 | |     }
   | |_____^ not a member of trait `AlwaysRefCounted`
--
>> error[E0407]: method `dec_ref` is not a member of trait `AlwaysRefCounted`
   --> rust/kernel/usb.rs:385:5
   |
   385 | /     unsafe fn dec_ref(obj: NonNull<Self>) {
   386 | |         // SAFETY: The safety requirements guarantee that the refcount is non-zero.
   387 | |         unsafe { bindings::usb_put_intf(obj.cast().as_ptr()) }
   388 | |     }
   | |_____^ not a member of trait `AlwaysRefCounted`
--
>> error[E0277]: the trait bound `usb::Interface: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/device.rs:700:17
   |
   700 |                 (&**dev).into()
   |                 ^^^^^^^^^^^^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Interface`
   |
   ::: rust/kernel/usb.rs:352:1
   |
   352 | kernel::impl_device_context_into_aref!(Interface);
   | ------------------------------------------------- in this macro invocation
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::ARef`
   --> rust/kernel/sync/aref.rs:86:20
   |
   86  | pub struct ARef<T: RefCounted> {
   |                    ^^^^^^^^^^ required by this bound in `ARef`
   = note: this error originates in the macro `::kernel::__impl_device_context_into_aref` which comes from the expansion of the macro `kernel::impl_device_context_into_aref` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error[E0277]: the trait bound `usb::Device: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/device.rs:700:17
   |
   700 |                 (&**dev).into()
   |                 ^^^^^^^^^^^^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Device`
   |
   ::: rust/kernel/usb.rs:425:1
   |
   425 | kernel::impl_device_context_into_aref!(Device);
   | ---------------------------------------------- in this macro invocation
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::ARef`
   --> rust/kernel/sync/aref.rs:86:20
   |
   86  | pub struct ARef<T: RefCounted> {
   |                    ^^^^^^^^^^ required by this bound in `ARef`
   = note: this error originates in the macro `::kernel::__impl_device_context_into_aref` which comes from the expansion of the macro `kernel::impl_device_context_into_aref` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error[E0407]: method `inc_ref` is not a member of trait `AlwaysRefCounted`
   --> rust/kernel/usb.rs:429:5
   |
   429 | /     fn inc_ref(&self) {
   ...   |
   434 | |     }
   | |_____^ not a member of trait `AlwaysRefCounted`
--
>> error[E0407]: method `dec_ref` is not a member of trait `AlwaysRefCounted`
   --> rust/kernel/usb.rs:436:5
   |
   436 | /     unsafe fn dec_ref(obj: NonNull<Self>) {
   437 | |         // SAFETY: The safety requirements guarantee that the refcount is non-zero.
   438 | |         unsafe { bindings::usb_put_dev(obj.cast().as_ptr()) }
   439 | |     }
   | |_____^ not a member of trait `AlwaysRefCounted`
--
>> error[E0277]: the trait bound `usb::Interface: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/device.rs:698:56
   |
   698 |         impl ::core::convert::From<&$device<$src>> for $crate::sync::aref::ARef<$device> {
   |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Interface`
   |
   ::: rust/kernel/usb.rs:352:1
   |
   352 | kernel::impl_device_context_into_aref!(Interface);
   | ------------------------------------------------- in this macro invocation
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::ARef`
   --> rust/kernel/sync/aref.rs:86:20
   |
   86  | pub struct ARef<T: RefCounted> {
   |                    ^^^^^^^^^^ required by this bound in `ARef`
   = note: this error originates in the macro `::kernel::__impl_device_context_into_aref` which comes from the expansion of the macro `kernel::impl_device_context_into_aref` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error[E0277]: the trait bound `usb::Interface: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/usb.rs:377:34
   |
   377 | unsafe impl AlwaysRefCounted for Interface {
   |                                  ^^^^^^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Interface`
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::AlwaysRefCounted`
   --> rust/kernel/sync/aref.rs:74:36
   |
   74  | pub unsafe trait AlwaysRefCounted: RefCounted {}
   |                                    ^^^^^^^^^^ required by this bound in `AlwaysRefCounted`
--
>> error[E0277]: the trait bound `usb::Device: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/device.rs:698:56
   |
   698 |         impl ::core::convert::From<&$device<$src>> for $crate::sync::aref::ARef<$device> {
   |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Device`
   |
   ::: rust/kernel/usb.rs:425:1
   |
   425 | kernel::impl_device_context_into_aref!(Device);
   | ---------------------------------------------- in this macro invocation
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::ARef`
   --> rust/kernel/sync/aref.rs:86:20
   |
   86  | pub struct ARef<T: RefCounted> {
   |                    ^^^^^^^^^^ required by this bound in `ARef`
   = note: this error originates in the macro `::kernel::__impl_device_context_into_aref` which comes from the expansion of the macro `kernel::impl_device_context_into_aref` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error[E0277]: the trait bound `usb::Device: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/usb.rs:428:34
   |
   428 | unsafe impl AlwaysRefCounted for Device {
   |                                  ^^^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Device`
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::AlwaysRefCounted`
   --> rust/kernel/sync/aref.rs:74:36
   |
   74  | pub unsafe trait AlwaysRefCounted: RefCounted {}
   |                                    ^^^^^^^^^^ required by this bound in `AlwaysRefCounted`
--
>> error[E0277]: the trait bound `usb::Interface: sync::aref::RefCounted` is not satisfied
   --> rust/kernel/device.rs:699:45
   |
   699 |             fn from(dev: &$device<$src>) -> Self {
   |                                             ^^^^ the trait `sync::aref::RefCounted` is not implemented for `usb::Interface`
   |
   ::: rust/kernel/usb.rs:352:1
   |
   352 | kernel::impl_device_context_into_aref!(Interface);
   | ------------------------------------------------- in this macro invocation
   |
   = help: the following other types implement trait `sync::aref::RefCounted`:
   auxiliary::Device
   block::mq::request::Request<T>
   cred::Credential
   device::Device
   device::property::FwNode
   fs::file::File
   fs::file::LocalFile
   i2c::I2cAdapter
   and 8 others
   note: required by a bound in `sync::aref::ARef`
   --> rust/kernel/sync/aref.rs:86:20
   |
   86  | pub struct ARef<T: RefCounted> {
   |                    ^^^^^^^^^^ required by this bound in `ARef`
   = note: this error originates in the macro `::kernel::__impl_device_context_into_aref` which comes from the expansion of the macro `kernel::impl_device_context_into_aref` (in Nightly builds, run with -Z macro-backtrace for more info)
..

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

  parent reply	other threads:[~2026-02-04 22:51 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04 11:56 [PATCH v14 0/9] rust: add `Ownable` trait and `Owned` type Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 1/9] rust: types: Add Ownable/Owned types Andreas Hindborg
2026-02-04 15:41   ` Danilo Krummrich
2026-02-04 16:06     ` Andreas Hindborg
2026-02-04 16:46       ` Danilo Krummrich
2026-02-04 16:55         ` Gary Guo
2026-02-04 16:56       ` Gary Guo
2026-02-05 13:29   ` Gary Guo
2026-02-04 11:56 ` [PATCH v14 2/9] rust: rename `AlwaysRefCounted` to `RefCounted` Andreas Hindborg
2026-02-04 15:08   ` Igor Korotin
2026-02-04 15:44   ` Danilo Krummrich
2026-02-04 22:50   ` kernel test robot [this message]
2026-02-06 16:57     ` Andreas Hindborg
2026-02-05  9:54   ` Viresh Kumar
2026-02-05 13:31   ` Gary Guo
2026-02-05 13:33     ` Gary Guo
2026-02-06 23:00   ` kernel test robot
2026-02-04 11:56 ` [PATCH v14 3/9] rust: Add missing SAFETY documentation for `ARef` example Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 4/9] rust: aref: update formatting of use statements Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 5/9] rust: Add `OwnableRefCounted` Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 6/9] rust: page: update formatting of `use` statements Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 7/9] rust: page: convert to `Ownable` Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 8/9] rust: implement `ForeignOwnable` for `Owned` Andreas Hindborg
2026-02-04 11:56 ` [PATCH v14 9/9] rust: page: add `from_raw()` Andreas Hindborg

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=202602042300.Ec1WiMLA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=a.hindborg@kernel.org \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=brauner@kernel.org \
    --cc=dakr@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=david.m.ertman@intel.com \
    --cc=gary@garyguo.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=helgaas@kernel.org \
    --cc=igor.korotin.linux@gmail.com \
    --cc=ira.weiny@intel.com \
    --cc=jack@suse.cz \
    --cc=kwilczynski@kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=lossin@kernel.org \
    --cc=nm@ti.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ojeda@kernel.org \
    --cc=paul@paul-moore.com \
    --cc=rafael@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sergeh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tmgross@umich.edu \
    --cc=vireshk@kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /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.