From patchwork Mon Sep 23 06:37:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13809307 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4708ACF9C5B for ; Mon, 23 Sep 2024 06:37:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BB6676B007B; Mon, 23 Sep 2024 02:37:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B66996B0083; Mon, 23 Sep 2024 02:37:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A2E7A6B0085; Mon, 23 Sep 2024 02:37:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 852086B007B for ; Mon, 23 Sep 2024 02:37:35 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id EC97D1A10DA for ; Mon, 23 Sep 2024 06:37:34 +0000 (UTC) X-FDA: 82595046828.15.C9C25CB Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf04.hostedemail.com (Postfix) with ESMTP id 4768D40009 for ; Mon, 23 Sep 2024 06:37:33 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ihmIBQ+z; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727073393; a=rsa-sha256; cv=none; b=T7r8Z45fJom+X6ETzP645evsmXF2K2c2vhd2FYSxhjdxF07h8TADlezHf4QFTrJCTGwAP+ xmD1U6Gk9U5OOCx1qdFJ5AFXvVK2BSI/nDp5Ofk4eIsVDALMOF5Loi5igI2mR9gPgZUW3K qJ0cM/Bf0uTDdptfiS36WMyVgZNE4NM= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ihmIBQ+z; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727073393; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Uw73KvwOpZEe5F+ySsEdUb5xtFh6zNdeUMQvbiznrOA=; b=g8J4MBdAug3phRlPrq3I08qGcRXjVKcIcnWBDx6f3VGaeP58JXid6/etbkF6h++sPB/qvu IpP6s6XGSJPkZcCUcQ7mdOJPRNnDhVHLHg3S+f+7yOlsdnns7bpv3Em6iay9pITyKISfeV I9wXrNGPQNdTxGJvrlkE/4mxBeMsqiM= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3E08F5C5759; Mon, 23 Sep 2024 06:37:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 874E1C4CEC4; Mon, 23 Sep 2024 06:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727073451; bh=YU5IHHmdIwhRVsCe/Ns40p8QPGMWO6o0pZ2uibjaigM=; h=From:To:Cc:Subject:Date:From; b=ihmIBQ+zGDDXAyKxoZWjS7S63fCG7SqoU0IcFRn7pV3iCPR6CScg4eMUtrGrstZKu 54no9xbdAL4wzBtbf9pDq6wB5nWIjuuLQcTlr3DMWCNDqS78Z1LJ3m0lTqEKk5Hi6x c8htul2IhYQOltrFn85mNzcrRG68GC/HUUf4+fzySgIPBUyHdi6X2kXc5mEyPtnzm+ QMmhdhLqPvtpaCMrlhDgPO/YcMzqNtH4mgz4hZ7ZafJqyBfhoRrkXSgjfoA4X07q2B sxkKbSQDlUaaDYCBRYKiCYGj01K+MpkyJLWom4Brw6ITnhpBaJPZi5X2aGrOnUL9qL FDo0V3YvzpouQ== From: Mike Rapoport To: Linus Torvalds Cc: Mike Rapoport , Alexander Gordeev , Andrew Morton , Christian Brauner , David Hildenbrand , Gerald Schaefer , Heiko Carstens , "Liam R . Howlett" , Matthew Wilcox , Oleg Nesterov , Vasily Gorbik , Wei Yang , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org Subject: memblock: updates for 6.12-rc1 Date: Mon, 23 Sep 2024 09:37:07 +0300 Message-ID: <20240923063707.40017-1-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Stat-Signature: jw9drmmosg6cyanpdt7ifyz4uh48k6ce X-Rspamd-Queue-Id: 4768D40009 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1727073453-687459 X-HE-Meta: U2FsdGVkX1+bmWBAEEvHTdmjcqieEaZqxd/8MNLS+tqcPTbxYReyvE2/8WR56L2VGJfgIr81DBsu3yBWyClJQdWxd4SJAT/yDpOfmPXgjjY3uCEz9PdLYOigiCuyI655tRUSJtZyd+73yqw7rxDpwiDkHX7AGmSqfa5sm6JsegUI6fNtPuGr4bw7/CVZoc1laqNOrHACJo5ZDzIo9lNy80rEDWfzRX8WLoimy/UpvYy+UN7VCjlEGHAWWlQ6cA8GVMvskuJrkyW9pdjDoFFrtbT0Dmee/jTV0Ys40otsWR1GN3bYIt/Ldlp22V/5jjw42GDLj9vflVsDyWz8lN5qmWRYN/ODo8ROdpLTJOsPGEbiGA7/DlUH2+Y4Ln789E+X8i6wy74VRn2p0lNb/5oMsL70EUHO3Nri7BvFRReGXsl17i0/NoQNRvisIgm0dMFfK4W3+fwPKN/Jn0WEYkpoK1uAFI1TmN4/u8ZEg5tIKKNhsFjo6hb9B27v55yILpSvqFIKbBR37k3Cwu7WwUDWDL+aQZX+xrznriLkfb9rYV/8zguAU3+5b7L6DOknlW7k/T9/YOmW8GfzqEXZTSfz9ZzKEIC4+0v2YYsFFMK95Ch6pLU3E11Qf4nkYWnEjIWnrtmVM5IkAjjJ7cWT4csoESJLTwF34dUAVer1KInN//IJBFUyQ0hWICndIAdTPFjcICGo8GxvHMqLxJRVoZ8WXKmaL0qnXS/l+1iRZn63RDGEMwsIXtipvc9gMyDSidWafaxly7OeBSYUUMND8/msBL4m8QjK23ajqgrAW5klNwSqwZTZ5rdckzanS21wfhsfYRfHQHFz5kBPiXK7xz8Sh+STSJvrPZCK3G124wOYT3z6tYiguXGvkmuB0wFF8krq8WCWsFE7mrrypglFoSI945jrz6O/io6aEmpgk5AUJw1tBU5ZFwIoG0Ckl9888rF6fqAJyAbcJtTsPcPZQEE 2R8h1U6N bRNTgBnCEwOT1svUmd2Ks+KfomHBWGOgsq013itSkdz62RmV6XdkQMm9YlXON0xNHr+mwIBpe5hT/WSOdOUbf+a/8J25QXxATsRMQIEnly+DdAOhgAScp9zwAiSXNOoziitBoS1QcuQgMhwdbguhBcQVLzggYcqn+7+Rpjtg2eoXb0KTUrwDHVc/7iolbu2zPOOQRRol9TVy8wHWlThhyAEyzy6P9JMw2ZH4M9YpFp0BFkowKJd7jq3+tRhsSptNp6beVKnzq/JAd0+B5+xWXGw60JsHkYUQKoPXE9edU4jc19MtTeVv7hVNQfw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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