From patchwork Fri Sep 13 02:26:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13802944 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 D7376EEE27F for ; Fri, 13 Sep 2024 02:27:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 55EF08D0007; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E6BD8D0006; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33A138D0007; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 11E1C8D0006 for ; Thu, 12 Sep 2024 22:27:35 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id ADC2E1213B9 for ; Fri, 13 Sep 2024 02:27:34 +0000 (UTC) X-FDA: 82558128828.11.F69F7ED Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf21.hostedemail.com (Postfix) with ESMTP id 17D071C0007 for ; Fri, 13 Sep 2024 02:27:31 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726194447; a=rsa-sha256; cv=none; b=irJX9cb9IcLh8Mw/p1r1tCyu/OvPXZ1PUyL3bSRc/3uKnUhBCD83iH2+KXL2lkTugkkr1S yMfTCtjxpRtqp/au482QA7lo08l/B7S2nMfmkhI3VK4ti+BYd3FQ8JUg9yhLiBxy+DSchB DTmVIO0DfWUcZmYcVcssKpFHeluJxJ0= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf21.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726194447; 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; bh=/2FY4wL19nD9LdKKDAQXoBXLhfUbc5bE1dNXlDLsk4k=; b=TAY8HQWWrkgMX+kVW0/Y9Jut77sHukYURh6cIJwogyuCbktAksQm9guydDi7AMkQvHZqmp JOL1aySkwJT2PILDmlg2EwXoX5RUA17J9/9Im8yhzDKKqeHL/y7TiyLmX6Zj84qEQTN6x+ 63wGypL1qP2xy8B1QHF4/2exzXHov+A= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAC3vh4Eo+NmTrhAAw--.28619S2; Fri, 13 Sep 2024 10:27:18 +0800 (CST) From: Chunyan Zhang To: Andrew Morton , Shuah Khan , Paul Walmsley , Palmer Dabbelt Cc: Alexandre Ghiti , Charlie Jenkins , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: [PATCH 1/2] selftest/mm: Fix typo in virtual_address_range Date: Fri, 13 Sep 2024 10:26:34 +0800 Message-Id: <20240913022635.751505-1-zhangchunyan@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: qwCowAC3vh4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bIYCTnIWI evJa73UjIFyTuYvjxU7WrWUUUUU X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiBwsSB2bif7X3hgADsl X-Rspam-User: X-Stat-Signature: qhuithumxsbd7gmjdbw6838ny4r9nxe3 X-Rspamd-Queue-Id: 17D071C0007 X-Rspamd-Server: rspam02 X-HE-Tag: 1726194451-500257 X-HE-Meta: U2FsdGVkX19llGJveU42Dogv1NVpGKTwlt4ygW546aQ2+dHeBfgp8baGMVXZLwfsxfqYztFzaZmyQMntCGTL6trc7QmZKudwbXfejqb6Ixv6avdvP/1WO6qW2Bk9VkIn87IFvnJc47ishskqFxNz9DKGqLrGeiZuoUy1YFWZ69I8N+YxmD4FS8Yzr1rh0Xh6guZRIk+9WKsG9GXms11iCCgdQgixvTZHlWItZ+6HtCufA8clQgk6iSAFxLzXKG+JvBPSWP7HOnmdDGDYfFbQXdZyyMOt9E127xi9KajG6W+n0buGmnLtOferJpxoZZd9o4wVZeIaZiJx0CmC3WJl+AZjsB8/NyxRC3SXpZZBZ5LsuWiVMO9HYRxbG/EhkZckXyDamT38RxnTONv8qiktgEw7HxBTR3atmA/fgGVG82wo1qsncBADOz6sGKzgrZ4O83JP2VNynAZHvV9L0ucA0sVY47qgrNWKbNTo4bHfStzXveEyTdIFwp0+26D/HN7OxEPzH/O6yddd5HBtH0MvLWpDrySxe257OdOX15kVN9JjEM3Jgadl/8pyss/Knie+kno1yypA9ABEffWJNcRlKcu9tcjNY4qlaj7SCpgwKqrsluk4uhucT9dSqv5ZnmYLMmFifDr9WdDXOjJIILtXM3VIOA4CqLki0ouk2NoSLioslXQj9B+IYPHl8dfzh98K+mAGF9oGQgurrPovnaiCjc41i2yY4ILJ9HtEPNObZiqDTERTEJGqXKmxjHE1l2iKwwQvP9VBCcT/quIIsFJOg+3ihRSagYLHltrTJbeCW/vbrmgnoaPB0PS2qF/lOHvPVZToDdraHm/ROYpPJdsLjTt2djIzZKJlpZJEowr+Zjpk+kWMRTCIRLevokEa5WoOCFSUGTtK0VENRYEU9IeACIXsCYsiQWAJTnSD1i5Lqechl+OKtcFgovfRsFjIc09MxrQ6A7Pmf47YD3qD1X3 TNAh/Njs TS1YsRaN0vIeIc6wbg4pzjdplnegJcBT7yF7rcXqGzNzandQ033lJE74UEn0pKpnWsuwZ+mT/o/rIV3XPxkYIMcpceUS684UWud0uiQLtgSjImmtw0W/29PFs4NxQG6FqkKk1MRudnOgszzlh/hlPtiIkJHtyY7KZ+IZGeSpONKBoIcxWp/xNHcwNmhWhSUJshlg1ZAENxdZzML01zPITqS1qnQselwCjUTVVaGuxN9sq/NUzWLZrsW/C2MHIwMiAqbSBNjKc6R0G6D8= 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: The function name should be *hint* address, so correct it. Signed-off-by: Chunyan Zhang Reviewed-by: Charlie Jenkins --- tools/testing/selftests/mm/virtual_address_range.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/virtual_address_range.c b/tools/testing/selftests/mm/virtual_address_range.c index 4e4c1e311247..2a2b69e91950 100644 --- a/tools/testing/selftests/mm/virtual_address_range.c +++ b/tools/testing/selftests/mm/virtual_address_range.c @@ -64,7 +64,7 @@ #define NR_CHUNKS_HIGH NR_CHUNKS_384TB #endif -static char *hind_addr(void) +static char *hint_addr(void) { int bits = HIGH_ADDR_SHIFT + rand() % (63 - HIGH_ADDR_SHIFT); @@ -185,7 +185,7 @@ int main(int argc, char *argv[]) } for (i = 0; i < NR_CHUNKS_HIGH; i++) { - hint = hind_addr(); + hint = hint_addr(); hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);