Re: [PATCH -fixes] riscv: Fix build error if !CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION

From: patchwork-bot+linux-riscv
Date: Thu Feb 22 2024 - 23:30:37 EST


Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:

On Sun, 11 Feb 2024 09:36:40 +0100 you wrote:
> The new riscv specific arch_hugetlb_migration_supported() must be
> guarded with a #ifdef CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION to avoid
> the following build error:
>
> In file included from include/linux/hugetlb.h:851,
> from kernel/fork.c:52:
> >> arch/riscv/include/asm/hugetlb.h:15:42: error: static declaration of 'arch_hugetlb_migration_supported' follows non-static declaration
> 15 | #define arch_hugetlb_migration_supported arch_hugetlb_migration_supported
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> include/linux/hugetlb.h:916:20: note: in expansion of macro 'arch_hugetlb_migration_supported'
> 916 | static inline bool arch_hugetlb_migration_supported(struct hstate *h)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> arch/riscv/include/asm/hugetlb.h:14:6: note: previous declaration of 'arch_hugetlb_migration_supported' with type 'bool(struct hstate *)' {aka '_Bool(struct hstate *)'}
> 14 | bool arch_hugetlb_migration_supported(struct hstate *h);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> [...]

Here is the summary with links:
- [-fixes] riscv: Fix build error if !CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
https://git.kernel.org/riscv/c/fc325b1a915f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html