Skip to contentSkip to conversation

Add roundup() compatibility macro

PATCH Applied Arnaud Lacombe 1 participant 1 message Nov 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 4/13 Add roundup() compatibility macro

Added on commit b4cac1a0 by David Howells in include/linux/kernel.h.

---
 compat-2.6.18.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
compat-2.6.18.h +2 -0
index 077f28b..3245c42 100644
@@ -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 */
Signature · 1 line
1.6.3.3.385.g60647.dirty