From patchwork Tue Oct 8 09:41:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 13826117 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 524BDCEF149 for ; Tue, 8 Oct 2024 09:42:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D41976B0088; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CA8CE6B0089; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A080B6B008C; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5D0A06B0085 for ; Tue, 8 Oct 2024 05:42:04 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 84CB11A1AC4 for ; Tue, 8 Oct 2024 09:42:02 +0000 (UTC) X-FDA: 82649943768.24.A5A4922 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) by imf28.hostedemail.com (Postfix) with ESMTP id CE09CC001B for ; Tue, 8 Oct 2024 09:42:00 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728380453; a=rsa-sha256; cv=none; b=phXJp5Mf66xD4gUyFFkNn0GG7CioyD/jB8DA7bQv0LGrNNj9pfh7ACKwDEIdO1DekJYc1s +PSscjeMya4OO77o3Lp6C2T+gIcCoVMZ1FM88/3MCEKUL9O/x734cjifOU373FdL3Ol0WM Vj1HLiUFSEZTlZsOieTcO6WVsBRcqQM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of zhangchunyan@iscas.ac.cn designates 159.226.251.21 as permitted sender) smtp.mailfrom=zhangchunyan@iscas.ac.cn; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728380453; 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:in-reply-to:references:references; bh=kKq38tJdIyE97qlA8Mh3eI3UDwxYmYHFZDs5JIEzmQ4=; b=INuLQL+5KtrrgRaN7tjLgfo4WOexWBqeZK6xtgzcshC0M7ksRaeQhdbM4zAa/XHKYR7B7N v8QEFJbp+gbRwzSZVBtPsgrWiXXQ/kKddPWNwLDP+DdzcsWTHA/H+J4RL8FLLL/Hfbh+IA 0OABJSZQMun0mhpVv0j9faLsGscHuM0= Received: from ubt.. (unknown [210.73.53.31]) by APP-01 (Coremail) with SMTP id qwCowAAH7nxf_gRnEkoDBQ--.54511S5; Tue, 08 Oct 2024 17:41:52 +0800 (CST) From: Chunyan Zhang To: Palmer Dabbelt , Andrew Morton , Shuah Khan , Paul Walmsley 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 V2 3/4] selftest/mm: Fix typo in virtual_address_range Date: Tue, 8 Oct 2024 17:41:40 +0800 Message-Id: <20241008094141.549248-4-zhangchunyan@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241008094141.549248-1-zhangchunyan@iscas.ac.cn> References: <20241008094141.549248-1-zhangchunyan@iscas.ac.cn> MIME-Version: 1.0 X-CM-TRANSID: qwCowAAH7nxf_gRnEkoDBQ--.54511S5 X-Coremail-Antispam: 1UD129KBjvdXoWrtr18Jry7CFWktr1UGF1xKrg_yoWkArX_Xa 1xtw1xArWDCF1Y9r1rJF1rur4kC3W5WFs7Gr1SqrWfJryUZF4fGFnY9r1kAF1furs8GFW2 yFZxJFZ3Cr45ujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb9kYjsxI4VWxJwAYFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7 IE14v26r1rM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kIII0Yj41l84x0c7CE w4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6x kF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv 6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c 02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVW8JVWxJwAm72CE 4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lc7 CjxVAaw2AFwI0_Jw0_GFylc2xSY4AK67AK6r4fMxAIw28IcxkI7VAKI48JMxC20s026xCa FVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_Jr Wlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j 6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr 0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUv cSsGvfC2KfnxnUUI43ZEXa7IU0U5r7UUUUU== X-Originating-IP: [210.73.53.31] X-CM-SenderInfo: x2kd0wxfkx051dq6x2xfdvhtffof0/1tbiBwoEB2cExpL0xQAAsI X-Stat-Signature: nbeoc1wmrq9h8k8btqts8bg55ej39nsi X-Rspamd-Queue-Id: CE09CC001B X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1728380520-34509 X-HE-Meta: U2FsdGVkX19WAzJLk5H/ozlkmZuLOeM1xAV4rGyFdMorRk01+w7fZGY20osVoMoNUneSDSlA4C0ulg2gsjxOANvhWxE/5LR5cVDdzjHl7IBkxabGA+08CuykvjVEfOLmoRkdcNWu70rdT5/djjVFWhN6RpnmtY7DsQl7uVLnsGNH8awcMmtkWPiMD6oyzHwjpU4zNxMUZ+zhVhhldM7EOrvcPA7xsG4/Jlv3iBmCL3j9r5b+AXSkqNrO5nKEuCHn3SZ4PZEzKNXjphJwEg388xPAc/lXhkFiF+BnyPExAUxe10Ahaz+FAPqgZ3VBoZ3Z/yYLPdlqIyLa80BgTcz0NHre2FN4BXrotFIR0X0ZCKPU8Dxzm4QltDSzFROWJxGsYxyqESSso3j6K5dRGOSa7YkWbaY1DNQsM/d0GyiIVtHSECg0eP7rhybnfwvS/zVAlkzuf650BUmkcqCA5drzo6oY7DMLz84FlSOof/ettzNA6RTrtSQqJwAFtIrtj8YJbckSMTb64qvNH+MTtDwTw0vux2T2Ekg690RpYTLmP7hvCbuVNgsS9Y8KpKJNVpuAZd0wvmPvHpCtJtPpLR/eXsPvMiOHf7IO+4dGtxk2x+0btk88m3V2cnyUuHmBuzJ5a0Yy+FwoTM2NjUcYgg4lQspQek//k+BZsVLmfWXfm33WGSgro2G1iMiLS+9IcJMVBqQC/amDQIWLH1fRl8Jse3g/OKamsT19q4ud+XlcsYYPnWOBsvE8uHhDuoZ0RrDKfeAFkplqmRy5El7U4IJxxvfx/mhiDOkbbfw/oG1/cn/2SxtV3eVlQFcfNcAo46ROVT0A7nhCTqYw1u55a/xBUYWo81KF1ScoLSK+oE1fFCRu57ZmoNFWsIg3f9wqMyf/usuuX/RNxCpV6S+zV7VKzJ9sy/9OD7cu0I3K2/jkXf6E40choDlSpuizgTiGY4je0fgTF+3tUjxhimaYl4V W+wHZWct NzLK7mHCdwOHkjPXCcPTaf7xSDtyr1TQy5l6kcAu7zv5fJngh1K/JAdz0fUaHjt01YtLSOfRcVnERyOwMwoyYfuK/ZqDoClO55okQlvMIUR2mHdc8rm3XmtcHTpqhnghGWt6rMQlStsLShCST+tKIjEf2dgIqnmkxkOazoKog9oMPLpimdk6N3KfZs5Vg4+0ieFMSKn5uPWF5HkLXZMVy6byKyoCrObG4hIAsAz9vM/KSjamXmtaNKdYOTKFsH5E1EK24ofV2jO7+SkiTcFlzmlX5iFyG6gLXgtQKhoP8BnMjOU/HHx1rxrKKYxi7JjWJypjBv7EYTac4b1J88uitjIXOVreAyHfokdBx 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. Reviewed-by: Charlie Jenkins Signed-off-by: Chunyan Zhang Acked-by: Palmer Dabbelt --- V1: https://lore.kernel.org/linux-mm/ZuOuedBpS7i3T%2Fo0@ghost/T/ --- 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);