Re: [PATCH 0/2] drm/virtio: Avoid struct drm_gem_object.import_attach

2025-04-16 Thread Dmitry Osipenko
On 4/14/25 16:11, Thomas Zimmermann wrote: > Avoid the use of struct drm_gem_object.import_attach to get the > object's dma-buf or test for an imported buffer. The import_attach > field in struct drm_gem_object is an artifact of the import process, > but should not be used otherwise. > > The helpe

[PATCH 0/2] drm/virtio: Avoid struct drm_gem_object.import_attach

2025-04-14 Thread Thomas Zimmermann
Avoid the use of struct drm_gem_object.import_attach to get the object's dma-buf or test for an imported buffer. The import_attach field in struct drm_gem_object is an artifact of the import process, but should not be used otherwise. The helper drm_gem_is_imported() tests if a GEM object's buffer