diff options
author | Jacob Wen <jian.w.wen@oracle.com> | 2019-01-07 04:59:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-07 18:22:36 +0300 |
commit | eeb2c4fb6a3d0ebed35fbc13a255f691c8b8d7e5 (patch) | |
tree | a6a3fd94a38cd29cddb7b6ce6cf3f90fbf45f3ba /net/rds/rds.h | |
parent | 10262b0b53666cbc506989b17a3ead1e9c3b43b4 (diff) | |
download | linux-eeb2c4fb6a3d0ebed35fbc13a255f691c8b8d7e5.tar.xz |
rds: use DIV_ROUND_UP instead of ceil
Yes indeed, DIV_ROUND_UP is in kernel.h.
Signed-off-by: Jacob Wen <jian.w.wen@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/rds.h')
-rw-r--r-- | net/rds/rds.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h index 02ec4a3b2799..4ffe100ff5e6 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h @@ -48,10 +48,6 @@ void rdsdebug(char *fmt, ...) } #endif -/* XXX is there one of these somewhere? */ -#define ceil(x, y) \ - ({ unsigned long __x = (x), __y = (y); (__x + __y - 1) / __y; }) - #define RDS_FRAG_SHIFT 12 #define RDS_FRAG_SIZE ((unsigned int)(1 << RDS_FRAG_SHIFT)) |