History

kernel.h: unconditionally include asm/div64.h for do_div()

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.

Jani Nikula committed 7 years ago

Commit c461aed1 parent f90d6441 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/kernel.h+1−1
@@ -14,6 +14,7 @@ · 13 unmodified lines
1414 #include <linux/printk.h>
1515 #include <linux/build_bug.h>
1616 #include <asm/byteorder.h>
17+#include <asm/div64.h>
1718 #include <uapi/linux/kernel.h>
1819
1920 #define USHRT_MAX ((u16)(~0U))
@@ -204,7 +205,6 @@ · 184 unmodified lines
204205 #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
205206
206207 #ifdef CONFIG_LBDAF
207−# include <asm/div64.h>
208208 # define sector_div(a, b) do_div(a, b)
209209 #else
210210 # define sector_div(n, b)( \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t