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

drm: Export drm_ioctl_permit to kernel-doc

drm_ioctl_permit is exported but missed a kernel-doc style
documentation.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161228143216.26821-5-krisman@collabora.co.uk

authored by

Gabriel Krisman Bertazi and committed by
Daniel Vetter
5bbf92d3 8caead14

+5 -3
+5 -3
drivers/gpu/drm/drm_ioctl.c
··· 478 478 return err; 479 479 } 480 480 481 - /* 481 + /** 482 482 * drm_ioctl_permit - Check ioctl permissions against caller 483 483 * 484 484 * @flags: ioctl permission flags. 485 485 * @file_priv: Pointer to struct drm_file identifying the caller. 486 486 * 487 487 * Checks whether the caller is allowed to run an ioctl with the 488 - * indicated permissions. If so, returns zero. Otherwise returns an 489 - * error code suitable for ioctl return. 488 + * indicated permissions. 489 + * 490 + * Returns: 491 + * Zero if allowed, -EACCES otherwise. 490 492 */ 491 493 int drm_ioctl_permit(u32 flags, struct drm_file *file_priv) 492 494 {