Skip to contentSkip to conversation

btrfs: change wrong header in misc.h

PATCH In review Kari Argillander 2 participants 2 messages Aug 30, 2021 – Aug 31, 2021 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: change wrong header in misc.h

asm/do_div.h is probably 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.

---
 fs/btrfs/misc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/misc.h +1 -1
index 6461ebc3a1c1..340f995652f2 100644
@@ -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))
Signature · 1 line
2.30.2
#1 lore raw
Quoted 5 lines · Kari Argillander

asm/do_div.h is probably 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.

Added to misc-next, thanks.