summaryrefslogtreecommitdiff
path: root/kernel/wctc4xxp/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/wctc4xxp/base.c')
-rw-r--r--kernel/wctc4xxp/base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/wctc4xxp/base.c b/kernel/wctc4xxp/base.c
index 8946940..256e0fb 100644
--- a/kernel/wctc4xxp/base.c
+++ b/kernel/wctc4xxp/base.c
@@ -73,6 +73,7 @@
} \
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#ifndef WARN_ON_ONCE
#define WARN_ON_ONCE(__condition) do { \
static int __once = 1; \
if (unlikely(__condition)) { \
@@ -83,6 +84,7 @@
} \
} while(0)
#endif
+#endif
#define INVALID 999 /* Used to mark invalid channels, commands, etc.. */
#define MAX_CHANNEL_PACKETS 5 /* Never let more than 5 outstanding packets exist for any channel. */