public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: change wrong header in misc.h
@ 2021-08-30 21:51 Kari Argillander
  2021-08-31 10:58 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Kari Argillander @ 2021-08-30 21:51 UTC (permalink / raw)
  To: linux-btrfs; +Cc: 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.

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
---
 fs/btrfs/misc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/misc.h b/fs/btrfs/misc.h
index 6461ebc3a1c1..340f995652f2 100644
--- a/fs/btrfs/misc.h
+++ b/fs/btrfs/misc.h
@@ -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))
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs: change wrong header in misc.h
  2021-08-30 21:51 [PATCH] btrfs: change wrong header in misc.h Kari Argillander
@ 2021-08-31 10:58 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2021-08-31 10:58 UTC (permalink / raw)
  To: Kari Argillander; +Cc: linux-btrfs

On Tue, Aug 31, 2021 at 12:51:52AM +0300, Kari Argillander wrote:
> 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.
> 
> Signed-off-by: Kari Argillander <kari.argillander@gmail.com>

Added to misc-next, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-31 11:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-30 21:51 [PATCH] btrfs: change wrong header in misc.h Kari Argillander
2021-08-31 10:58 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox