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

Unified · Split

include/linux/kernel.h+1−1
@@ -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_LBDAF207#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#else209#else
210# define sector_div(n, b)( \210# 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