diff options
author | James Morris <jmorris@namei.org> | 2010-11-10 09:01:31 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-11-10 09:01:31 +1100 |
commit | 074e61ec3751da9ab88ee66d3818574556c03489 (patch) | |
tree | 3834a37449096666ee01cab236a8240644adc4f8 /include/linux/kernel.h | |
parent | f6614b7bb405a9b35dd28baea989a749492c46b2 (diff) | |
download | blackbird-op-linux-074e61ec3751da9ab88ee66d3818574556c03489.tar.gz blackbird-op-linux-074e61ec3751da9ab88ee66d3818574556c03489.zip |
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>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index b526947bdf48..3f648d204c37 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; \ |