projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eeab61
)
[KERNEL] Do not truncate to 'int' in ALIGN() macro.
author
David Miller
<davem@davemloft.net>
Sat, 23 Sep 2006 05:31:36 +0000
(22:31 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 23 Sep 2006 18:34:42 +0000
(11:34 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/kernel.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index 851aa1bcfc1a25c65db7fd2829e1844fb6086e33..2b2ae4fdce8bbd689e5be2fe52be1ccc3add879b 100644
(file)
--- a/
include/linux/kernel.h
+++ b/
include/linux/kernel.h
@@
-31,7
+31,7
@@
extern const char linux_banner[];
#define STACK_MAGIC 0xdeadbeef
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
-#define ALIGN(x,a) (((x)+(a)-1
)&~((a)-1
))
+#define ALIGN(x,a) (((x)+(a)-1
UL)&~((a)-1UL
))
#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))