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 A21C93064B3 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=vFbAxwVE0X0vC6OuRdO6LGMpcsutrizlFYHwf6LpMnSeLJCeU8iuXSHZ41lEpBNmtv98Lk64np84wF4pHSKC3G5uSE3FsnBZSMiH6UM/OekA0WAyyNJT6d1iF8A+ll4PKoOoj19xO+tzPfsMFoSwl4gBJpJ8RiEO9ioRIZcqeYA= 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=09CBhijv; 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="09CBhijv" Received: by mail-ed1-f74.google.com with SMTP id 4fb4d7f45d1cf-6581b412518so411405a12.3 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=lists.linux.dev; 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=09CBhijvf3dRDSUNSd9nVxzIRs7KePAlfFHrslLj2JL2k1dXN2lSZ8tT6QjBQnboho 2kE+1PoLdGuJv0o3nlaCCrOgkAqLMM570XSgb72vNIZm3TFCM9AUrtow1/QBTJya+0+Y Vnp/H/UTmRUgg9YupCE9OuTa3GhzYtGyABBJZSsWVRMge/emF51s+xcVWLeNi4ulMm4u 84tsG3WwksfeSx6FmqYJnC3hoyQHlwUyftF4G9Atuqm4NCStPNB6CFqP0WrK6lPsyA8i BYIjsDHDH4B3GnGWopOuqH74BB83yVFLvkchVGrpFA8hD88BiLk7hpYk7WYbuXCfVZlo ghBg== 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=oRvSzh8PpNZYegrFXRbzROozvlOMMuEMtQfDbzWmXl2NhnWwVhrji79k+rdtdkRvp2 Q4QoNalc89bQOvm05K6ftmJjIFnkeGzeFg2dwMpIKt6tKOG0omKjAQVY6u7859bu+mm8 ckdC6riqtzgKayG7FGngtwwBO5D/4uishNALhqqO60uspTT4DpPUUDmxtEgLCUcoRfQx 7trXJ0ulrpjDYg8U20Cs+YXnL24wt00W3eMRMVeI0wL3LjQlN6uiCseMns+jOBPThHAq QlnVvV4qvAeT7VNGGljrLyWVsIMZ+jJxotUcK1IscaKcUgZyK9glQobyXVZ5yCyr/Zdm T+0g== X-Forwarded-Encrypted: i=1; AJvYcCX4hooFfFJ/UN+biV+D7H24pkMbjhawIgaPwjfGMkdKV6JJL92KKeUUg3jiAcBKNT4j9Lpo@lists.linux.dev X-Gm-Message-State: AOJu0YxsiRbbH64cYfYuMLFuaVs20BnfcaA3zh5/kPe8KGsf7uHdZNIC 9nsqmUqlaCult03PELK/cbebn8e/zKt1KTRsFD1t+qNe8LNOkeIC/UWnspV6evJmSwFUts66PLj hv1UJsjbAEOX7lX8lHg== 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: llvm@lists.linux.dev 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