[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202504090231.9MRSDPoU-lkp@intel.com>
Date: Wed, 9 Apr 2025 02:54:28 +0800
From: kernel test robot <lkp@...el.com>
To: Danilo Krummrich <dakr@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org, Alice Ryhl <aliceryhl@...gle.com>,
Daniel Almeida <daniel.almeida@...labora.com>
Subject: rust/helpers/io.c:12:10: error: passing 'volatile void *' to
parameter of type 'void *' discards qualifiers
Hi Danilo,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0af2f6be1b4281385b618cb86ad946eded089ac8
commit: ce30d94e6855a4f6dc687f658e63c225fcc1d690 rust: add `io::{Io, IoRaw}` base types
date: 4 months ago
config: um-randconfig-002-20250409 (https://download.01.org/0day-ci/archive/20250409/202504090231.9MRSDPoU-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250409/202504090231.9MRSDPoU-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504090231.9MRSDPoU-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from rust/helpers/helpers.c:17:
>> rust/helpers/io.c:12:10: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
iounmap(addr);
^~~~
arch/um/include/asm/io.h:19:42: note: passing argument to parameter 'addr' here
static inline void iounmap(void __iomem *addr)
^
1 error generated.
make[3]: *** [scripts/Makefile.build:194: rust/helpers/helpers.o] Error 1 shuffle=3926512877
>> rust/helpers/io.c:12:10: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
arch/um/include/asm/io.h:19:42: note: passing argument to parameter 'addr' here
make[3]: *** [rust/Makefile:330: rust/bindings/bindings_helpers_generated.rs] Error 101 shuffle=3926512877
make[3]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs'
make[3]: Target 'rust/' not remade because of errors.
make[2]: *** [Makefile:1269: prepare] Error 2 shuffle=3926512877
make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=3926512877
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2 shuffle=3926512877
make: Target 'prepare' not remade because of errors.
vim +12 rust/helpers/io.c
9
10 void rust_helper_iounmap(volatile void __iomem *addr)
11 {
> 12 iounmap(addr);
13 }
14
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists