Include asm/div64.h for do_div() usage in DIV_ROUND_DOWN_ULL() and DIV_ROUND_CLOSEST_ULL(). Remove the old CONFIG_LBDAF=y conditional include.
Unified · Split
| @@ -14,6 +14,7 @@ · 13 unmodified lines | |||
| 14 | #include <linux/printk.h> | 14 | #include <linux/printk.h> |
| 15 | #include <linux/build_bug.h> | 15 | #include <linux/build_bug.h> |
| 16 | #include <asm/byteorder.h> | 16 | #include <asm/byteorder.h> |
| 17 | #include <asm/div64.h> | ||
| 17 | #include <uapi/linux/kernel.h> | 18 | #include <uapi/linux/kernel.h> |
| 18 | 19 | ||
| 19 | #define USHRT_MAX ((u16)(~0U)) | 20 | #define USHRT_MAX ((u16)(~0U)) |
| @@ -204,7 +205,6 @@ · 184 unmodified lines | |||
| 204 | #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) | 205 | #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) |
| 205 | 206 | ||
| 206 | #ifdef CONFIG_LBDAF | 207 | #ifdef CONFIG_LBDAF |
| 207 | # include <asm/div64.h> | ||
| 208 | # define sector_div(a, b) do_div(a, b) | 208 | # define sector_div(a, b) do_div(a, b) |
| 209 | #else | 209 | #else |
| 210 | # define sector_div(n, b)( \ | 210 | # define sector_div(n, b)( \ |