[KERNEL] Do not truncate to 'int' in ALIGN() macro.
Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
3eeab61aa3
commit
4c8bd7eeee
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ extern const char linux_banner[];
|
||||||
#define STACK_MAGIC 0xdeadbeef
|
#define STACK_MAGIC 0xdeadbeef
|
||||||
|
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||||
#define ALIGN(x,a) (((x)+(a)-1)&~((a)-1))
|
#define ALIGN(x,a) (((x)+(a)-1UL)&~((a)-1UL))
|
||||||
#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
|
#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
|
||||||
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue