diff options
| author | Masahiro Yamada <[email protected]> | 2017-09-08 23:13:45 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-09-09 01:26:47 +0000 |
| commit | 604df322363e5770735df85368f83cac4a955a24 (patch) | |
| tree | 03222c6761b0edd74a2675f21f1542b0b03e9cf1 /lib/string.c | |
| parent | fs, proc: unconditional cond_resched when reading smaps (diff) | |
| download | kernel-604df322363e5770735df85368f83cac4a955a24.tar.gz kernel-604df322363e5770735df85368f83cac4a955a24.zip | |
linux/kernel.h: move DIV_ROUND_DOWN_ULL() macro
This macro is useful to avoid link error on 32-bit systems.
We have the same definition in two drivers, so move it to
include/linux/kernel.h
While we are here, refactor DIV_ROUND_UP_ULL() by using
DIV_ROUND_DOWN_ULL().
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Mark Brown <[email protected]>
Cc: Cyrille Pitchen <[email protected]>
Cc: Jaroslav Kysela <[email protected]>
Cc: Takashi Iwai <[email protected]>
Cc: Liam Girdwood <[email protected]>
Cc: Boris Brezillon <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Brian Norris <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: David Woodhouse <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
