[PATCH] include: Include <linux/math.h> to resolve implicit declaration of do_div()
Abdelrahman Youssef via B4 Relay
devnull+abdelrahmanyossef12.gmail.com at kernel.org
Wed Oct 16 16:47:04 PDT 2024
From: Abdelrahman Youssef <abdelrahmanyossef12 at gmail.com>
I was testing barebox with randconfig, so I got a warning (treated as an error) : implicit declaration of do_div().
So <linux/math.h> needs to included.
Signed-off-by: Abdelrahman Youssef <abdelrahmanyossef12 at gmail.com>
---
include/linux/ktime.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/ktime.h b/include/linux/ktime.h
index ea368b8802..2b9a91d540 100644
--- a/include/linux/ktime.h
+++ b/include/linux/ktime.h
@@ -21,6 +21,7 @@
#ifndef _LINUX_KTIME_H
#define _LINUX_KTIME_H
+#include <linux/math.h>
#include <linux/time.h>
#include <clock.h>
#include <linux/bug.h>
---
base-commit: 9d47ff66c3892c5a6ddd4704993365a797fbeb68
change-id: 20241017-errors_fixes-81248755b864
Best regards,
--
Abdelrahman Youssef <abdelrahmanyossef12 at gmail.com>
More information about the barebox
mailing list