projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88aea8e
)
Add DMA_BIT_MASK() for older kernels
author
Luis R. Rodriguez
<lrodriguez@atheros.com>
Mon, 11 Jan 2010 23:57:52 +0000
(15:57 -0800)
committer
Luis 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
patch
|
blob
|
history
diff --git
a/include/linux/compat-2.6.24.h
b/include/linux/compat-2.6.24.h
index f3eaec3a3fc32880224d08e0821a0ccc877c2ec9..ac9489f7fe122b95ef6bfbe235fbb57759626a7f 100644
(file)
--- 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;