]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rust: drm: remove pin annotations from drm::Device
authorDanilo Krummrich <dakr@kernel.org>
Thu, 31 Jul 2025 15:48:08 +0000 (17:48 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 11 Aug 2025 21:21:45 +0000 (23:21 +0200)
The #[pin_data] and #[pin] annotations are not necessary for
drm::Device, since we don't use any pin-init macros, but only
__pinned_init() on the impl PinInit<T::Data, Error> argument of
drm::Device::new().

Fixes: 1e4b8896c0f3 ("rust: drm: add device abstraction")
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250731154919.4132-4-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/drm/device.rs

index d19410deaf6c8293421dc46425e36c29c1f76e75..d0a9528121f15c6fc16359e63c99df61f059be09 100644 (file)
@@ -54,10 +54,8 @@ macro_rules! drm_legacy_fields {
 ///
 /// `self.dev` is a valid instance of a `struct device`.
 #[repr(C)]
-#[pin_data]
 pub struct Device<T: drm::Driver> {
     dev: Opaque<bindings::drm_device>,
-    #[pin]
     data: T::Data,
 }