diff options
| author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 23:56:33 -0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 23:56:33 -0200 |
| commit | d509e840df58b01c75b9fb7cb8c0be9f7ab023ce (patch) | |
| tree | c2907f50634857fd993dd69d77399420185018ac /v4l | |
| parent | 58f52d61d57fe5a5ed3cf4542663f6641e53eff7 (diff) | |
| parent | 71860dbdbc561e6e67353843a30183bcaa08b94f (diff) | |
| download | mediapointer-dvb-s2-d509e840df58b01c75b9fb7cb8c0be9f7ab023ce.tar.gz mediapointer-dvb-s2-d509e840df58b01c75b9fb7cb8c0be9f7ab023ce.tar.bz2 | |
merge: http://linuxtv.org/hg/~tmerle/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l')
| -rw-r--r-- | v4l/compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 6e90c0e63..0e2ccd7a9 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -237,4 +237,17 @@ static inline int list_is_singular(const struct list_head *head) #define current_uid() (current->uid) #endif +#ifndef WARN +#define WARN(condition, format...) ({ \ + int __ret_warn_on = !!(condition); \ + if (unlikely(__ret_warn_on)) \ + printk(KERN_WARNING format); \ + unlikely(__ret_warn_on); \ +}) +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28) +#define snd_BUG_ON(cond) WARN((cond), "BUG? (%s)\n", __stringify(cond)) +#endif + #endif |
