* [rust:staging/rust-pci 7/11] rust/helpers/io.c:12:17: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers
@ 2024-12-12 21:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-12 21:38 UTC (permalink / raw)
To: Danilo Krummrich
Cc: llvm, oe-kbuild-all, Miguel Ojeda, Alice Ryhl, Daniel Almeida
tree: https://github.com/Rust-for-Linux/linux staging/rust-pci
head: 255cfcd4635cfca2732843557eace438918e6bec
commit: 685c3110658f6b63d93efbcab74763b7e486a333 [7/11] rust: add `io::{Io, IoRaw}` base types
config: um-randconfig-002-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130534.HFYPTOBJ-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130534.HFYPTOBJ-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/202412130534.HFYPTOBJ-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from rust/helpers/helpers.c:17:
>> rust/helpers/io.c:12:17: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
return 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=3716242076
>> rust/helpers/io.c:12:17: 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:317: rust/bindings/bindings_helpers_generated.rs] Error 101 shuffle=3716242076
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=3716242076
make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=3716242076
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2 shuffle=3716242076
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 return iounmap(addr);
13 }
14
--
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:[~2024-12-12 21:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 21:38 [rust:staging/rust-pci 7/11] rust/helpers/io.c:12:17: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers 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