From: Simon Glass <simon.glass@canonical.com> U-Boot has a linux/math64.h header which is supported on most boards. Use that instead of defining a new function. Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index f3dede424df..5676f76d4b4 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -31,6 +31,7 @@ #include <linux/list.h> #include <linux/log2.h> #include <linux/init.h> +#include <linux/math64.h> #include <linux/workqueue.h> #include <linux/cred.h> #include <linux/fs.h> @@ -3095,12 +3096,6 @@ static inline struct new_utsname *init_utsname(void) /* test_and_set_bit_lock - test and set a bit atomically */ #define test_and_set_bit_lock(nr, addr) test_and_set_bit(nr, addr) -/* div64_u64 - 64-bit by 64-bit division */ -static inline u64 div64_u64(u64 dividend, u64 divisor) -{ - return dividend / divisor; -} - /* time_is_before_jiffies - check if time is before current jiffies */ #define time_is_before_jiffies(a) ({ (void)(a); 0; }) -- 2.43.0