From: Luis R. Rodriguez Date: Mon, 11 Jan 2010 23:57:52 +0000 (-0800) Subject: Add DMA_BIT_MASK() for older kernels X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1fdde09ff7195dd421d831d4aa51c4413927269e;p=openwrt%2Fstaging%2Fblogic.git Add DMA_BIT_MASK() for older kernels Old kernels do not have this declared. Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.24.h b/include/linux/compat-2.6.24.h index f3eaec3a3fc3..ac9489f7fe12 100644 --- a/include/linux/compat-2.6.24.h +++ b/include/linux/compat-2.6.24.h @@ -18,6 +18,8 @@ #define KEY_WLAN 238 #define KEY_UWB 239 +#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) + /* Added on 2.6.24 in include/linux/types.h by Al viro on commit 142956af */ typedef unsigned long uintptr_t;