diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-11-14 16:25:33 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-11-15 01:28:18 -0500 |
commit | 43e575fabbaa1cc9e25dd0bb31eb6657ac7092ec (patch) | |
tree | d26ab9c2311baae694146a40c724c93f0dc56e24 | |
parent | f84551e45fd72a248ee69a5b95383b0334a2faac (diff) |
ALSA: core: Fix kernel-doc warnings
Several lines in sound/core.h get the kernel-doc warnings like
./include/sound/core.h:323: warning: No description found for parameter '...'
where we use define like foo(x, args...) and "args" isn't mentioned in
the comments. As an easy workaround, use simple __VA_ARGS__ for VLA
in macros.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/sound/core.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 31079ea5e484..f7d8c10c4c45 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -308,8 +308,8 @@ __printf(4, 5) | |||
308 | void __snd_printk(unsigned int level, const char *file, int line, | 308 | void __snd_printk(unsigned int level, const char *file, int line, |
309 | const char *format, ...); | 309 | const char *format, ...); |
310 | #else | 310 | #else |
311 | #define __snd_printk(level, file, line, format, args...) \ | 311 | #define __snd_printk(level, file, line, format, ...) \ |
312 | printk(format, ##args) | 312 | printk(format, ##__VA_ARGS__) |
313 | #endif | 313 | #endif |
314 | 314 | ||
315 | /** | 315 | /** |
@@ -319,8 +319,8 @@ void __snd_printk(unsigned int level, const char *file, int line, | |||
319 | * Works like printk() but prints the file and the line of the caller | 319 | * Works like printk() but prints the file and the line of the caller |
320 | * when configured with CONFIG_SND_VERBOSE_PRINTK. | 320 | * when configured with CONFIG_SND_VERBOSE_PRINTK. |
321 | */ | 321 | */ |
322 | #define snd_printk(fmt, args...) \ | 322 | #define snd_printk(fmt, ...) \ |
323 | __snd_printk(0, __FILE__, __LINE__, fmt, ##args) | 323 | __snd_printk(0, __FILE__, __LINE__, fmt, ##__VA_ARGS__) |
324 | 324 | ||
325 | #ifdef CONFIG_SND_DEBUG | 325 | #ifdef CONFIG_SND_DEBUG |
326 | /** | 326 | /** |
@@ -330,10 +330,10 @@ void __snd_printk(unsigned int level, const char *file, int line, | |||
330 | * Works like snd_printk() for debugging purposes. | 330 | * Works like snd_printk() for debugging purposes. |
331 | * Ignored when CONFIG_SND_DEBUG is not set. | 331 | * Ignored when CONFIG_SND_DEBUG is not set. |
332 | */ | 332 | */ |
333 | #define snd_printd(fmt, args...) \ | 333 | #define snd_printd(fmt, ...) \ |
334 | __snd_printk(1, __FILE__, __LINE__, fmt, ##args) | 334 | __snd_printk(1, __FILE__, __LINE__, fmt, ##__VA_ARGS__) |
335 | #define _snd_printd(level, fmt, args...) \ | 335 | #define _snd_printd(level, fmt, ...) \ |
336 | __snd_printk(level, __FILE__, __LINE__, fmt, ##args) | 336 | __snd_printk(level, __FILE__, __LINE__, fmt, ##__VA_ARGS__) |
337 | 337 | ||
338 | /** | 338 | /** |
339 | * snd_BUG - give a BUG warning message and stack trace | 339 | * snd_BUG - give a BUG warning message and stack trace |
@@ -383,8 +383,8 @@ static inline bool snd_printd_ratelimit(void) { return false; } | |||
383 | * Works like snd_printk() for debugging purposes. | 383 | * Works like snd_printk() for debugging purposes. |
384 | * Ignored when CONFIG_SND_DEBUG_VERBOSE is not set. | 384 | * Ignored when CONFIG_SND_DEBUG_VERBOSE is not set. |
385 | */ | 385 | */ |
386 | #define snd_printdd(format, args...) \ | 386 | #define snd_printdd(format, ...) \ |
387 | __snd_printk(2, __FILE__, __LINE__, format, ##args) | 387 | __snd_printk(2, __FILE__, __LINE__, format, ##__VA_ARGS__) |
388 | #else | 388 | #else |
389 | __printf(1, 2) | 389 | __printf(1, 2) |
390 | static inline void snd_printdd(const char *format, ...) {} | 390 | static inline void snd_printdd(const char *format, ...) {} |