llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v3] rust: kernel: introduce `unsafe_precondition_assert!` macro
       [not found] <20250731111234.28602-1-ritvikfoss@gmail.com>
@ 2025-08-05  0:17 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-05  0:17 UTC (permalink / raw)
  To: Ritvik Gupta, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich
  Cc: llvm, oe-kbuild-all, skhan, linux-kernel, rust-for-linux

Hi Ritvik,

kernel test robot noticed the following build errors:

[auto build test ERROR on dff64b072708ffef23c117fa1ee1ea59eb417807]

url:    https://github.com/intel-lab-lkp/linux/commits/Ritvik-Gupta/rust-kernel-introduce-unsafe_precondition_assert-macro/20250731-191444
base:   dff64b072708ffef23c117fa1ee1ea59eb417807
patch link:    https://lore.kernel.org/r/20250731111234.28602-1-ritvikfoss%40gmail.com
patch subject: [PATCH v3] rust: kernel: introduce `unsafe_precondition_assert!` macro
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250805/202508050756.oFg4cjPu-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/20250805/202508050756.oFg4cjPu-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/202508050756.oFg4cjPu-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error: cannot find macro `unsafe_precondition_assert` in this scope
   --> rust/doctests_kernel_generated.rs:8012:5
   |
   8012 |     unsafe_precondition_assert!(!buf.is_null(), "buf must not be null");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   ::: /opt/cross/rustc-1.88.0-bindgen-0.72.0/rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ub_checks.rs:52:1
   |
   52   | macro_rules! assert_unsafe_precondition {
   | --------------------------------------- similarly named macro `assert_unsafe_precondition` defined here
   |
   help: a macro with a similar name exists
   |
   8012 -     unsafe_precondition_assert!(!buf.is_null(), "buf must not be null");
   8012 +     assert_unsafe_precondition!(!buf.is_null(), "buf must not be null");
   |
   help: consider importing this macro
   |
   3    + use kernel::unsafe_precondition_assert;
   |
--
>> error: cannot find macro `unsafe_precondition_assert` in this scope
   --> rust/doctests_kernel_generated.rs:8013:5
   |
   8013 |     unsafe_precondition_assert!((buf as usize) % 16 == 0, "buf must be 16-byte aligned");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   ::: /opt/cross/rustc-1.88.0-bindgen-0.72.0/rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ub_checks.rs:52:1
   |
   52   | macro_rules! assert_unsafe_precondition {
   | --------------------------------------- similarly named macro `assert_unsafe_precondition` defined here
   |
   help: a macro with a similar name exists
   |
   8013 -     unsafe_precondition_assert!((buf as usize) % 16 == 0, "buf must be 16-byte aligned");
   8013 +     assert_unsafe_precondition!((buf as usize) % 16 == 0, "buf must be 16-byte aligned");
   |
   help: consider importing this macro
   |
   3    + use kernel::unsafe_precondition_assert;
   |
--
>> error: cannot find macro `unsafe_precondition_assert` in this scope
   --> rust/doctests_kernel_generated.rs:8014:5
   |
   8014 |     unsafe_precondition_assert!(
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   ::: /opt/cross/rustc-1.88.0-bindgen-0.72.0/rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ub_checks.rs:52:1
   |
   52   | macro_rules! assert_unsafe_precondition {
   | --------------------------------------- similarly named macro `assert_unsafe_precondition` defined here
   |
   help: a macro with a similar name exists
   |
   8014 -     unsafe_precondition_assert!(
   8014 +     assert_unsafe_precondition!(
   |
   help: consider importing this macro
   |
   3    + use kernel::unsafe_precondition_assert;
   |

-- 
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:[~2025-08-05  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250731111234.28602-1-ritvikfoss@gmail.com>
2025-08-05  0:17 ` [PATCH v3] rust: kernel: introduce `unsafe_precondition_assert!` macro kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).