Thread (3 messages) 3 messages, 2 authors, 2023-12-07

Re: [PATCH 1/2] powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()

From: Michael Ellerman <hidden>
Date: 2023-12-07 12:47:16

On Thu, 30 Nov 2023 22:44:32 +1100, Michael Ellerman wrote:
With NUMA=n and FA_DUMP=y or PRESERVE_FA_DUMP=y the build fails with:

  arch/powerpc/kernel/fadump.c:1739:22: error: no previous prototype for ‘arch_reserved_kernel_pages’ [-Werror=missing-prototypes]
  1739 | unsigned long __init arch_reserved_kernel_pages(void)
       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~

The prototype for arch_reserved_kernel_pages() is in include/linux/mm.h,
but it's guarded by __HAVE_ARCH_RESERVED_KERNEL_PAGES. The powerpc
headers define __HAVE_ARCH_RESERVED_KERNEL_PAGES in asm/mmzone.h, which
is not included into the generic headers when NUMA=n.

[...]
Applied to powerpc/next.

[1/2] powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()
      https://git.kernel.org/powerpc/c/d8c3f243d4db24675b653f0568bb65dae34e6455
[2/2] powerpc: Fix build error due to is_valid_bugaddr()
      https://git.kernel.org/powerpc/c/f8d3555355653848082c351fa90775214fb8a4fa

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help