projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6614b7
)
kernel: add roundup() code comment from akpm
author
James Morris
<jmorris@namei.org>
Tue, 9 Nov 2010 22:01:31 +0000
(09:01 +1100)
committer
James 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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index b526947bdf489f508c6905b2009005b2220a8643..3f648d204c374ca12d479b4db05612a3aebdf262 100644
(file)
--- 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; \