]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
kernel: add roundup() code comment from akpm
authorJames Morris <jmorris@namei.org>
Tue, 9 Nov 2010 22:01:31 +0000 (09:01 +1100)
committerJames Morris <jmorris@namei.org>
Tue, 9 Nov 2010 22:01:31 +0000 (09:01 +1100)
Add roundup() code comment from akpm.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/kernel.h

index b526947bdf489f508c6905b2009005b2220a8643..3f648d204c374ca12d479b4db05612a3aebdf262 100644 (file)
@@ -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;                        \