linux-next/arch
Arnd Bergmann 5f300fd59a mm: make arch_has_descending_max_zone_pfns() static
clang produces a build failure on x86 for some randconfig builds after a
change that moves around code to mm/mm_init.c:

Cannot find symbol for section 2: .text.
mm/mm_init.o: failed

I have not been able to figure out why this happens, but the __weak
annotation on arch_has_descending_max_zone_pfns() is the trigger here.

Removing the weak function in favor of an open-coded Kconfig option check
avoids the problem and becomes clearer as well as better to optimize by
the compiler.

[arnd@arndb.de: fix logic bug]
  Link: https://lkml.kernel.org/r/20230415081904.969049-1-arnd@kernel.org
Link: https://lkml.kernel.org/r/20230414080418.110236-1-arnd@kernel.org
Fixes: 9420f89db2 ("mm: move most of core MM initialization to mm/mm_init.c")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Tested-by: SeongJae Park <sj@kernel.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-04-18 16:29:42 -07:00
..
alpha alpha: fix lazy-FPU mis(merged/applied/whatnot) 2023-03-06 20:13:49 -05:00
arc mm: make arch_has_descending_max_zone_pfns() static 2023-04-18 16:29:42 -07:00
arm mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
arm64 arm64/mm: try VMA lock-based page fault handling first 2023-04-05 20:03:01 -07:00
csky mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
hexagon VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
ia64 mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
loongarch loongarch: drop ranges for definition of ARCH_FORCE_MAX_ORDER 2023-04-05 19:42:47 -07:00
m68k mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
microblaze VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
mips mips: fix comment about pgtable_init() 2023-04-05 19:42:52 -07:00
nios2 mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
openrisc VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
parisc VM_FAULT_RETRY fixes 2023-03-05 11:07:58 -08:00
powerpc powerc/mm: try VMA lock-based page fault handling first 2023-04-05 20:03:02 -07:00
riscv RISC-V Fixes for 6.3-rc4 2023-03-24 09:52:26 -07:00
s390 s390/mm: try VMA lock-based page fault handling first 2023-04-05 20:03:02 -07:00
sh mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
sparc mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
um mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
x86 x86/mm: try VMA lock-based page fault handling first 2023-04-05 20:03:01 -07:00
xtensa mm, treewide: redefine MAX_ORDER sanely 2023-04-05 19:42:46 -07:00
.gitignore
Kconfig lazy tlb: shoot lazies, non-refcounting lazy tlb mm reference handling scheme 2023-03-28 16:20:08 -07:00