From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C391C7EE31 for ; Thu, 26 Jun 2025 14:06:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 933D46B009C; Thu, 26 Jun 2025 10:06:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 90C206B009D; Thu, 26 Jun 2025 10:06:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 848856B009E; Thu, 26 Jun 2025 10:06:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 73E586B009C for ; Thu, 26 Jun 2025 10:06:27 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2579E57767 for ; Thu, 26 Jun 2025 14:06:27 +0000 (UTC) X-FDA: 83597726814.14.C339585 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by imf07.hostedemail.com (Postfix) with ESMTP id 782D140016 for ; Thu, 26 Jun 2025 14:06:24 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="lon8dk/m"; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1750946785; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BDBXwEwqUjKtNSGidTD+eNYk7dVLy6YR/m8klfVTcmc=; b=iiJamWS17rLoTswrMTP8BMCDp/0t7Y/zxv6GGlX5b4bj3AKahOP7aG8yxOJ6H5KsyvaBEE 6MSOUiae9ufettDj/lWEbjnL4cuBs7ZpxLicIi9N+g46r20CHKbBtzyXWT0aYOiVFJl+A7 SiTk3+l65/kbBckiqCzsP7+CV+y92Hk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1750946785; a=rsa-sha256; cv=none; b=pW6NEu6/0Ih/1UtazasHmGsv46PkT+LzI6ZkcDpr5s+EQ02UsWt07r3SEronf1Km3MiDqR Z+FiVS+wJWR/yI4zMFZNBEyEb/AiWI4WLmmWtSAqRkNvUcu6MAhrQBqzw2plFqisbZTwDL Wnnr7TTagxngfECd6YnwNbXcyXrbqKg= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="lon8dk/m"; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750946784; x=1782482784; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Mt7BtbJFxS2gqd382zSW9v2VN1COd4VJX/h7bp6PzLY=; b=lon8dk/mNm+658l9MeeNZTSelMy9mV3Vq7uT07S62LfEb8jin0w/vEv0 VMsTlLOuLdNE2luuOVQJoNUbj1y//DVbUlZ7mZS3/VOsDhgYmff6+5sUY OMdhHB7990GiH/12XStu+6NRXud2iaMa3+pbKxTJeK48P0qNgKLbRc95x J+7AR2zXCz5mva7IYGnkXKO4dbAGEVoSHJK8kVT7J33u2EE5Fu5cN24Hw 50+hF7G+giJaolGUmmrbzHmaNd1T0Ziok4SuYWw5xq8h844alsbgDRZuo xyql/CZUrWezHqPqNncNMpeF4hXg2fkkLVZh1oxiLhpnKcYNrM6gqqKG6 A==; X-CSE-ConnectionGUID: +udFTO4aQKSaMLy+9MiQ7g== X-CSE-MsgGUID: jvTrlxK8Tz+bqQXtihuzug== X-IronPort-AV: E=McAfee;i="6800,10657,11475"; a="53185248" X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="53185248" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2025 07:06:23 -0700 X-CSE-ConnectionGUID: U6dQu3wtQCqNIW2z0yZ0Qw== X-CSE-MsgGUID: P7MKnsSGRUeiFIVKUA3rYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="157093519" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 26 Jun 2025 07:06:18 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uUnF1-000U7m-2W; Thu, 26 Jun 2025 14:06:15 +0000 Date: Thu, 26 Jun 2025 22:05:44 +0800 From: kernel test robot To: Mitchell Levy , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Andreas Hindborg , Alice Ryhl , Trevor Gross , Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter , Danilo Krummrich , Benno Lossin Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Mitchell Levy Subject: Re: [PATCH 1/5] rust: percpu: introduce a rust API for per-CPU variables Message-ID: <202506262153.vo9sMbM8-lkp@intel.com> References: <20250624-rust-percpu-v1-1-9c59b07d2a9c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250624-rust-percpu-v1-1-9c59b07d2a9c@gmail.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 782D140016 X-Stat-Signature: fndfhcqu9sh47b6t75f7m14ygt8cxj3g X-Rspam-User: X-HE-Tag: 1750946784-546928 X-HE-Meta: U2FsdGVkX1/5fgUZBOGbZ8zQqratbginPwcCpncHuI0Ro895MqwgIhRLfW/waxTwYuGfBgrhC2KdZ2vzX1mgareNwR3aWzEIFr8Af/qp/UCvbaLqTzMu8xAO/YinCYuWSfOnWLbXnUhIStIU/gZasFpX5Dw2Jf3G8tnT+dPNEBd+1+YYpTriIgJzofAq/iovS4iZmUUsm177FruSdYJnMfZ/aTqFYBJGJLqIZWQXXHJkyaak0BVrHK37Hcd6hMcD8DQ+YxgE+xM8xnz0lZjqEYvvT7IdwwT2CuUphvTywTgx9mFm9tASh2e6BurBXl7zWgwGM7TpnDGD72VQAe2RY393jwHtGuzCBjx93Nq+zmpr8HhmkSv7y9nWxSWhAmN9aToqT9Jjvohzdol9EfdcQza3GsCxPsUY44FpbHSTSbf4WNEqSxAxe0HoJ+rKa8ewcnWpE2PtmqscHDK2XTXQqrxN1dZ/Rd9O+dqM7mdf/W9evzUUzMFC+T50IMpeffIvsTKB/W1P8mCQJV2/vd0kRyyCuviMNK4wHg90XeqfqkypErT9ddujLaSCAG03vof55xOZqJxK3v/i/D0XFdN10nakQYc0boOnu7VUcjYJkmqY1fM+Nmt26bs+iKTTkMFycy7fXfwKmvhBTZEKGjEcn73Ket+prPRwhTBKiadiSK06KGzQlOTi+ai8pXmjH+bGMAoDUqQHOXh/waEe+uOy63s6QnfGTFUeIB2q70YP+s5qWyxs+IkqZvT0KHwGNo+0tp7l5VoyT+reNOJtaJ05O8uptt+rqxOiyGyfDX4qqohDKbiymu3x0nQDNrgBBJ9sHfQ8yw6eCdi5FRDDiN9pd26abw+2UN0XkHvB7h5HRCHHPT2gvdELKgx8MD6aPbXENsUFoupMMx9/8J3dDTm6Lx15QLnQCD8/y+cdJ0HJrIiu8Yip/RARhx1QN9DGvIfE X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Mitchell, kernel test robot noticed the following build errors: [auto build test ERROR on 19272b37aa4f83ca52bdf9c16d5d81bdd1354494] url: https://github.com/intel-lab-lkp/linux/commits/Mitchell-Levy/rust-percpu-introduce-a-rust-API-for-per-CPU-variables/20250625-061219 base: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 patch link: https://lore.kernel.org/r/20250624-rust-percpu-v1-1-9c59b07d2a9c%40gmail.com patch subject: [PATCH 1/5] rust: percpu: introduce a rust API for per-CPU variables config: x86_64-buildonly-randconfig-004-20250626 (https://download.01.org/0day-ci/archive/20250626/202506262153.vo9sMbM8-lkp@intel.com/config) compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082) rustc: rustc 1.78.0 (9b00956e5 2024-04-29) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250626/202506262153.vo9sMbM8-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/202506262153.vo9sMbM8-lkp@intel.com/ All errors (new ones prefixed by >>): >> error[E0425]: cannot find function `align_of` in this scope --> rust/kernel/percpu.rs:106:65 | 106 | let ptr: *mut T = unsafe { alloc_percpu(size_of::(), align_of::()) } as *mut T; | ^^^^^^^^ not found in this scope | help: consider importing this function | 6 + use core::mem::align_of; | -- >> error: use of extern static is unsafe and requires unsafe block (error E0133) --> rust/kernel/percpu.rs:71:53 | 71 | let this_cpu_off_pcpu = core::ptr::addr_of!(this_cpu_off); | ^^^^^^^^^^^^ use of extern static | = note: for more information, see issue #71668 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior note: an unsafe function restricts its caller, but its body is safe by default --> rust/kernel/percpu.rs:70:5 | 70 | pub unsafe fn get_ref(&self) -> &mut T { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: requested on the command line with `-D unsafe-op-in-unsafe-fn` -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki