* [leon-rdma:rxe-rust-v1 61/88] warning: use of a disallowed method `core::ffi::CStr::as_ptr`
@ 2026-10-13 0:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-13 0:03 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rxe-rust-v1
head: fe52737deab42b438e356282106b9418915da058
commit: 6a8249571db884afbc188c60b5a59a86c727ae45 [61/88] rust: rdma: Own pinned provider data across device callbacks
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20261013/202610130159.ZWMsCiIl-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261013/202610130159.ZWMsCiIl-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/202610130159.ZWMsCiIl-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:144:16
|
144 | Send = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_SEND as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_SEND`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
= note: `-W clippy::unnecessary-cast` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_cast)]`
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:146:19
|
146 | Receive = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_RECV as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_RECV`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:148:17
|
148 | Write = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_WRITE as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_WRITE`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:150:16
|
150 | Read = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_READ as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_READ`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:152:18
|
152 | Atomic = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_ATOMIC as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_ATOMIC`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:154:22
|
154 | SrqReceive = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_SRQ_RECV as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_SRQ_RECV`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:156:17
|
156 | Flush = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_FLUSH as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_FLUSH`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> rust/kernel/rdma/capabilities.rs:158:23
|
158 | AtomicWrite = bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_ATOMIC_WRITE as u32,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `bindings::ib_odp_transport_cap_bits_IB_ODP_SUPPORT_ATOMIC_WRITE`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: name `PROVIDERS` contains a capitalized acronym
--> rust/kernel/rdma/registry.rs:14:27
|
14 | unsafe(uninit) static PROVIDERS: SpinLockIrq<Option<RBTree<usize, TypeId>>> = None;
| ^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Providers`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#upper_case_acronyms
--
>> warning: casting to the same type is unnecessary (`u8` -> `u8`)
--> rust/kernel/rdma/modification.rs:42:65
|
42 | .then(|| (*attributes).node_desc.map(|byte| byte as u8)),
| ^^^^^^^^^^ help: try: `byte`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#unnecessary_cast
--
>> warning: use of a disallowed method `core::ffi::CStr::as_ptr`
--> rust/kernel/rdma/statistics.rs:40:52
|
40 | descriptors[index].name = names[index].as_ptr().cast();
| ^^^^^^ help: kernel's `char` is always unsigned, use `as_char_ptr` instead: `kernel::prelude::CStrExt::as_char_ptr`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#disallowed_methods
= note: `-W clippy::disallowed-methods` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::disallowed_methods)]`
..
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-13 0:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 0:03 [leon-rdma:rxe-rust-v1 61/88] warning: use of a disallowed method `core::ffi::CStr::as_ptr` kernel test robot
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.