]> git.openfabrics.org - ~emulex/compat.git/commitdiff
Add DMA_BIT_MASK() for older kernels
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 23:57:52 +0000 (15:57 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 11 Jan 2010 23:57:52 +0000 (15:57 -0800)
Old kernels do not have this declared.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.24.h

index f3eaec3a3fc32880224d08e0821a0ccc877c2ec9..ac9489f7fe122b95ef6bfbe235fbb57759626a7f 100644 (file)
@@ -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;