Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/rust-kunit-assertion 15/15] error: literal out of range for `i32`
@ 2026-10-04  4:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-04  4:06 UTC (permalink / raw)
  To: Thomas Weißschuh ; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/rust-kunit-assertion
head:   694018da3a2ec9356bb827e371b124feaad71569
commit: 694018da3a2ec9356bb827e371b124feaad71569 [15/15] kunit: msg
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20261004/202610041200.BnpXhO0V-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261004/202610041200.BnpXhO0V-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/202610041200.BnpXhO0V-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error: literal out of range for `i32`
   --> rust/kernel/drm/gem/shmem.rs:686:39
   |
   686 |         assert_eq!(vmap.read32(0x20), 0xFEDCBA98);
   |                                       ^^^^^^^^^^
   |
   = note: the literal `0xFEDCBA98` (decimal `4275878552`) does not fit into the type `i32` and will become `-19088744i32`
   = help: consider using the type `u32` instead
   = note: `#[deny(overflowing_literals)]` on by default
   help: to use as a negative number (decimal `-19088744`), consider using the type `u32` for the literal and cast it to `i32`
   |
   686 |         assert_eq!(vmap.read32(0x20), 0xFEDCBA98u32 as i32);
   |                                                 ++++++++++

--
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-04  4:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-04  4:06 [thomas-weissschuh:b4/rust-kunit-assertion 15/15] error: literal out of range for `i32` 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