drm/print: Unconfuse kerneldoc
authorDaniel Vetter <[email protected]>
Thu, 14 Dec 2017 20:30:51 +0000 (21:30 +0100)
committerDaniel Vetter <[email protected]>
Fri, 15 Dec 2017 10:13:39 +0000 (11:13 +0100)
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: [email protected]
Cc: Jonathan Corbet <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
include/drm/drm_print.h

index 5f9932e2246e19629024b979852bc40a3eb63c06..2a4a42e59a478284742d5d3669adb4ba7589abf8 100644 (file)
@@ -80,13 +80,13 @@ void __drm_printfn_debug(struct drm_printer *p, struct va_format *vaf);
 __printf(2, 3)
 void drm_printf(struct drm_printer *p, const char *f, ...);
 
+__printf(2, 0)
 /**
  * drm_vprintf - print to a &drm_printer stream
  * @p: the &drm_printer
  * @fmt: format string
  * @va: the va_list
  */
-__printf(2, 0)
 static inline void
 drm_vprintf(struct drm_printer *p, const char *fmt, va_list *va)
 {