From: Yury Norov Date: Thu, 22 Apr 2021 06:42:58 +0000 (+1000) Subject: h8300: rearrange headers inclusion order in asm/bitops X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=33974fd184107bd6da51545eb2b9e380792f20d6;p=users%2Fjedix%2Flinux-maple.git h8300: rearrange headers inclusion order in asm/bitops The commit a5145bdad3ff ("arch: rearrange headers inclusion order in asm/bitops for m68k and sh") on next-20210401 fixed header ordering issue. 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. v2: change wording in the comment. Link: https://lkml.kernel.org/r/20210406183625.794227-1-yury.norov@gmail.com Signed-off-by: Yury Norov Reported-by: kernel test robot Reported-by: Guenter Roeck Tested-by: Guenter Roeck Reviewed-by: Andy Shevchenko Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/arch/h8300/include/asm/bitops.h b/arch/h8300/include/asm/bitops.h index 7aa16c732aa9f..c867a80cab5b5 100644 --- a/arch/h8300/include/asm/bitops.h +++ b/arch/h8300/include/asm/bitops.h @@ -9,6 +9,10 @@ #include +#include +#include +#include + #ifdef __KERNEL__ #ifndef _LINUX_BITOPS_H @@ -173,8 +177,4 @@ static inline unsigned long __ffs(unsigned long word) #endif /* __KERNEL__ */ -#include -#include -#include - #endif /* _H8300_BITOPS_H */