From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f74.google.com (mail-ed1-f74.google.com [209.85.208.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A21483064B2 for ; Mon, 26 Jan 2026 09:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769419358; cv=none; b=qNQByyqWi6RoljeB/5syRbya5Wkr6t43b2wtdcFBoTX2ozRML4rp6rvRKHx14g5HL3A60k2U7yLWRRrcWBiYVrWK9KvU73c15cCbPkHGxVHkoGOWjtE4KEeGKxQNOzqdsDrnIWCi6m7lZBEg0g+jd/cdt41oRLQR+gmx2WbJ0RQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769419358; c=relaxed/simple; bh=pwtagrJ6Orntn9rCTwPChBjN7HhxzqpgG+/pftaTDqI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=iSolLdcPYyrmzJbFnIcW/7XvU8sphEh5J/mLg8HENrfRX1unU1jxFZxw0vjhidBGNe8xt3hf2z6C1K4fZRscgxFsAWNpCfL+F4mpd7im9vOgFBedGHJ+9RNBWlifkeUQQZPVbJPjgPFkhs6IcuxhSzQFtenaRC7mdP2sx/rLmbs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ttEBjVfp; arc=none smtp.client-ip=209.85.208.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ttEBjVfp" Received: by mail-ed1-f74.google.com with SMTP id 4fb4d7f45d1cf-64d3c4deb88so277427a12.1 for ; Mon, 26 Jan 2026 01:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769419355; x=1770024155; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=7a6yIcsB2kt1CiNa5tFb4Ajz4/4gpPILl4lTvlfFzgs=; b=ttEBjVfpI5LL+6KotRTfmiQh4LzNSP8Rp/mqYISX5u3qZijrYxwhXoA3ifaNhO0xa6 QohIzjv2b6VEGMUrtETBzrSv1hOepj8cUTM81nQx/EZdX9tjSL95DV79O4h2gSUKNB7a 38wHzd1m7OmJOSI0P4VTOqiAS3H0Yw9rR+oC7vTVJC6XFwg0dVN17s3Zf6SKNV/H5tll WLUs6aorq3UIMLdDv+GVrKsP2LovHfMcM9N2oPvXG8UCh5PUOMBCHNfjIYA5/IE93Wl2 lPkI4WZYKMZEs+3aQxINQ9ieSw33YExNxYgN6bKddnnzZTABfXxUkdVBQD+INRcYTMRZ h1WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769419355; x=1770024155; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=7a6yIcsB2kt1CiNa5tFb4Ajz4/4gpPILl4lTvlfFzgs=; b=RwlZag/sExtSVlM99oFFcr79WVLJ4aoCGOMY8jnWbqn5AGTdw6qefsYJE8TU4xXI+z 3BRwh2NrKvVbuUyF59GWCD4p1ewCA98zbYCqWtqb0XJy30bmciUTdlV7C0vi4Hdi5A19 Dc7txzFjFgv7nWhrhblozpZqeuoBU9uQJunbR+kV9weF1Aow/Lt1ReNL8rWKEBGd7vAp /mwTo+25GzMgvyJjLjhgscMewL6Z+EI2evKM3cY2KbBSRqLo6o0rVNoHdHknfQYsJCBD C6juTMIWLQpsxsuy5BDq4K/9evvE85IGx64xgJsygXOVLanWu2+Bs99CtzkAW16BBIYY nTAA== X-Forwarded-Encrypted: i=1; AJvYcCXOISrXL9dpKh18CFCkfZLeGvtUZRmfRpBuMnm9FiWceZBIFWQIAzAs92pniXHYyod4+jIRkp6091uz2ef2Gg==@vger.kernel.org X-Gm-Message-State: AOJu0Ywb7lGZ4GwOeiDmERj8u87/9yjfK9Ux7P3xbaQEnQ3iE/MDap9r xjvwEdbUqO3CnArjlfPmVNcToPlPFFKnNsKjSIpCdxw64gNYwg3p99zrsyykVIQpGZPNYF09BDp lyzc9oML1bEbka+XamA== X-Received: from edqr22.prod.google.com ([2002:aa7:d596:0:b0:654:3514:7440]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6402:358f:b0:64b:4f44:60ef with SMTP id 4fb4d7f45d1cf-658706e14famr2889920a12.27.1769419355015; Mon, 26 Jan 2026 01:22:35 -0800 (PST) Date: Mon, 26 Jan 2026 09:22:34 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260122144444.265412-1-gary@kernel.org> <202601250701.wXxtGd9z-lkp@intel.com> Message-ID: Subject: Re: [PATCH v2 1/2] rust: task: use `as_char_ptr` instead of `as_ptr().cast()` From: Alice Ryhl To: Tamir Duberstein Cc: kernel test robot , Gary Guo , Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Panagiotis Foliadis , Shankari Anand , FUJITA Tomonori , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 25, 2026 at 03:19:53PM -0500, Tamir Duberstein wrote: > On Sat, Jan 24, 2026 at 6:34=E2=80=AFPM kernel test robot = wrote: > > > > Hi Gary, > > > > kernel test robot noticed the following build warnings: > > > > [auto build test WARNING on 053966c344dbd346e71305f530e91ea77916189f] > > > > url: https://github.com/intel-lab-lkp/linux/commits/Gary-Guo/rust-di= sallow-use-of-CStr-as_ptr/20260122-224657 > > base: 053966c344dbd346e71305f530e91ea77916189f > > patch link: https://lore.kernel.org/r/20260122144444.265412-1-gary%4= 0kernel.org > > patch subject: [PATCH v2 1/2] rust: task: use `as_char_ptr` instead of = `as_ptr().cast()` > > config: x86_64-buildonly-randconfig-004-20260125 (https://download.01.o= rg/0day-ci/archive/20260125/202601250701.wXxtGd9z-lkp@intel.com/config) > > compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87= f0227cb60147a26a1eeb4fb06e3b505e9c7261) > > rustc: rustc 1.88.0 (6b00bc388 2025-06-23) > > reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/arc= hive/20260125/202601250701.wXxtGd9z-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new ve= rsion of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-kbuild-all/202601250701.wXxtGd9z-l= kp@intel.com/ > > > > All warnings (new ones prefixed by >>): > > > > >> warning: unused import: `str::CStrExt` > > --> rust/kernel/task.rs:12:5 > > | > > 12 | str::CStrExt, > > | ^^^^^^^^^^^^ > > | > > =3D note: `#[warn(unused_imports)]` on by default >=20 > Seems like the import needs to be conditional on > CONFIG_DEBUG_ATOMIC_SLEEP. Aside: it can also be `as _` since it isn't > named directly. Can we just import the prelude instead of having a conditional import? Alice