[PATCH v3 01/11] drm/panic: use `core::ffi::CStr` method names
Jocelyn Falempe
jfalempe at redhat.com
Thu Aug 14 06:41:36 UTC 2025
On 13/08/2025 17:41, Tamir Duberstein wrote:
> Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
> avoid methods that only exist on the latter.
Thanks, it looks good to me.
Acked-by: Jocelyn Falempe <jfalempe at redhat.com>
>
> Link: https://github.com/Rust-for-Linux/linux/issues/1075
> Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Reviewed-by: Alice Ryhl <aliceryhl at google.com>
> Reviewed-by: Benno Lossin <lossin at kernel.org>
> Acked-by: Danilo Krummrich <dakr at kernel.org>
> Signed-off-by: Tamir Duberstein <tamird at gmail.com>
> ---
> drivers/gpu/drm/drm_panic_qr.rs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_panic_qr.rs b/drivers/gpu/drm/drm_panic_qr.rs
> index 09a9b452e8b7..10bc5bb16992 100644
> --- a/drivers/gpu/drm/drm_panic_qr.rs
> +++ b/drivers/gpu/drm/drm_panic_qr.rs
> @@ -948,7 +948,7 @@ fn draw_all(&mut self, data: impl Iterator<Item = u8>) {
> // nul-terminated string.
> let url_cstr: &CStr = unsafe { CStr::from_char_ptr(url) };
> let segments = &[
> - &Segment::Binary(url_cstr.as_bytes()),
> + &Segment::Binary(url_cstr.to_bytes()),
> &Segment::Numeric(&data_slice[0..data_len]),
> ];
> match EncodedMsg::new(segments, tmp_slice) {
>
More information about the dri-devel
mailing list