From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 953751A08AF; Mon, 26 Jan 2026 22:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769466646; cv=none; b=Q7VxlYcBpHAT64RQUSjq3EWm3P+o2hqRhdjj9P97ahZMT+/qt2nw9k4H66gGH+ZWL9//VmlKrqoOttxKRCpjnUm6TawvZQ1okleD3L9OSkLpERaWzH4Lchv44SLrPKXYsUPiKf9PkH1DbM/gz3jkN/Vefq0x+agQdrmRZydD/nQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769466646; c=relaxed/simple; bh=SDlHPRbnJB1XeB8p7QDzp8qp4nlasKsGSTn2yj84yhk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LOJBqEJ++gZQuTulJ+p2XxCSSO/nRwQ+LiaivPJp5D29xlz05/vDmItwhIduRHAZLAHoiFx8aMlSqrkbid61Hnx482uiGYGbhdsl/yYXDD8ow4F1Wp6VE7AwbhNObQhqk9brzHgdFEKj2Jov6v66SKFIHvC0W8oUXty9oAnQgfQ= 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=kwWVieaK; arc=none smtp.client-ip=192.198.163.10 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="kwWVieaK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769466643; x=1801002643; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SDlHPRbnJB1XeB8p7QDzp8qp4nlasKsGSTn2yj84yhk=; b=kwWVieaK6oIDinCVoON3WUCf1HQdLmN29sH8f+W870VeoHxuspHzIzMU RIOfuodu0XPTlp2XNWYF1VN9tPd1E80hu6cNQg5V+gX5bPq05YKJbddpb lUpsIFDyXP9GBYve8SMvSmHsuRissY3zdlPM7myreYwv4Tp1KvobmHq4C hEcsab4pcOP729pne2zriSqY3ixgGG8Lkg+ovOrWdUu9D6zmoIjWlpa2C 3QU6L5VFVBboL7oOvjy1y99hkDz9yX66lWOfd7UU19r1mArREqmZA7/Fi +dcAiwMsSSJOlfrRlTn5AH05abkUok8XujlcuEfPiasZEqxHpYxnxH2PC g==; X-CSE-ConnectionGUID: c+fJJlQqTqKcuFSm2gRl3Q== X-CSE-MsgGUID: J3N1H/9GTqy8vJeaZp7YJw== X-IronPort-AV: E=McAfee;i="6800,10657,11683"; a="82021428" X-IronPort-AV: E=Sophos;i="6.21,256,1763452800"; d="scan'208";a="82021428" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2026 14:30:42 -0800 X-CSE-ConnectionGUID: Kg8CKuQ1QIO3ci8zzJ95cA== X-CSE-MsgGUID: /mOcDF+HSoStiLCAx97Guw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,256,1763452800"; d="scan'208";a="245407170" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 26 Jan 2026 14:30:37 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vkV6P-00000000XkE-3Sha; Mon, 26 Jan 2026 22:30:33 +0000 Date: Tue, 27 Jan 2026 06:29:48 +0800 From: kernel test robot To: pengfuyuan , Danilo Krummrich , Alice Ryhl , Daniel Almeida , Miguel Ojeda Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Greg Kroah-Hartman , "Rafael J . Wysocki" , David Airlie , Simona Vetter , Helge Deller , Hans de Goede , Thomas Zimmermann , Lee Jones , Sam Ravnborg , Zsolt Kajtar , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, pengfuyuan Subject: Re: [PATCH v1 v1 3/4] rust: fb: add framebuffer driver support Message-ID: <202601270630.FHzCSbVv-lkp@intel.com> References: <20260126081744.781392-4-pengfuyuan@kylinos.cn> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260126081744.781392-4-pengfuyuan@kylinos.cn> Hi pengfuyuan, kernel test robot noticed the following build errors: [auto build test ERROR on rust/rust-next] [also build test ERROR on driver-core/driver-core-linus linus/master v6.19-rc7] [cannot apply to driver-core/driver-core-testing driver-core/driver-core-next next-20260123] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/pengfuyuan/rust-io-mem-add-ioremap_wc-support/20260126-162117 base: https://github.com/Rust-for-Linux/linux rust-next patch link: https://lore.kernel.org/r/20260126081744.781392-4-pengfuyuan%40kylinos.cn patch subject: [PATCH v1 v1 3/4] rust: fb: add framebuffer driver support config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260127/202601270630.FHzCSbVv-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/20260127/202601270630.FHzCSbVv-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/202601270630.FHzCSbVv-lkp@intel.com/ All errors (new ones prefixed by >>): >> error[E0308]: mismatched types --> rust/kernel/fb/device.rs:307:23 | 307 | fb_read: Some(Self::read_callback), | ---- ^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(_, *mut u8, _, _) -> _` found fn item `extern "C" fn(_, *mut i8, _, _) -> _ {fb::device::Device::::read_callback}` help: the type constructed contains `extern "C" fn(*mut fb_info, *mut i8, usize, *mut i64) -> isize {fb::device::Device::::read_callback}` due to the type of the argument passed --> rust/kernel/fb/device.rs:307:18 | 307 | fb_read: Some(Self::read_callback), | ^^^^^-------------------^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /opt/cross/rustc-1.88.0-bindgen-0.72.1/rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:597:5 | 597 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ -- >> error[E0308]: mismatched types --> rust/kernel/fb/device.rs:308:24 | 308 | fb_write: Some(Self::write_callback), | ---- ^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item | | | arguments to this enum variant are incorrect | = note: expected fn pointer `unsafe extern "C" fn(_, *const u8, _, _) -> _` found fn item `extern "C" fn(_, *const i8, _, _) -> _ {fb::device::Device::::write_callback}` help: the type constructed contains `extern "C" fn(*mut fb_info, *const i8, usize, *mut i64) -> isize {fb::device::Device::::write_callback}` due to the type of the argument passed --> rust/kernel/fb/device.rs:308:19 | 308 | fb_write: Some(Self::write_callback), | ^^^^^--------------------^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /opt/cross/rustc-1.88.0-bindgen-0.72.1/rustup/toolchains/1.88.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:597:5 | 597 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), | ^^^^ -- >> error[E0308]: mismatched types --> rust/kernel/fb/io.rs:32:13 | 30 | bindings::fb_io_read( | -------------------- arguments to this function are incorrect 31 | device.as_raw(), 32 | buf.as_mut_ptr() as *mut core::ffi::c_char, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8` | = note: expected raw pointer `*mut u8` found raw pointer `*mut i8` note: function defined here --> rust/bindings/bindings_generated.rs:123562:12 | 123562 | pub fn fb_io_read( | ^^^^^^^^^^ -- >> error[E0308]: mismatched types --> rust/kernel/fb/io.rs:58:13 | 56 | bindings::fb_io_write( | --------------------- arguments to this function are incorrect 57 | device.as_raw(), 58 | buf.as_ptr() as *const core::ffi::c_char, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` | = note: expected raw pointer `*const u8` found raw pointer `*const i8` note: function defined here --> rust/bindings/bindings_generated.rs:123570:12 | 123570 | pub fn fb_io_write( | ^^^^^^^^^^^ -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki