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:
e05296d
)
Add roundup() compatibility macro
author
Arnaud Lacombe
<lacombar@gmail.com>
Tue, 24 Nov 2009 02:24:15 +0000
(21:24 -0500)
committer
Luis R. Rodriguez
<lrodriguez@atheros.com>
Tue, 1 Dec 2009 07:16:20 +0000
(23:16 -0800)
Added on commit
b4cac1a0
by David Howells in include/linux/kernel.h.
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
compat-2.6.18.h
patch
|
blob
|
history
diff --git
a/compat-2.6.18.h
b/compat-2.6.18.h
index 077f28bb4bbd3e929f1a17c7034fb4e0c66ed523..3245c42c17e832cda9c46be90f284dac00b23199 100644
(file)
--- a/
compat-2.6.18.h
+++ b/
compat-2.6.18.h
@@
-7,6
+7,8
@@
/* Compat work for 2.6.18 */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
+#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) */
#endif /* LINUX_26_18_COMPAT_H */