From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) (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 8F08030649A for ; Mon, 26 Jan 2026 09:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769419359; cv=none; b=omu62m/HcHPx7Pd8hPB1/tyz5gY7s/X1HdWQmiNr65hJ277DsJ8/trKrooC3whxp/00+Xot5Y7VG28ntJDG43+CdlG4GlvfEhpjGYPfy+pgeu0XDpoEjXV1/cIulaQXTumJMGgZ1M9761ALjynx+ItshM2oTuXPBwN43+gOgIEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769419359; c=relaxed/simple; bh=pwtagrJ6Orntn9rCTwPChBjN7HhxzqpgG+/pftaTDqI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=o8CpYydPuaX5BL7H49Tpb+FPgZ1U+Pw7GL5dN3HCuHawF28OcFxfp82lKU13vi31GWJhwGm4l6W1TLXE/eWayZjC84Zw00pM3yov+Rvml/8LGSh/JKhbkcaGgSw9Or/DF5dX12Ii9rpp0jEJC9XnJ9cq69l+AcJrOlPbx1mGVWI= 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.73 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-f73.google.com with SMTP id 4fb4d7f45d1cf-6581a45f30eso404525a12.2 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=lFxddpE0wDCIMUBDP368ctYsFZ5YR5FY+pGLdEUiCFqkWcBAN3Gyyx4Bink9iXyt+d fXsTx3+mvzVfVA33cpDXC2dgg51A0G7RnrWG/Fix5Vpwg84jTDudSwHGoCdH1t26opV0 axrx4lV5mJPFJAK+lrwddrlwtqUu/Kj3UCzITJbTupVlyAZi9v9swPhu+tnpf3Yk6Mwt mcVPptO2J7LJyMfVWZtxtzHU3mzUdR6NNSTMtK40g7WAzXgrYmVUGDwA7nars0qg2Zr2 InBaGPWDL1eUWoJaL/PMPx+FuXRU3zAys+xovvssBtGcv9caYi11/JLRGfhHg8YLfR0y vLDQ== X-Forwarded-Encrypted: i=1; AJvYcCXj16d81IK4rU71KljPlaRuJjh8XkkLTsYzB/rSuyV0qWfFKuinIfARSV8W5WAKoM/y5iirIrJ4AiJ8uI8=@vger.kernel.org X-Gm-Message-State: AOJu0YzXszKAJcQeLUeAps/8vEw+UEVZzdIWx6K2Jwnf2tM9hXSGWCsk 6apjcDxs/EgWsirFJJHMdPM1sye/UDe1xVR8tlOK9SSXJHSCIgX9gzgNyUSYLqohGz1yDW4Bm2Y YuddwheJzbsXfG5CRMA== 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: linux-kernel@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