]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: Move ROUND() into kernel.h
authorSimon Glass <sjg@chromium.org>
Sat, 28 Dec 2019 17:45:09 +0000 (10:45 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Jan 2020 17:36:49 +0000 (23:06 +0530)
Move this macro in with all the other rounding macros.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/common.h
include/linux/kernel.h

index 4110f75a93e0cbf85af9d0023c5e7260ac76ba24..997828311e11e1b8b8065e9c60d0a01e981f7604 100644 (file)
@@ -71,8 +71,6 @@
 
 /* Put only stuff here that the assembler can digest */
 
-#define ROUND(a,b)             (((a) + (b) - 1) & ~((b) - 1))
-
 /* Pull in stuff for the build system */
 #ifdef DO_DEPS_ONLY
 # include <env_internal.h>
index fefbc07375e01b48ac41c76a6302523106aa6967..b88c21006591d3117cc857a36d381a5cdaf71c0f 100644 (file)
@@ -69,6 +69,8 @@
 
 #define DIV_ROUND_UP_ULL(ll, d)                DIV_ROUND_DOWN_ULL((ll) + (d) - 1, (d))
 
+#define ROUND(a, b)            (((a) + (b) - 1) & ~((b) - 1))
+
 #if BITS_PER_LONG == 32
 # define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d)
 #else