1
0
Fork 0

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>
hifive-unleashed-5.1
James Morris 2010-11-10 09:01:31 +11:00
parent f6614b7bb4
commit 074e61ec37
1 changed files with 2 additions and 0 deletions

View File

@ -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; \