Re: [PATCH] rust: drm: ioctl: fix call to unsafe function
From: Alice Ryhl
Date: Wed Nov 25 2026 - 06:12:38 EST
On Wed, Nov 18, 2026 at 01:32:32PM +0000, Vishal Moola (Fractile) wrote:
> dev is created via an unsafe pointer dereference. Following the
> convention, it should be wrapped in an unsafe block, but it is not.
>
> The compiler only properly lints declare_drm_ioctls! when its defined
> in the same crate as it expands in. Since upstream drivers are all
> separate crates, this is silently ignored.
>
> This has been present since commit 9a69570682b1 ("rust: drm: ioctl:
> Add DRM ioctl abstraction").
>
> Fixes: 9a69570682b1 ("rust: drm: ioctl: Add DRM ioctl abstraction")
> Signed-off-by: Vishal Moola (Fractile) <vishal.moola@xxxxxxxxx>
Applied to drm-rust-next. Thanks!
I stripped the commentary below `--------------------` from the commit
message and worked around a minor conflict due to the `Ioctl` -> `Userspace`
rename.
Alice