Skip to content

Commit

Permalink
kernel: add roundup() code comment from akpm
Browse files Browse the repository at this point in the history
Add roundup() code comment from akpm.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
James Morris committed Nov 9, 2010
1 parent f6614b7 commit 074e61e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 074e61e

Please sign in to comment.