From f396684bc0add51e83c3dbc89f99cd210f0dd31d Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 5 Jan 2009 22:49:18 +0000 Subject: Even on older kernels, do not redefine WARN_ON_ONCE if it is already defined. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5636 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctc4xxp/base.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/dahdi') diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 816577d..7a554bf 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/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. */ -- cgit v1.2.3