linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miguel Ojeda <ojeda@kernel.org>
To: tamird@kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>,
	Miguel Ojeda <ojeda@kernel.org>,
	Alex Gaynor <alex.gaynor@gmail.com>
Cc: Liam.Howlett@oracle.com, a.hindborg@kernel.org,
	airlied@gmail.com, aliceryhl@google.com, arve@android.com,
	axboe@kernel.dk, bhelgaas@google.com, bjorn3_gh@protonmail.com,
	boqun.feng@gmail.com, brauner@kernel.org, broonie@kernel.org,
	cmllamas@google.com, dri-devel@lists.freedesktop.org,
	gary@garyguo.net, jack@suse.cz, joelagnelf@nvidia.com,
	justinstitt@google.com, kwilczynski@kernel.org,
	leitao@debian.org, lgirdwood@gmail.com,
	linux-block@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pci@vger.kernel.org, linux-pm@vger.kernel.org,
	llvm@lists.linux.dev, longman@redhat.com,
	lorenzo.stoakes@oracle.com, lossin@kernel.org, maco@android.com,
	mcgrof@kernel.org, mingo@redhat.com, mmaurer@google.com,
	morbo@google.com, mturquette@baylibre.com, nathan@kernel.org,
	nick.desaulniers+lkml@gmail.com, nm@ti.com, peterz@infradead.org,
	russ.weight@linux.dev, rust-for-linux@vger.kernel.org,
	sboyd@kernel.org, simona@ffwll.ch, surenb@google.com,
	tamird@gmail.com, tkjos@android.com, tmgross@umich.edu,
	urezki@gmail.com, vbabka@suse.cz, vireshk@kernel.org,
	viro@zeniv.linux.org.uk, will@kernel.org,
	patches@lists.linux.dev
Subject: [PATCH] samples: rust: debugfs: use `core::ffi::CStr` method names
Date: Sun, 19 Oct 2025 23:30:49 +0200	[thread overview]
Message-ID: <20251019213049.2060970-1-ojeda@kernel.org> (raw)
In-Reply-To: <20251018-cstr-core-v18-7-9378a54385f8@gmail.com>

Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoiding methods that only exist on the latter.

This backslid in commit d4a5d397c7fb ("samples: rust: Add scoped debugfs
sample driver").

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
 samples/rust/rust_debugfs_scoped.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/rust/rust_debugfs_scoped.rs b/samples/rust/rust_debugfs_scoped.rs
index b0c4e76b123e..eb870e9986b8 100644
--- a/samples/rust/rust_debugfs_scoped.rs
+++ b/samples/rust/rust_debugfs_scoped.rs
@@ -38,7 +38,7 @@ fn remove_file_write(
     mod_data
         .devices
         .lock()
-        .retain(|device| device.name.as_bytes() != to_remove.as_bytes());
+        .retain(|device| device.name.to_bytes() != to_remove.to_bytes());
     Ok(())
 }
 

base-commit: b214b442f2fa78aad04ebe1b5cad2c1d94120cb7
-- 
2.51.0


  reply	other threads:[~2025-10-19 21:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-18 19:16 [RESEND PATCH v18 00/16] rust: replace kernel::str::CStr w/ core::ffi::CStr Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 01/16] samples: rust: platform: remove trailing commas Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 02/16] rust_binder: remove trailing comma Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 03/16] rust_binder: use `kernel::fmt` Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 04/16] rust_binder: use `core::ffi::CStr` method names Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 05/16] rnull: use `kernel::fmt` Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 06/16] rust: alloc: " Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 07/16] rust: debugfs: " Tamir Duberstein
2025-10-19 21:30   ` Miguel Ojeda [this message]
2025-10-18 19:16 ` [RESEND PATCH v18 08/16] rust: pci: " Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 09/16] rust: remove spurious `use core::fmt::Debug` Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 10/16] rust: opp: use `CStr::as_char_ptr` Tamir Duberstein
2025-10-19 21:27   ` Miguel Ojeda
2025-10-18 19:16 ` [RESEND PATCH v18 11/16] rust: opp: fix broken rustdoc link Tamir Duberstein
2025-10-19 21:25   ` Miguel Ojeda
2025-10-22  3:57     ` Viresh Kumar
2025-10-18 19:16 ` [RESEND PATCH v18 12/16] rust: configfs: use `CStr::as_char_ptr` Tamir Duberstein
2025-10-19 21:25   ` Miguel Ojeda
2025-10-20 12:40   ` Andreas Hindborg
2025-10-18 19:16 ` [RESEND PATCH v18 13/16] rust: regulator: " Tamir Duberstein
2025-10-19 21:25   ` Miguel Ojeda
2025-10-20 12:28     ` Mark Brown
2025-10-20 15:39   ` Daniel Almeida
2025-10-18 19:16 ` [RESEND PATCH v18 14/16] rust: clk: " Tamir Duberstein
2025-10-19 21:25   ` Miguel Ojeda
2025-10-18 19:16 ` [RESEND PATCH v18 15/16] rust: support formatting of foreign types Tamir Duberstein
2025-10-18 19:16 ` [RESEND PATCH v18 16/16] rust: replace `CStr` with `core::ffi::CStr` Tamir Duberstein
2025-10-18 19:24 ` [RESEND PATCH v18 00/16] rust: replace kernel::str::CStr w/ core::ffi::CStr Miguel Ojeda
2025-10-19 23:04 ` Miguel Ojeda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251019213049.2060970-1-ojeda@kernel.org \
    --to=ojeda@kernel.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=a.hindborg@kernel.org \
    --cc=airlied@gmail.com \
    --cc=alex.gaynor@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=arve@android.com \
    --cc=axboe@kernel.dk \
    --cc=bhelgaas@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=brauner@kernel.org \
    --cc=broonie@kernel.org \
    --cc=cmllamas@google.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gary@garyguo.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=jack@suse.cz \
    --cc=joelagnelf@nvidia.com \
    --cc=justinstitt@google.com \
    --cc=kwilczynski@kernel.org \
    --cc=leitao@debian.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=longman@redhat.com \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=lossin@kernel.org \
    --cc=maco@android.com \
    --cc=mcgrof@kernel.org \
    --cc=mingo@redhat.com \
    --cc=mmaurer@google.com \
    --cc=morbo@google.com \
    --cc=mturquette@baylibre.com \
    --cc=nathan@kernel.org \
    --cc=nick.desaulniers+lkml@gmail.com \
    --cc=nm@ti.com \
    --cc=patches@lists.linux.dev \
    --cc=peterz@infradead.org \
    --cc=rafael@kernel.org \
    --cc=russ.weight@linux.dev \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=surenb@google.com \
    --cc=tamird@gmail.com \
    --cc=tamird@kernel.org \
    --cc=tkjos@android.com \
    --cc=tmgross@umich.edu \
    --cc=urezki@gmail.com \
    --cc=vbabka@suse.cz \
    --cc=vireshk@kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).