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/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: 6e0b1b82017b ("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>

authored by

Loïc Molinari and committed by
Boris Brezillon
b440baf3 c5707993

+7 -4
+5 -2
drivers/gpu/drm/drm_gem_shmem_helper.c
··· 94 94 } 95 95 96 96 /** 97 - * drm_gem_shmem_init - Initialize an allocated object. 97 + * drm_gem_shmem_init - Initialize an allocated object of the given size 98 98 * @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. 100 103 * 101 104 * Returns: 102 105 * 0 on success, or a negative error code on failure.
+2 -2
include/drm/drm_gem.h
··· 508 508 /** 509 509 * drm_gem_get_huge_mnt - Get the huge tmpfs mountpoint used by a DRM device 510 510 * @dev: DRM device 511 - 511 + * 512 512 * This function gets the huge tmpfs mountpoint used by DRM device @dev. A huge 513 513 * tmpfs mountpoint is used instead of `shm_mnt` after a successful call to 514 514 * drm_gem_huge_mnt_create() when CONFIG_TRANSPARENT_HUGEPAGE is enabled. 515 - 515 + * 516 516 * Returns: 517 517 * The huge tmpfs mountpoint in use, NULL otherwise. 518 518 */