Don't open-code DIV_ROUND_UP() kernel macro. Signed-off-by: Zheng Yongjun <[email protected]> --- drivers/char/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c index 2a41b21623ae..37b59e05d298 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -359,7 +359,7 @@ #define EXTRACT_SIZE 10 -#define LONGS(x) (((x) + sizeof(unsigned long) - 1)/sizeof(unsigned long)) +#define LONGS(x) DIV_ROUND_UP(x, sizeof(unsigned long)) /* * To allow fractional bits to be tracked, the entropy_count field is -- 2.22.0

