* [PATCH 04/13] Add roundup() compatibility macro
@ 2009-11-24 2:24 Arnaud Lacombe
0 siblings, 0 replies; only message in thread
From: Arnaud Lacombe @ 2009-11-24 2:24 UTC (permalink / raw)
To: mcgrof; +Cc: linux-wireless, lrodriguez
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 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/compat-2.6.18.h b/compat-2.6.18.h
index 077f28b..3245c42 100644
--- 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 */
--
1.6.3.3.385.g60647.dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-24 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 2:24 [PATCH 04/13] Add roundup() compatibility macro Arnaud Lacombe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.