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 0AE8618EFD4; Wed, 11 Sep 2024 14:11:04 +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=1726063865; cv=none; b=eurh65GQ3B5CVqCd24Vh9aKNJlgK6wnbO3S5A1jDkED62frOOwclgdXKCgrtqnPeobVInWcpManWlVjpEm1XsDMrZ+lKosyOraI1YOYdsXevfSbrAaurA2Pn0lkyFwuej2lkBsW6271mPwa/5is4bgCeIiTfg3eAG33tDZWzh2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726063865; c=relaxed/simple; bh=9xwPbs+FW8xyLLdAL+II5yA/9QMzxzCjdfhm7LcTA7o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EYzsnllLiGQrhOOTE1wiYK7n7zWduGZHtosHu9SHKjb9ceMKRQC2mIadgT/eJj0UBt+L/JZhpp8SYO8hoXkk8eNX0tbToa/Aw5WE3MxfnXAWV+Knr4YWBFE89PPpoQOzGaI1mF1e6qoSKy9y1byI3VuvqAGNyAkEvXofa88cdTE= 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=Nu2qpmV2; 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="Nu2qpmV2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726063864; x=1757599864; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9xwPbs+FW8xyLLdAL+II5yA/9QMzxzCjdfhm7LcTA7o=; b=Nu2qpmV28UvUqOlupQDNCoXIPus2fFQWEh5jqly/XN+D8UkUh0a8AhRg JmwlVIKHR/H52VxNDEQiYT3uEnkuPyRQDTJ2TAVY4yFdPU3VIAHUGtjXk Y4d/o2LCvQOnBrR5V9i5XkZDSG4XSR3ZpVb8kd4KqU0eHkJFmfKSO78Dh 2j7e4MyBLeUFqeZsfCHtcya5ir+rhlJXfPAlWz8819vQWFjjVAvZhe8aE jc+WImpxxhSTAyeOW64+CyCiTXD8XCIGEALxoE7zGMVriJyiiQeOLzI9y aFKGS+IQYt72UbscnBqFcEfjxVYBfxj4/YnwIlMq+tnNROrcFYKIseZLw g==; X-CSE-ConnectionGUID: VxgUH5XJT5q+A7menrs3aQ== X-CSE-MsgGUID: H2aPYL8iS/Kd0ZXzojH0NA== X-IronPort-AV: E=McAfee;i="6700,10204,11192"; a="36253990" X-IronPort-AV: E=Sophos;i="6.10,220,1719903600"; d="scan'208";a="36253990" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2024 07:11:00 -0700 X-CSE-ConnectionGUID: 7DWbzs2sQ2Geo2poq3LZog== X-CSE-MsgGUID: 63S8/QGLReKP9PGIwC9Vhw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,220,1719903600"; d="scan'208";a="67001194" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 11 Sep 2024 07:10:57 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1soO3b-0003gi-03; Wed, 11 Sep 2024 14:10:55 +0000 Date: Wed, 11 Sep 2024 22:10:30 +0800 From: kernel test robot To: Alice Ryhl , 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 , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alice Ryhl Subject: Re: [PATCH v3] rust: add global lock support Message-ID: <202409112144.dcfxjqII-lkp@intel.com> References: <20240910-static-mutex-v3-1-5bebd11bdf3b@google.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 In-Reply-To: <20240910-static-mutex-v3-1-5bebd11bdf3b@google.com> Hi Alice, kernel test robot noticed the following build errors: [auto build test ERROR on 93dc3be19450447a3a7090bd1dfb9f3daac3e8d2] url: https://github.com/intel-lab-lkp/linux/commits/Alice-Ryhl/rust-add-global-lock-support/20240910-222519 base: 93dc3be19450447a3a7090bd1dfb9f3daac3e8d2 patch link: https://lore.kernel.org/r/20240910-static-mutex-v3-1-5bebd11bdf3b%40google.com patch subject: [PATCH v3] rust: add global lock support config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240911/202409112144.dcfxjqII-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240911/202409112144.dcfxjqII-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/202409112144.dcfxjqII-lkp@intel.com/ All errors (new ones prefixed by >>): >> error[E0432]: unresolved import `super::__static_lock_ty_MY_COUNTER` --> rust/doctests_kernel_generated.rs:4818:1 | 4818 | / kernel::sync::global_lock! { 4819 | | // SAFETY: Initialized in module initializer before first use. 4820 | | static MY_COUNTER: Mutex = unsafe { uninit }; 4821 | | value: 0; 4822 | | } | |_^ no `__static_lock_ty_MY_COUNTER` in the root | = note: this error originates in the macro `$crate::global_lock` which comes from the expansion of the macro `kernel::sync::global_lock` (in Nightly builds, run with -Z macro-backtrace for more info) -- >> error[E0432]: unresolved import `super::__static_lock_ty_MY_MUTEX` --> rust/doctests_kernel_generated.rs:4886:1 | 4886 | / kernel::sync::global_lock! { 4887 | | // SAFETY: Initialized in module initializer before first use. 4888 | | static MY_MUTEX: Mutex<()> = unsafe { uninit }; 4889 | | value: (); 4890 | | guard: MyGuard; 4891 | | locked_by: LockedByMyMutex; 4892 | | } | |_^ no `__static_lock_ty_MY_MUTEX` in the root | = note: this error originates in the macro `$crate::global_lock` which comes from the expansion of the macro `kernel::sync::global_lock` (in Nightly builds, run with -Z macro-backtrace for more info) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki