Browse Source

kernel: add roundup() code comment from akpm

Add roundup() code comment from akpm.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
James Morris 14 years ago
parent
commit
074e61ec37
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/linux/kernel.h

+ 2 - 0
include/linux/kernel.h

@@ -58,6 +58,8 @@ extern const char linux_proc_banner[];
 
 
 #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
 #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
 #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) (					\
 #define roundup(x, y) (					\
 {							\
 {							\
 	const typeof(y) __y = y;			\
 	const typeof(y) __y = y;			\