Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2449143imn; Tue, 2 Aug 2022 03:18:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR54z7VhbXwr7sxdd9p9eYJ36BaYtaYI1A1L1HI/T/YbB4YgxL2ZrrLbe4arbR1StWE1mCI3 X-Received: by 2002:a17:903:2444:b0:16d:baf3:ff06 with SMTP id l4-20020a170903244400b0016dbaf3ff06mr20196409pls.148.1659435539389; Tue, 02 Aug 2022 03:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659435539; cv=none; d=google.com; s=arc-20160816; b=SzAskLVUqERK+VK/tSKNZ7nsotZyzEz0CCb1vyCF7gkSQnJyL6I+DVfhmnHcGBUipq xsWTgc4IewX1OJMdXv1zDVu6Zo/EL5oTWIY2k1eFBZd06DXHJI+5M2v2BrGYdcTJwzUq /ayTgtRdoTGKOKezuKyxKmBiVQDITLNA1RKzPviHyLts47T8Mkyy1EjCpSP+AUXV+gtl x4SosYrXQDqa6ncLfa+R1oIJ918PLBVrfrxmmmpUuvelvd87KCzGBg0GGj+8vbviBshR v/XoLG2vY0QGPNaZA6Z1U/2lhU0m6KpUkwfEDjsiSdIaRt0XI5Qr/6e1YD7E7HvkFg1Q FHyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=Ay3K85QSYV80PgriqnDkVzOzpOoV2c7weEjvxL7cKPY=; b=AS6TR5Qcrfc/hKHaK29M1dcbyHH5VZX46mbvUvFzhBCmXpRDq5/bBxrSGh2HtmHPru 9wiKv0J3R/bBL0HfuyFqRKg0sUS+ykKeblWt2UEf1CY/6NKVYCUT35c7NilXavpOCGcs o2zV5ngV3PDWN/gdq5DpqlFN4wMs34gOuR81VFiM4HSCoo3cNHfOiDuVB0hGsC8RzHmh jNw3NApHanGwPf45V71G1g2V/Sbew5rXn6DTrIyUjY9JkoTWcj5V5p9RmsCEGgpudmXg M5GUmGAfbAyvwyRb5kwP1INNNf7D1Crtzh/SKnF1KRNcT7JBwstRfCUXoDwmp1hbpWen warQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EErbkf1W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s3-20020a170902ea0300b0016c009d3ca2si8943551plg.7.2022.08.02.03.18.45; Tue, 02 Aug 2022 03:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EErbkf1W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236452AbiHBJ74 (ORCPT + 99 others); Tue, 2 Aug 2022 05:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236387AbiHBJ7y (ORCPT ); Tue, 2 Aug 2022 05:59:54 -0400 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A70E64B0DB; Tue, 2 Aug 2022 02:59:36 -0700 (PDT) Date: Tue, 2 Aug 2022 11:59:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1659434369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ay3K85QSYV80PgriqnDkVzOzpOoV2c7weEjvxL7cKPY=; b=EErbkf1WcAr23f4tDfnoXIoO0O3PzqBeahzq+IrvtLYahUN8X1lozZfc8KLspUvcI8bC3K /RVI1FQzZ5rR/uRwPesjYsuGiRRupFhPMq0UD2y/MpEXY8Bk+BaRC7RlvwmvtiVMZkv97n t4Ehm3/+JhXlpZS2pZp3IlEVjJF7DFI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Peter Gonda Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, marcorr@google.com, seanjc@google.com, michael.roth@amd.com, thomas.lendacky@amd.com, joro@8bytes.org, mizhang@google.com, pbonzini@redhat.com Subject: Re: [V2 01/11] KVM: selftests: move vm_phy_pages_alloc() earlier in file Message-ID: <20220802095928.ex63dnyilii5raeg@kamzik> References: <20220801201109.825284-1-pgonda@google.com> <20220801201109.825284-2-pgonda@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220801201109.825284-2-pgonda@google.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 01, 2022 at 01:10:59PM -0700, Peter Gonda wrote: > From: Michael Roth > > Subsequent patches will break some of this code out into file-local > helper functions, which will be used by functions like vm_vaddr_alloc(), > which currently are defined earlier in the file, so a forward > declaration would be needed. > > Instead, move it earlier in the file, just above vm_vaddr_alloc() and > and friends, which are the main users. > > Reviewed-by: Mingwei Zhang > Signed-off-by: Michael Roth > Signed-off-by: Peter Gonda > --- > tools/testing/selftests/kvm/lib/kvm_util.c | 145 ++++++++++----------- > 1 file changed, 72 insertions(+), 73 deletions(-) > Reviewed-by: Andrew Jones