aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index 1a4ff0bdcf6a..938c36a0e874 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -28,6 +28,7 @@
28#include <linux/rwsem.h> /* struct rw_semaphore */ 28#include <linux/rwsem.h> /* struct rw_semaphore */
29#include <linux/pm.h> /* pm_message_t */ 29#include <linux/pm.h> /* pm_message_t */
30#include <linux/device.h> 30#include <linux/device.h>
31#include <linux/stringify.h>
31 32
32/* number of supported soundcards */ 33/* number of supported soundcards */
33#ifdef CONFIG_SND_DYNAMIC_MINORS 34#ifdef CONFIG_SND_DYNAMIC_MINORS
@@ -405,11 +406,14 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
405 dump_stack(); \ 406 dump_stack(); \
406} while (0) 407} while (0)
407 408
409#define snd_BUG_ON(cond) WARN((cond), "BUG? (%s)\n", __stringify(cond))
410
408#else /* !CONFIG_SND_DEBUG */ 411#else /* !CONFIG_SND_DEBUG */
409 412
410#define snd_printd(fmt, args...) /* nothing */ 413#define snd_printd(fmt, args...) /* nothing */
411#define snd_assert(expr, args...) (void)(expr) 414#define snd_assert(expr, args...) (void)(expr)
412#define snd_BUG() /* nothing */ 415#define snd_BUG() /* nothing */
416#define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */
413 417
414#endif /* CONFIG_SND_DEBUG */ 418#endif /* CONFIG_SND_DEBUG */
415 419