summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-02-18 10:38:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-02-19 08:38:58 +0100
commit09db4f3b59ad06eae514b62c78211db470ecd287 (patch)
tree6e5f649a9c8c41c5891c30ac04c299a0d3738bed /commands
parenta519102def51e995485d933081471e853d36a228 (diff)
downloadbarebox-09db4f3b59ad06eae514b62c78211db470ecd287.tar.gz
barebox-09db4f3b59ad06eae514b62c78211db470ecd287.tar.xz
treewide: include <linux/math64.h> wrapper instead of <asm-generic/div64.h>
<asm-generic/div64.h> isn't meant for direct usage as <asm/div64.h> may override this on a per-architecture basis. We don't do that currently, but in the future we might. Include the <linux/math64.h> instead. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/dhrystone.c2
-rw-r--r--commands/time.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/dhrystone.c b/commands/dhrystone.c
index 154910e5d0..17efa9c099 100644
--- a/commands/dhrystone.c
+++ b/commands/dhrystone.c
@@ -15,7 +15,7 @@
#include <command.h>
#include <errno.h>
#include <clock.h>
-#include <asm-generic/div64.h>
+#include <linux/math64.h>
#include <malloc.h>
#include <stdio.h> /* for strcpy, strcmp */
diff --git a/commands/time.c b/commands/time.c
index 29000d96d8..25ba2da15e 100644
--- a/commands/time.c
+++ b/commands/time.c
@@ -1,7 +1,7 @@
#include <common.h>
#include <command.h>
#include <clock.h>
-#include <asm-generic/div64.h>
+#include <linux/math64.h>
#include <malloc.h>
static int do_time(int argc, char *argv[])