Commit b440baf3 authored by Loïc Molinari's avatar Loïc Molinari Committed by Boris Brezillon
Browse files

drm/gem: Fix kerneldoc warnings



Fix incorrect parameters in drm_gem_shmem_init() and missing " *" on
empty lines in drm_gem_get_huge_mnt().

Signed-off-by: default avatarLoïc Molinari <loic.molinari@collabora.com>
Fixes: 6e0b1b82 ("drm/gem: Add huge tmpfs mountpoint helpers")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/dri-devel/20251216115605.4babbce0@canb.auug.org.au/


Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20251217172404.31216-1-loic.molinari@collabora.com


Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent c5707993
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -94,9 +94,12 @@ static int __drm_gem_shmem_init(struct drm_device *dev, struct drm_gem_shmem_obj
}

/**
 * drm_gem_shmem_init - Initialize an allocated object.
 * drm_gem_shmem_init - Initialize an allocated object of the given size
 * @dev: DRM device
 * @obj: The allocated shmem GEM object.
 * @shmem: shmem GEM object to initialize
 * @size: Size of the object to initialize
 *
 * This function initializes an allocated shmem GEM object.
 *
 * Returns:
 * 0 on success, or a negative error code on failure.
+2 −2
Original line number Diff line number Diff line
@@ -508,11 +508,11 @@ static inline int drm_gem_huge_mnt_create(struct drm_device *dev,
/**
 * drm_gem_get_huge_mnt - Get the huge tmpfs mountpoint used by a DRM device
 * @dev: DRM device

 *
 * This function gets the huge tmpfs mountpoint used by DRM device @dev. A huge
 * tmpfs mountpoint is used instead of `shm_mnt` after a successful call to
 * drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.

 *
 * Returns:
 * The huge tmpfs mountpoint in use, NULL otherwise.
 */