From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B75D1459F7 for ; Fri, 13 Sep 2024 03:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726197379; cv=none; b=ejilfbyij1IBJJbgequ/VWJGnDWJvKJOX8drsj8QHBl21f7fp05/vKlZVTkout0+OubWzIpqwZDq7om7YNQL4GaF+iLYJ6LeNimDwJvGHB1NlZIDaFXFpnFAYTTc7O2FsPjw4BHKPDKY0Px/VgB4amXW39qbTTVG33OET0NR68E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726197379; c=relaxed/simple; bh=70w5PmhQTmIIwpI8MXLURAsLlFUb4hIJSDuuCmsAO+s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P8sSOkP56GPK5jMY2GHe3UzPGdNNzQpUOWHOzIbpyBwW7Doz1qrdzsCRe2wh5LYEHLp8mWt3SlwrLoMcF4/8CjRuuEa2pfn9uxrbP5EpGUKdSa0MztNzp1gjzfvHqUOuhI69F6pubKMI9qZOf80rrCZx6dgnpVo6HxBcEwFN7HQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=BUUgnEL1; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="BUUgnEL1" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2db85775c43so1175012a91.0 for ; Thu, 12 Sep 2024 20:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1726197375; x=1726802175; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qmIqDIRKmZ3iBqg4fjUfRWxUySLwSHYWorSaFVgYpdg=; b=BUUgnEL1J5zbjoUXXTJKyKtDy2PGWJsXoDjocTr77p/ShA4vLUX77jbRGVuUrFx/1B Wjv2LryDF1mad2cTymd1W7oP5ee/YF6cttl2+tG/jJWZyhMXGYXTOQSJPCRzyF97b6tB 7aBJFjbP2HTBLCExEQOlrKZQYk9kksrd5QWO/gvzQripj4cymU+YphEuDU1XBkaH2yYA VFiXtSzeMiFNUj/P7dhCfMJJzsXpLgk4rkUTfRVe5Q0fCHbWZriV5iO2Vq5mbqYEUWsc SHoyBgOjN9ADDf8f5AlKGo8/qwd8Idk043pOrHNh+t8euHoo5ayOKtFT0YM/b6hNmgL5 4f0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726197375; x=1726802175; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qmIqDIRKmZ3iBqg4fjUfRWxUySLwSHYWorSaFVgYpdg=; b=OzKRl9goVQGMwqypVYFxGRy7mxW93qg75IyLa1UF/NCEp38OQL0iuJ8Pi6kUEO+E5n IV1dyfE62gKuuPFfDb3+P4ELcAcolYgSLXePYKsl8+kCUGWQ2oamgr0utwJojSxgQEaR FFVyLUqwMGCjwWMMLFzlHOmHfp39a5aeeJJ2hefHT6iRBql1W0JaS7yOCj9VF1KtbURk h18VY3DnJ8dcxR9xCyOmbwa3Ezi6oUwFUGXqtO9A7rvR/kqUOIcBVm5YOzEkEPEQEynM WllSu90uZrozqmpX8uvwkn0B02keJlZHlG424QLKM6NeVl0CUzD0jnrhPBSiV45+Wuef 9Kpw== X-Forwarded-Encrypted: i=1; AJvYcCXoQZMYWtywgDwXV2mdRbrRWAZiQjDb0mlUGyR9r6C4gxBWM7sfQS8F1cyIDFOhOuCRgQYvVKuUQaoDI8Gm80s=@vger.kernel.org X-Gm-Message-State: AOJu0YwezO9E27qPOk0zn6KuS121BKKHxTlARM2CZpp5QDTG5MfGMUPU WqqAeTTZKEeL4rvwxJz6/l8R5iqlzJmY66341VeRatB8rvtZK+9EI6oSr2sKPVE= X-Google-Smtp-Source: AGHT+IHofoEYfpWNv4esB4XO4Rim9SF/7infwEOUPzQiA3C8UNukICHiPv0hDgZfogm6+/vqio/R2A== X-Received: by 2002:a17:90a:a408:b0:2d8:7a2d:62e1 with SMTP id 98e67ed59e1d1-2db9fc1bf64mr8322148a91.2.1726197375526; Thu, 12 Sep 2024 20:16:15 -0700 (PDT) Received: from ghost ([2600:1010:b329:66c7:b074:429:f745:d035]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-207842d435dsm2339975ad.46.2024.09.12.20.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 20:16:14 -0700 (PDT) Date: Thu, 12 Sep 2024 20:16:09 -0700 From: Charlie Jenkins To: Chunyan Zhang Cc: Andrew Morton , Shuah Khan , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chunyan Zhang Subject: Re: [PATCH 1/2] selftest/mm: Fix typo in virtual_address_range Message-ID: References: <20240913022635.751505-1-zhangchunyan@iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240913022635.751505-1-zhangchunyan@iscas.ac.cn> On Fri, Sep 13, 2024 at 10:26:34AM +0800, Chunyan Zhang wrote: > 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); > > -- > 2.34.1 >