mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3 1/5] include: <linux/math64.h>: include header for __always_inline definition
@ 2021-02-18  9:38 Ahmad Fatoum
  2021-02-18  9:38 ` [PATCH v3 2/5] treewide: include <linux/math64.h> wrapper instead of <asm-generic/div64.h> Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2021-02-18  9:38 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The Linux <linux/math64.h> depends on __always_inline being defined
prior. Fix this at our side now to avoid a build failure when using
it to replace <asm-generic/div64.h> later on.

Fixes: f933da28cf3f ("include: <linux/math64.h>: sync with upstream")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v2 -> v3:
  - no change
v1 -> v2:
  - new patch
---
 include/linux/math64.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/math64.h b/include/linux/math64.h
index e8b737e70e50..8537c0412d09 100644
--- a/include/linux/math64.h
+++ b/include/linux/math64.h
@@ -3,6 +3,7 @@
 #define _LINUX_MATH64_H
 
 #include <linux/types.h>
+#include <linux/compiler.h>
 #include <asm-generic/div64.h>
 
 #if BITS_PER_LONG == 64
-- 
2.29.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2021-02-18  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  9:38 [PATCH v3 1/5] include: <linux/math64.h>: include header for __always_inline definition Ahmad Fatoum
2021-02-18  9:38 ` [PATCH v3 2/5] treewide: include <linux/math64.h> wrapper instead of <asm-generic/div64.h> Ahmad Fatoum
2021-02-18  9:39 ` [PATCH v3 3/5] include: asm-generic: don't do 64-bit soft division on 64-bit platforms Ahmad Fatoum
2021-02-18  9:39 ` [PATCH v3 4/5] lib: remove duplicate __div64_32 Ahmad Fatoum
2021-02-18  9:39 ` [PATCH v3 5/5] drivers: replaces references to <asm-generic/*.h> Ahmad Fatoum

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