From: James Morris Date: Tue, 9 Nov 2010 22:01:31 +0000 (+1100) Subject: kernel: add roundup() code comment from akpm X-Git-Tag: v2.6.38-rc1~429^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=074e61ec3751da9ab88ee66d3818574556c03489;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git kernel: add roundup() code comment from akpm Add roundup() code comment from akpm. Signed-off-by: Andrew Morton Signed-off-by: James Morris --- diff --git a/include/linux/kernel.h b/include/linux/kernel.h index b526947..3f648d2 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -58,6 +58,8 @@ extern const char linux_proc_banner[]; #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) + +/* The `const' in roundup() prevents gcc-3.3 from calling __divdi3 */ #define roundup(x, y) ( \ { \ const typeof(y) __y = y; \