From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FED612B63 for ; Sun, 23 Feb 2025 02:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740279045; cv=none; b=ZQOKAP+sN6HfsqZIB2RkE5ISJrcc6Je3O2vJ7fkHg0aOm07BVGlO2dRvj4wru41WEY0Tors5QfIdaBSPRyYhnAdMuKlbHpUOx3BdN18nSnXXuuiC8UIuEDu2KDpunJe4QnqGN39ADvGRWfDp3eN4oQWTyejYizGe2M3eM+svoQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740279045; c=relaxed/simple; bh=4bapoUa3z5kP8XByBORFOsPXb2dQ02c6LZ4udsbBB+g=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=AsOq3Bv2fHTfhInhTFlZK6YY8L7dIY50m1LW8YDpxqHLl8E+KrRetBUd4CGTjq9oDYmQGHbL2jYs5Iu2gDU6X2E9TaVO0Ez0P3W1dlf6wlgklSw2NgZENPUp7DlfL1IjLnMPAlJVvqMSO0q1GDSFCNc0vYwl48l+qeJbAHN6GbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dl63xP+6; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dl63xP+6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740279043; x=1771815043; h=date:from:to:cc:subject:message-id:mime-version; bh=4bapoUa3z5kP8XByBORFOsPXb2dQ02c6LZ4udsbBB+g=; b=dl63xP+65Ub+ZlfF3D+BnZ3EGzqYKCEJg+lidoXynJiBzqJEBYxxIjZ9 6xClBBqzFULXpLEAub1UJtSa5lc3gvCMMrhonl+Y/eo8sAZ6l9+MNQGTP 9uuSh0JPYZRpU8unDrky7vo7yK0cPWWcYbYE6IZs0fB+0jRuNztNlqrRD hXpppYtLSOHZAzmRA1TAqzGRT8Q2ZllWEyhCyA8ZSY0UP7bUhkkA0PK5u 3mkokNsuU6Q86VkBGy52fZllTrJ64FI7sTMi6JWqdwcFu1Cw+s3wXP6vA nki14E4bEr8vgxccubtEiqCRbJ3SlViFPdRx2If9+m2AVJspDzfs5Osrd w==; X-CSE-ConnectionGUID: bng04GXfSMee2nR6Blbsfg== X-CSE-MsgGUID: Tto74qq9St6Wrb4PZIaB9g== X-IronPort-AV: E=McAfee;i="6700,10204,11353"; a="44970567" X-IronPort-AV: E=Sophos;i="6.13,308,1732608000"; d="scan'208";a="44970567" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2025 18:50:43 -0800 X-CSE-ConnectionGUID: Qh1bAEI2TweUvEVWQTH1TA== X-CSE-MsgGUID: YRD8cyHGQ4KYF7PO7uBheg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,308,1732608000"; d="scan'208";a="115689239" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa006.jf.intel.com with ESMTP; 22 Feb 2025 18:50:41 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tm24k-00075C-26; Sun, 23 Feb 2025 02:50:38 +0000 Date: Sun, 23 Feb 2025 10:50:28 +0800 From: kernel test robot To: Danilo Krummrich Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Alice Ryhl , Daniel Almeida Subject: rust/helpers/io.c:12:10: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers Message-ID: <202502231029.mBK5dkZJ-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Danilo, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5cf80612d3f72c46ad53ef5042b4c609c393122f commit: ce30d94e6855a4f6dc687f658e63c225fcc1d690 rust: add `io::{Io, IoRaw}` base types date: 9 weeks ago config: um-randconfig-r113-20250223 (https://download.01.org/0day-ci/archive/20250223/202502231029.mBK5dkZJ-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 204dcafec0ecf0db81d420d2de57b02ada6b09ec) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250223/202502231029.mBK5dkZJ-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202502231029.mBK5dkZJ-lkp@intel.com/ All errors (new ones prefixed by >>): *** *** Rust bindings generator 'bindgen' < 0.69.5 together with libclang >= 19.1 *** may not work due to a bug (https://github.com/rust-lang/rust-bindgen/pull/2824), *** unless patched (like Debian's). *** Your bindgen version: 0.65.1 *** Your libclang version: 21.0.0 *** *** *** Please see Documentation/rust/quick-start.rst for details *** on how to set up the Rust support. *** In file included from rust/helpers/helpers.c:10: In file included from rust/helpers/blk.c:3: In file included from include/linux/blk-mq.h:5: In file included from include/linux/blkdev.h:9: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:8: In file included from include/linux/cacheflush.h:5: In file included from arch/um/include/asm/cacheflush.h:4: In file included from arch/um/include/asm/tlbflush.h:9: In file included from include/linux/mm.h:2223: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ 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] 12 | iounmap(addr); | ^~~~ arch/um/include/asm/io.h:19:42: note: passing argument to parameter 'addr' here 19 | static inline void iounmap(void __iomem *addr) | ^ 1 warning and 1 error generated. make[3]: *** [scripts/Makefile.build:194: rust/helpers/helpers.o] Error 1 clang diag: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] >> 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 clang diag: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] make[3]: *** [rust/Makefile:330: rust/bindings/bindings_helpers_generated.rs] Error 101 make[3]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs' clang diag: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] make[3]: Target 'rust/' not remade because of errors. make[2]: *** [Makefile:1269: prepare] Error 2 make[1]: *** [Makefile:251: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:251: __sub-make] Error 2 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