From: "Gary Guo" <gary@garyguo.net>
To: "Klara Modin" <klarasmodin@gmail.com>,
"Manuel Ebner" <manuelebner@mailbox.org>
Cc: "Thorsten Leemhuis" <linux@leemhuis.info>,
"Alex Deucher" <alexander.deucher@amd.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
Felix.Kuehling@amd.com, "Mukul Joshi" <mukul.joshi@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Mark Brown" <broonie@kernel.org>,
"Miguel Ojeda" <ojeda@kernel.org>,
rust-for-linux@vger.kernel.org,
"Linux Next Mailing List" <linux-next@vger.kernel.org>
Subject: Re: [PATCH 1/3] drm/gem: Add callback for when handle count goes to 0
Date: Sun, 06 Sep 2026 00:41:43 +0100 [thread overview]
Message-ID: <DL7S4168J4I2.1OPCZMLQX9NA1@garyguo.net> (raw)
In-Reply-To: <apyTR-f8W6Jt7uP5@soda.int.kasm.eu>
On Sat Sep 5, 2026 at 11:25 PM BST, Klara Modin wrote:
> On 2026-09-05 11:31:41 +0200, Manuel Ebner wrote:
>> On Sat, 2026-09-05 at 07:36 +0200, Thorsten Leemhuis wrote:
>> > On 8/31/26 20:33, Alex Deucher wrote:
>> > > From: Mukul Joshi <mukul.joshi@amd.com>
>> > > ...
>> > ...
>> >
>> > > > error[E0063]: missing field `handle_free` in initializer of `drm_gem_object_funcs`
>> > > > --> rust/kernel/drm/gem/mod.rs:265:58
>> > > > |
>> > > > 265 | const OBJECT_FUNCS: bindings::drm_gem_object_funcs = bindings::drm_gem_object_funcs {
>> > > > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `handle_free`
>> > > >
>> > > > error: aborting due to 1 previous error
>> > > >
>> > > > For more information about this error, try `rustc --explain E0063`.
>> > > > make[2]: *** [rust/Makefile:799: rust/kernel.o] Error 1
>> > > > make[1]: *** [/builddir/build/BUILD/kernel-7.3.0-build/kernel-next-20260904/linux-7.3.0-0.0.next.20260904.221.vanilla.fc43.aarch64/Makefile:1442: prepare] Error 2
>> > > > make: *** [Makefile:256: __sub-make] Error 2
>> > """
>> > Full log:
>> > https://download.copr.fedorainfracloud.org/results/@kernel-vanilla/next/fedora-43-aarch64/10951622-next-next-all/builder-live.log.gz
>> >
>> > Reverting this change and 2/3 from this set fixed the problem for me.
>
> That leaves only the documentation without the feature so might as well
> drop 3/3 too in that case?
>
> Otherwise, the following also fixes it for me:
>
> diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs
> index e1ebad77ebe2..847e0ee38863 100644
> --- a/rust/kernel/drm/gem/mod.rs
> +++ b/rust/kernel/drm/gem/mod.rs
> @@ -278,6 +278,7 @@ impl<T: DriverObject, Ctx: DeviceContext> Object<T, Ctx> {
> vm_ops: core::ptr::null_mut(),
> evict: None,
> rss: None,
> + handle_free: None,
IMO this should use
..pin_init::zeroed()
to set all other fields as zero rather than explicitly listing all of them.
Best,
Gary
> };
>
> /// Returns the `Device` that owns this GEM object.
>
>>
>> Verified.
>>
>> Thanks
>> Manuel
>> >
>> > Ciao, Thorsten
>> > > ...
>
> Regards,
> Klara Modin
next prev parent reply other threads:[~2026-09-05 23:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260831183311.1090131-1-alexander.deucher@amd.com>
[not found] ` <20260831183311.1090131-2-alexander.deucher@amd.com>
2026-09-05 5:36 ` [PATCH 1/3] drm/gem: Add callback for when handle count goes to 0 Thorsten Leemhuis
2026-09-05 9:31 ` Manuel Ebner
2026-09-05 22:25 ` Klara Modin
2026-09-05 23:41 ` Gary Guo [this message]
2026-09-08 4:33 ` Thorsten Leemhuis
2026-09-08 16:03 ` Alex Deucher
2026-09-08 17:57 ` Klara Modin
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=DL7S4168J4I2.1OPCZMLQX9NA1@garyguo.net \
--to=gary@garyguo.net \
--cc=Felix.Kuehling@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=broonie@kernel.org \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=klarasmodin@gmail.com \
--cc=linux-next@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=manuelebner@mailbox.org \
--cc=mukul.joshi@amd.com \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.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