From: Arnaud Lacombe Date: Tue, 24 Nov 2009 02:24:15 +0000 (-0500) Subject: Add roundup() compatibility macro X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=802708a593aa035e3c4d5179842a36c5f2539e08;p=openwrt%2Fstaging%2Fblogic.git Add roundup() compatibility macro Added on commit b4cac1a0 by David Howells in include/linux/kernel.h. Signed-off-by: Arnaud Lacombe --- diff --git a/compat-2.6.18.h b/compat-2.6.18.h index 077f28bb4bbd..3245c42c17e8 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 */