提交 42f1b310 编写于 作者: D Daniel Vetter

drm/print: Unconfuse kerneldoc

It thinks we want to document the __printf(2,0) annotion. Not sure we
want to teach it about all possible gcc-only flags, hence why I opted
for the cheap trick of just moving it ahead of the kerneldoc.

This is only a problem for static inline functions, since for
non-inline function the kerneldoc is in the .c file, but the special
annotations are all in the header.

Cc'ing kernel-doc maintainers as fyi.

Cc: linux-doc@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Acked-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171214203054.20141-3-daniel.vetter@ffwll.ch
上级 7cdeb37c
...@@ -80,13 +80,13 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf); ...@@ -80,13 +80,13 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf);
__printf(2, 3) __printf(2, 3)
void drm_printf(struct drm_printer *p, const char *f, ...); void drm_printf(struct drm_printer *p, const char *f, ...);
__printf(2, 0)
/** /**
* drm_vprintf - print to a &drm_printer stream * drm_vprintf - print to a &drm_printer stream
* @p: the &drm_printer * @p: the &drm_printer
* @fmt: format string * @fmt: format string
* @va: the va_list * @va: the va_list
*/ */
__printf(2, 0)
static inline void static inline void
drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va) drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册