The patch titled Subject: arch: rearrange headers inclusion order in asm/bitops for m68k and sh has been added to the -mm tree. Its filename is arch-rearrange-headers-inclusion-order-in-asm-bitops-for-m68k-and-sh.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/arch-rearrange-headers-inclusion-order-in-asm-bitops-for-m68k-and-sh.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/arch-rearrange-headers-inclusion-order-in-asm-bitops-for-m68k-and-sh.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yury Norov <yury.norov@xxxxxxxxx> Subject: arch: rearrange headers inclusion order in asm/bitops for m68k and sh m68k and sh include 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. Link: https://lkml.kernel.org/r/20210401003153.97325-5-yury.norov@xxxxxxxxx Signed-off-by: Yury Norov <yury.norov@xxxxxxxxx> Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Acked-by: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Cc: Alexey Klimov <aklimov@xxxxxxxxxx> Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: David Sterba <dsterba@xxxxxxxx> Cc: Dennis Zhou <dennis@xxxxxxxxxx> Cc: Jianpeng Ma <jianpeng.ma@xxxxxxxxx> Cc: Joe Perches <joe@xxxxxxxxxxx> Cc: John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> Cc: Rich Felker <dalias@xxxxxxxx> Cc: Stefano Brivio <sbrivio@xxxxxxxxxx> Cc: Wei Yang <richard.weiyang@xxxxxxxxxxxxxxxxx> Cc: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> Cc: Yoshinori Sato <ysato@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/m68k/include/asm/bitops.h | 6 +++--- arch/sh/include/asm/bitops.h | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) --- a/arch/m68k/include/asm/bitops.h~arch-rearrange-headers-inclusion-order-in-asm-bitops-for-m68k-and-sh +++ a/arch/m68k/include/asm/bitops.h @@ -440,8 +440,6 @@ static inline unsigned long ffz(unsigned #endif -#include <asm-generic/bitops/find.h> - #ifdef __KERNEL__ #if defined(CONFIG_CPU_HAS_NO_BITFIELDS) @@ -525,10 +523,12 @@ static inline int __fls(int x) #define __clear_bit_unlock clear_bit_unlock #include <asm-generic/bitops/ext2-atomic.h> -#include <asm-generic/bitops/le.h> #include <asm-generic/bitops/fls64.h> #include <asm-generic/bitops/sched.h> #include <asm-generic/bitops/hweight.h> +#include <asm-generic/bitops/le.h> #endif /* __KERNEL__ */ +#include <asm-generic/bitops/find.h> + #endif /* _M68K_BITOPS_H */ --- a/arch/sh/include/asm/bitops.h~arch-rearrange-headers-inclusion-order-in-asm-bitops-for-m68k-and-sh +++ a/arch/sh/include/asm/bitops.h @@ -58,15 +58,16 @@ static inline unsigned long __ffs(unsign return result; } -#include <asm-generic/bitops/find.h> #include <asm-generic/bitops/ffs.h> #include <asm-generic/bitops/hweight.h> #include <asm-generic/bitops/lock.h> #include <asm-generic/bitops/sched.h> -#include <asm-generic/bitops/le.h> #include <asm-generic/bitops/ext2-atomic.h> #include <asm-generic/bitops/fls.h> #include <asm-generic/bitops/__fls.h> #include <asm-generic/bitops/fls64.h> +#include <asm-generic/bitops/le.h> +#include <asm-generic/bitops/find.h> + #endif /* __ASM_SH_BITOPS_H */ _ Patches currently in -mm which might be from yury.norov@xxxxxxxxx are tools-disable-wno-type-limits.patch tools-bitmap-sync-function-declarations-with-the-kernel.patch tools-sync-bitmap_last_word_mask-macro-with-the-kernel.patch arch-rearrange-headers-inclusion-order-in-asm-bitops-for-m68k-and-sh.patch lib-extend-the-scope-of-small_const_nbits-macro.patch tools-sync-small_const_nbits-macro-with-the-kernel.patch lib-inline-_find_next_bit-wrappers.patch tools-sync-find_next_bit-implementation.patch lib-add-fast-path-for-find_next__bit.patch lib-add-fast-path-for-find_first__bit-and-find_last_bit.patch tools-sync-lib-find_bit-implementation.patch maintainers-add-entry-for-the-bitmap-api.patch