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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF2C2C8303D for ; Sat, 5 Jul 2025 09:16:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E7AF10E206; Sat, 5 Jul 2025 09:16:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="oMkdMpG6"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id D299410E0C3; Sat, 5 Jul 2025 09:16:26 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 827804512C; Sat, 5 Jul 2025 09:16:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95C56C4CEE7; Sat, 5 Jul 2025 09:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751706986; bh=M6bMzxg09V9B8u3UKAzQBjLxSHYceHj0mjWXmolGqNw=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=oMkdMpG6H1c3z5A0dIkQpg4Oi3naBJbm+sgnfh179Uylqsp06Uc0K3SC9AqnmmcI/ KPQPJYN3kQ1UbXYP0nXyRmH4raYzrK99Mx8X8JVrY/XFT7v+pJRB5Sflzs8hZLRPkd snCEH3QDE5K2Pnw8wORthL1/h0u3qfZDogPB4Dq/nxBgj3YeTR9VCvo81UaGMh3Z2D sYvGwEXN+U59HOV0ME9e1Y6iRuCyFfVJXFpY9pRdPip2PyI7W5oTHHUlscRJpVaNGV FsGpG0aI3hAg2jCWnhkyVBYOLC75Wzt2d4Fw82hfADOFWugqBzdX+M31PsHaHl9ZUd 3xzQJSeV6pZ2A== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 05 Jul 2025 11:16:20 +0200 Message-Id: Cc: , , , , Subject: Re: [PATCH 6/6] rust: use `core::ffi::CStr` method names From: "Benno Lossin" To: "Tamir Duberstein" , "Rafael J. Wysocki" , "Viresh Kumar" , "Danilo Krummrich" , "David Airlie" , "Simona Vetter" , "Nishanth Menon" , "Stephen Boyd" , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" X-Mailer: aerc 0.20.1 References: <20250704-core-cstr-prepare-v1-0-a91524037783@gmail.com> <20250704-core-cstr-prepare-v1-6-a91524037783@gmail.com> In-Reply-To: <20250704-core-cstr-prepare-v1-6-a91524037783@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri Jul 4, 2025 at 10:14 PM CEST, Tamir Duberstein wrote: > Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by > avoiding methods that only exist on the latter. > > Also avoid `Deref for CStr` as that impl doesn't exist on > `core::ffi::CStr`. > > Link: https://github.com/Rust-for-Linux/linux/issues/1075 > Signed-off-by: Tamir Duberstein Reviewed-by: Benno Lossin --- Cheers, Benno > --- > rust/kernel/error.rs | 2 +- > rust/kernel/str.rs | 20 ++++++++++---------- > 2 files changed, 11 insertions(+), 11 deletions(-)