Skip to content

Commit b440baf

Browse files
molinari-collaborabbrezillon
authored andcommitted
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: Loïc Molinari <loic.molinari@collabora.com> Fixes: 6e0b1b8 ("drm/gem: Add huge tmpfs mountpoint helpers") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/dri-devel/20251216115605.4babbce0@canb.auug.org.au/ Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Link: https://patch.msgid.link/20251217172404.31216-1-loic.molinari@collabora.com Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
1 parent c570799 commit b440baf

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

drivers/gpu/drm/drm_gem_shmem_helper.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,12 @@ static int __drm_gem_shmem_init(struct drm_device *dev, struct drm_gem_shmem_obj
9494
}
9595

9696
/**
97-
* drm_gem_shmem_init - Initialize an allocated object.
97+
* drm_gem_shmem_init - Initialize an allocated object of the given size
9898
* @dev: DRM device
99-
* @obj: The allocated shmem GEM object.
99+
* @shmem: shmem GEM object to initialize
100+
* @size: Size of the object to initialize
101+
*
102+
* This function initializes an allocated shmem GEM object.
100103
*
101104
* Returns:
102105
* 0 on success, or a negative error code on failure.

include/drm/drm_gem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,11 @@ static inline int drm_gem_huge_mnt_create(struct drm_device *dev,
508508
/**
509509
* drm_gem_get_huge_mnt - Get the huge tmpfs mountpoint used by a DRM device
510510
* @dev: DRM device
511-
511+
*
512512
* This function gets the huge tmpfs mountpoint used by DRM device @dev. A huge
513513
* tmpfs mountpoint is used instead of `shm_mnt` after a successful call to
514514
* drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled.
515-
515+
*
516516
* Returns:
517517
* The huge tmpfs mountpoint in use, NULL otherwise.
518518
*/

0 commit comments

Comments
 (0)