Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vram: remove DRM_VRAM_MM_FILE_OPERATIONS from docs

Commit 02f64b2d8605 ("drm/vram: drop DRM_VRAM_MM_FILE_OPERATIONS") dropped
DRM_VRAM_MM_FILE_OPERATIONS in preference for using DEFINE_DRM_GEM_OPS.

However, it was not dropped from the kernel docs.

Use DEFINE_DRM_GEM_OPS in the illustration on how to define a
struct file_operations for such a DRM driver and remove any reference
to DRM_VRAM_MM_FILE_OPERATIONS.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 02f64b2d8605 ("drm/vram: drop DRM_VRAM_MM_FILE_OPERATIONS")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260408-drm_gem_vram_helper_docs-v1-1-4d667a768f75@igalia.com

authored by

Thadeu Lima de Souza Cascardo and committed by
Thomas Zimmermann
4aa0deae bd64240d

+2 -5
+2 -5
drivers/gpu/drm/drm_gem_vram_helper.c
··· 49 49 * To initialize the VRAM helper library call drmm_vram_helper_init(). 50 50 * The function allocates and initializes an instance of &struct drm_vram_mm 51 51 * in &struct drm_device.vram_mm . Use &DRM_GEM_VRAM_DRIVER to initialize 52 - * &struct drm_driver and &DRM_VRAM_MM_FILE_OPERATIONS to initialize 52 + * &struct drm_driver and &DEFINE_DRM_GEM_FOPS to define 53 53 * &struct file_operations; as illustrated below. 54 54 * 55 55 * .. code-block:: c 56 56 * 57 - * struct file_operations fops ={ 58 - * .owner = THIS_MODULE, 59 - * DRM_VRAM_MM_FILE_OPERATION 60 - * }; 57 + * DEFINE_DRM_GEM_FOPS(fops); 61 58 * struct drm_driver drv = { 62 59 * .driver_feature = DRM_ ... , 63 60 * .fops = &fops,