Skip to contentSkip to conversation

h8300: rearrange headers inclusion order in asm/bitops

PATCH Superseded Yury Norov 2 participants 2 messages Apr 1, 2021 – Apr 5, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yury Norov

author maintainer
#0 lore raw

PATCH 1/1 h8300: rearrange headers inclusion order in asm/bitops

This patch fixes [next-20210401] commit a5145bdad3ff ("arch: rearrange headers inclusion order in asm/bitops for m68k and sh"). h8300 has similar problem, which was overlooked by me.

h8300 includes bitmap/{find,le}.h prior to ffs/fls headers. New fast-path implementation in find.h requires ffs/fls. Reordering the headers inclusion sequence helps to prevent compile-time implicit function declaration error.

---
 arch/h8300/include/asm/bitops.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/h8300/include/asm/bitops.h +4 -4
index 7aa16c732aa9..c867a80cab5b 100644
@@ -9,6 +9,10 @@
 
 #include <linux/compiler.h>
 
+#include <asm-generic/bitops/fls.h>
+#include <asm-generic/bitops/__fls.h>
+#include <asm-generic/bitops/fls64.h>
+
 #ifdef __KERNEL__
 
 #ifndef _LINUX_BITOPS_H
@@ -173,8 +177,4 @@ static inline unsigned long __ffs(unsigned long word)
 
 #endif /* __KERNEL__ */
 
-#include <asm-generic/bitops/fls.h>
-#include <asm-generic/bitops/__fls.h>
-#include <asm-generic/bitops/fls64.h>
-
 #endif /* _H8300_BITOPS_H */
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Yury Norov

This patch fixes [next-20210401] commit a5145bdad3ff ("arch: rearrange

"This patch fixes [next-20210401] commit ..." ==>

"The commit ...

Quoted 1 line

headers inclusion order in asm/bitops for m68k and sh").

...fixed header ordering issue."

Quoted 7 lines

h8300 has
similar problem, which was overlooked by me.

h8300 includes bitmap/{find,le}.h prior to ffs/fls headers. New fast-path implementation in find.h requires ffs/fls. Reordering the headers inclusion sequence helps to prevent compile-time implicit function declaration error.

Whit above commit message rephrasing:

Quoted 33 lines
---
 arch/h8300/include/asm/bitops.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/h8300/include/asm/bitops.h +4 -4
index 7aa16c732aa9..c867a80cab5b 100644
@@ -9,6 +9,10 @@
 
 #include <linux/compiler.h>
 
+#include <asm-generic/bitops/fls.h>
+#include <asm-generic/bitops/__fls.h>
+#include <asm-generic/bitops/fls64.h>
+
 #ifdef __KERNEL__
 
 #ifndef _LINUX_BITOPS_H
@@ -173,8 +177,4 @@ static inline unsigned long __ffs(unsigned long word)
 
 #endif /* __KERNEL__ */
 
-#include <asm-generic/bitops/fls.h>
-#include <asm-generic/bitops/__fls.h>
-#include <asm-generic/bitops/fls64.h>
-
 #endif /* _H8300_BITOPS_H */
Signature · 1 line
2.25.1
Signature · 2 lines
With Best Regards,
Andy Shevchenko