memblock: updates for 6.12-rc1

From: Mike Rapoport
Date: Mon Sep 23 2024 - 02:37:39 EST


Hi Linus,

The following changes since commit de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed:

Linux 6.11-rc2 (2024-08-04 13:50:53 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/memblock-v6.12-rc1

for you to fetch changes up to cb088e38aab4c7e9ce711c18c66e851c8f4227bb:

s390/mm: get estimated free pages by memblock api (2024-08-11 19:19:07 +0300)

----------------------------------------------------------------
memblock: updates for 6.12-rc1

* new memblock_estimated_nr_free_pages() helper to replace totalram_pages()
which is less accurate when CONFIG_DEFERRED_STRUCT_PAGE_INIT is set
* fixes for memblock tests

----------------------------------------------------------------
Wei Yang (11):
memblock tests: include memory_hotplug.h in mmzone.h as kernel dose
memblock tests: include export.h in linkage.h as kernel dose
tools/testing: abstract two init.h into common include directory
memblock test: fix implicit declaration of function 'virt_to_phys'
memblock test: add the definition of __setup()
memblock test: fix implicit declaration of function 'memparse'
memblock test: fix implicit declaration of function 'isspace'
memblock test: fix implicit declaration of function 'strscpy'
mm/memblock: introduce a new helper memblock_estimated_nr_free_pages()
kernel/fork.c: get estimated free pages by memblock api
s390/mm: get estimated free pages by memblock api

arch/s390/mm/init.c | 2 +-
include/linux/memblock.h | 1 +
kernel/fork.c | 2 +-
mm/memblock.c | 17 ++++++++
tools/include/linux/compiler.h | 4 --
tools/{testing/memblock => include}/linux/init.h | 19 ++++++---
tools/include/linux/linkage.h | 2 +
tools/include/linux/mm.h | 6 +++
tools/include/linux/pfn.h | 1 +
tools/include/linux/string.h | 3 ++
tools/lib/cmdline.c | 53 ++++++++++++++++++++++++
tools/testing/memblock/Makefile | 2 +-
tools/testing/memblock/linux/kernel.h | 2 +
tools/testing/memblock/linux/mmzone.h | 1 +
tools/testing/radix-tree/linux/init.h | 2 -
tools/testing/radix-tree/maple.c | 2 +-
16 files changed, 104 insertions(+), 15 deletions(-)
rename tools/{testing/memblock => include}/linux/init.h (76%)
create mode 100644 tools/lib/cmdline.c
delete mode 100644 tools/testing/radix-tree/linux/init.h