summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/libscan.c2
-rw-r--r--lib/show_progress.c2
-rw-r--r--lib/vsprintf.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libscan.c b/lib/libscan.c
index c4139e69d1..ad2e3df341 100644
--- a/lib/libscan.c
+++ b/lib/libscan.c
@@ -31,7 +31,7 @@
#include <mtd/ubi-user.h>
#include <mtd/utils.h>
#include <mtd/ubi-media.h>
-#include <asm-generic/div64.h>
+#include <linux/math64.h>
int libscan_ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info,
int verbose)
diff --git a/lib/show_progress.c b/lib/show_progress.c
index 85085790f6..259fb7ab19 100644
--- a/lib/show_progress.c
+++ b/lib/show_progress.c
@@ -17,7 +17,7 @@
#include <common.h>
#include <fs.h>
#include <progress.h>
-#include <asm-generic/div64.h>
+#include <linux/math64.h>
#define HASHES_PER_LINE 65
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 4834501ff1..1d82adc733 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -13,7 +13,7 @@
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>
-#include <asm-generic/div64.h>
+#include <linux/math64.h>
#include <malloc.h>
#include <kallsyms.h>