Skip to content

Commit

Permalink
btrfs: use correct header for div_u64 in misc.h
Browse files Browse the repository at this point in the history
asm/do_div.h is for div_u64, but it is found in math64.h. This change
will make compiler job easier and prevent compiler errors in situation
where compiler will not find math64.h from another paths.

Signed-off-by: Kari Argillander <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
teksturi authored and kdave committed Sep 7, 2021
1 parent 6f93e83 commit cde7417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <linux/sched.h>
#include <linux/wait.h>
#include <asm/div64.h>
#include <linux/math64.h>
#include <linux/rbtree.h>

#define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len))
Expand Down

0 comments on commit cde7417

Please sign in to comment.