Skip to content

Commit f46b0e3

Browse files
Danilo Krummrichgregkh
authored andcommitted
rust: drm: remove pin annotations from drm::Device
[ Upstream commit 0c04a81 ] 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: 1e4b889 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9cd486e commit f46b0e3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rust/kernel/drm/device.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ macro_rules! drm_legacy_fields {
5454
///
5555
/// `self.dev` is a valid instance of a `struct device`.
5656
#[repr(C)]
57-
#[pin_data]
5857
pub struct Device<T: drm::Driver> {
5958
dev: Opaque<bindings::drm_device>,
60-
#[pin]
6159
data: T::Data,
6260
}
6361

0 commit comments

Comments
 (0)