From patchwork Sun Sep 4 04:23:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rebecca Mckeever X-Patchwork-Id: 12965122 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 C8ABAECAAD5 for ; Sun, 4 Sep 2022 04:23:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 55A0F80183; Sun, 4 Sep 2022 00:23:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 509C68015A; Sun, 4 Sep 2022 00:23:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3D13480183; Sun, 4 Sep 2022 00:23:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 2F2028015A for ; Sun, 4 Sep 2022 00:23:52 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0519680B72 for ; Sun, 4 Sep 2022 04:23:51 +0000 (UTC) X-FDA: 79873109904.18.F5EA78C Received: from mail-ot1-f68.google.com (mail-ot1-f68.google.com [209.85.210.68]) by imf17.hostedemail.com (Postfix) with ESMTP id B49CA4005A for ; Sun, 4 Sep 2022 04:23:51 +0000 (UTC) Received: by mail-ot1-f68.google.com with SMTP id q39-20020a056830442700b0063889adc0ddso4192895otv.1 for ; Sat, 03 Sep 2022 21:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=1Zf+3VluTf2veyGKPV597nMSAXr4oCS9VnEuD4NhVeQ=; b=QLhrVd8eJct8PH7G1zUmHfOHMCyHIYvSW0fZNbyH4dR5GWalC2H74+NgPHp76R72LJ gerIJTfagCqF/bJ7zTigZo5mfxpSFDf1OqGMOle98k5XUYqeV75mtnNHfjS4TJfHtVvG NM1tmyHOsBDl3DDqfHiY3+pfhgppX1LGas7qQ4ABX/AOa+FaWn9RJX3vJ5bHTPx7ztTQ j1u2bk9kNeDwo7LM12y8tAQGSyLAROLpVE0ulldpU5ocvZYlPe8VZn5NpWtMtLwA0anX Be/AHZgAp/qge+pSQwSa4y0rzJwlifvW1YcGgh2sc5/QCOjyKFhFnPpC5fwP1awO0emE 7cOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=1Zf+3VluTf2veyGKPV597nMSAXr4oCS9VnEuD4NhVeQ=; b=jbIgnb0x6D6p8G1nTkO+3wYY9ffZkMk2EMMY0/tCAoYe9rmbgt+PK6+Lzdza0lWbwT tcPALXINjqhFx3tjU40AsKDYVQADqWp4iKsoh7EOEuN+TuUsgA23L0Aj7/U7zlMenV0G C4YVfyLg/jm8UrTJnCAKV1PdMNHMSpKQ6DutdR+2SWvW2MDP2AzBXxKvln0XxZngqoac D2eAqPzIynb5bSh0JUjQSWgYb7fuFyf68XJUS8JphW/hTUX1UP4oPgvETwo8udecsVSU rUe0pZ52WPU4zo4n++LOqr6g9zIU3ZzWWXHJ8s415TJ8cnSPjRNmkPeOrmCe6tes3Yd9 w8gA== X-Gm-Message-State: ACgBeo1z6V4hFsSOQAiTMRc1HGYaiRNDyeKfYvLylWVlbyfthyfb+j4D VkhD6Z0xj+xQp0Q6TFO3f/0= X-Google-Smtp-Source: AA6agR4jh5armIKKqupi91gquZRzhVPMBXYvsakzn+kcELswsdOIUc7hqXcr+zsI2FXdxnWJncjsGQ== X-Received: by 2002:a05:6830:1017:b0:637:163a:38db with SMTP id a23-20020a056830101700b00637163a38dbmr16546453otp.89.1662265430886; Sat, 03 Sep 2022 21:23:50 -0700 (PDT) Received: from sophie (static-198-54-128-109.cust.tzulo.com. [198.54.128.109]) by smtp.gmail.com with ESMTPSA id u42-20020a056870d5aa00b00120f7de7f6esm3196185oao.58.2022.09.03.21.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Sep 2022 21:23:50 -0700 (PDT) From: Rebecca Mckeever To: Mike Rapoport , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Rebecca Mckeever Subject: [PATCH] memblock tests: remove 'cleared' from comment blocks Date: Sat, 3 Sep 2022 23:23:37 -0500 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QLhrVd8e; spf=pass (imf17.hostedemail.com: domain of remckee0@gmail.com designates 209.85.210.68 as permitted sender) smtp.mailfrom=remckee0@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662265431; a=rsa-sha256; cv=none; b=XI1CazRSjcNz0Yw6WhRyGPNR/sHO0O/yDSIz9JEFhMuwLYGtKa9Ra+Au87Ok20tduwuy/q qmxdkbPSG0Gq0ctSPCs+k23SZfyy7abXY6XuiBeY1AU5eYaDhpcT++lkXBuGPsTAlcOxR4 ftzp8BdrWpAmbA9WMxUjq1KBXjmIBS8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662265431; 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=1Zf+3VluTf2veyGKPV597nMSAXr4oCS9VnEuD4NhVeQ=; b=vC8oQq5hpaHGFriVeOeSZtvfNCyPDB1jD4EdrqmvmpGUV+6ZdBp0bLqv9eNDaNNqGs3a0o YEUfgkqJYTLMTIS9CJKsaanst5mR9yNbKUe7ExVubaDEdKxjrdV6IuB4TZzmAUcYKUUF+b F+kZ2rID/+8Eyyhgm8w9/Basmdj8Hcc= X-Rspamd-Queue-Id: B49CA4005A Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QLhrVd8e; spf=pass (imf17.hostedemail.com: domain of remckee0@gmail.com designates 209.85.210.68 as permitted sender) smtp.mailfrom=remckee0@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: sjy77hrbyksd57for658m17rua85sc5z X-HE-Tag: 1662265431-985164 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000012, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The tests in alloc_nid_api can now run either memblock_alloc_try_nid() or memblock_alloc_try_nid_raw(). The comment blocks for these tests should not refer to a 'cleared' region since that only applies to memblock_alloc_try_nid(). Remove 'cleared' from the comment blocks so that the comments are accurate for either memblock function. Signed-off-by: Rebecca Mckeever --- tools/testing/memblock/tests/alloc_nid_api.c | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/testing/memblock/tests/alloc_nid_api.c b/tools/testing/memblock/tests/alloc_nid_api.c index 8f25c90c2300..77f83f31c835 100644 --- a/tools/testing/memblock/tests/alloc_nid_api.c +++ b/tools/testing/memblock/tests/alloc_nid_api.c @@ -41,7 +41,7 @@ static inline void *run_memblock_alloc_try_nid(phys_addr_t size, * | | * min_addr max_addr * - * Expect to allocate a cleared region that ends at max_addr. + * Expect to allocate a region that ends at max_addr. */ static int alloc_try_nid_top_down_simple_check(void) { @@ -95,7 +95,7 @@ static int alloc_try_nid_top_down_simple_check(void) * Aligned address * boundary * - * Expect to allocate a cleared, aligned region that ends before max_addr. + * Expect to allocate an aligned region that ends before max_addr. */ static int alloc_try_nid_top_down_end_misaligned_check(void) { @@ -147,7 +147,7 @@ static int alloc_try_nid_top_down_end_misaligned_check(void) * | | * min_addr max_addr * - * Expect to allocate a cleared region that starts at min_addr and ends at + * Expect to allocate a region that starts at min_addr and ends at * max_addr, given that min_addr is aligned. */ static int alloc_try_nid_exact_address_generic_check(void) @@ -201,7 +201,7 @@ static int alloc_try_nid_exact_address_generic_check(void) * address | * boundary min_add * - * Expect to drop the lower limit and allocate a cleared memory region which + * Expect to drop the lower limit and allocate a memory region which * ends at max_addr (if the address is aligned). */ static int alloc_try_nid_top_down_narrow_range_check(void) @@ -649,7 +649,7 @@ static int alloc_try_nid_reserved_all_generic_check(void) /* * A test that tries to allocate a memory region, where max_addr is * bigger than the end address of the available memory. Expect to allocate - * a cleared region that ends before the end of the memory. + * a region that ends before the end of the memory. */ static int alloc_try_nid_top_down_cap_max_check(void) { @@ -688,7 +688,7 @@ static int alloc_try_nid_top_down_cap_max_check(void) /* * A test that tries to allocate a memory region, where min_addr is * smaller than the start address of the available memory. Expect to allocate - * a cleared region that ends before the end of the memory. + * a region that ends before the end of the memory. */ static int alloc_try_nid_top_down_cap_min_check(void) { @@ -736,7 +736,7 @@ static int alloc_try_nid_top_down_cap_min_check(void) * | | * min_addr max_addr * - * Expect to allocate a cleared region that ends before max_addr. + * Expect to allocate a region that ends before max_addr. */ static int alloc_try_nid_bottom_up_simple_check(void) { @@ -790,7 +790,7 @@ static int alloc_try_nid_bottom_up_simple_check(void) * Aligned address * boundary * - * Expect to allocate a cleared, aligned region that ends before max_addr. + * Expect to allocate an aligned region that ends before max_addr. */ static int alloc_try_nid_bottom_up_start_misaligned_check(void) { @@ -844,7 +844,7 @@ static int alloc_try_nid_bottom_up_start_misaligned_check(void) * | * min_add * - * Expect to drop the lower limit and allocate a cleared memory region which + * Expect to drop the lower limit and allocate a memory region which * starts at the beginning of the available memory. */ static int alloc_try_nid_bottom_up_narrow_range_check(void) @@ -1027,7 +1027,7 @@ static int alloc_try_nid_bottom_up_reserved_no_space_check(void) /* * A test that tries to allocate a memory region, where max_addr is * bigger than the end address of the available memory. Expect to allocate - * a cleared region that starts at the min_addr + * a region that starts at the min_addr. */ static int alloc_try_nid_bottom_up_cap_max_check(void) { @@ -1066,7 +1066,7 @@ static int alloc_try_nid_bottom_up_cap_max_check(void) /* * A test that tries to allocate a memory region, where min_addr is * smaller than the start address of the available memory. Expect to allocate - * a cleared region at the beginning of the available memory. + * a region at the beginning of the available memory. */ static int alloc_try_nid_bottom_up_cap_min_check(void) {