[PATCH v3 1/5] include: <linux/math64.h>: include header for __always_inline definition

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Feb 18 04:38:58 EST 2021


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 at 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




More information about the barebox mailing list