Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp321902lqh; Thu, 28 Mar 2024 03:12:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtvmYvjdE6GNeH8Q+pbop0Gc5nQUX+mBkYtX3BFA4Zc48j77G0eVumhcfpM2S86juXYWpaqxil1VYYLTQF18jZKnAfgrqs22wiGYUgbA== X-Google-Smtp-Source: AGHT+IHGW7Xe0b9Yng3dRnS61g+YMHxkK8h/yLjnWob37Z/iWoUACMXvVqKCdhGiu0x4ywftAdZu X-Received: by 2002:a25:30d6:0:b0:dcc:3a3:9150 with SMTP id w205-20020a2530d6000000b00dcc03a39150mr2482198ybw.22.1711620755614; Thu, 28 Mar 2024 03:12:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711620755; cv=pass; d=google.com; s=arc-20160816; b=ciVmt4jrNsVE5wzF8G5+ibuGNpfxI+TD9VaSSIwNqQCMgbaU2zBByW4dcr5ENmNcGZ 5JlnmcClQzDGHTQwU9g6ExFePaXxU7jpBEYddogx4DglbzDlXrqkIAvZITK8XcV7Pf/u g9y+v1yj3lmC7XYMTXZ+FwtNjXKQ8gYxMifr4nB7GfVSK22iRprw+A7tsoQGfqofjdD5 724nKZTKc2kbeb5J+0OEVSQFWuOp3cA7wEJ4ZOpiCiuS0qxTX9fzJiF+AtSe+c1xvBj4 JLTlr3QeYm8ziVaEKa/FEpg9akUMwPUbENIj/fWmhYKYBGQQP6VNY6KLoHkTxlcQIeIY eI5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ZaSV+SGY8z8xpVQwLVBnFRhPA4K4td79JCknNo5epR8=; fh=hY6DSyZzuuSNsx03b0wKjVp3ygkrOF91hWgH0Yi/JLc=; b=00acAGe101J4zctT5W5Lsb0MRpYJrXZoZHJGjmnDCapjF8xWzVk1IFrITIRthpTLpE wDLViLw9LE5a9wPMfzHNdKCkXiAhTTAxunOeZM96muzHBaLs/QSmaUPqrBv43IouRFX2 Rn2pyETttUQce9BVtCFJOuvj4wqQlvjo8bXrDQSg1yqDA5e03L8IoQxDYsR2F18LwgDH TBJS/JQiV5EccTJz+LalXf8BSjJuVWB1yJpp1OoFAkJop6+ea0cBk5HpfM6/1cF+fUOp bUvvEiYhqLBpvSOtmzyIFs/BE78cLYcAMPPe6VzNM0s7pMVT9NfWwbD4+BrEDp/I2UEX RnVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l7mAlx9I; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-122754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id qd23-20020ad44817000000b0069682ce41e5si1084050qvb.174.2024.03.28.03.12.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 03:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l7mAlx9I; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-122754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122754-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 458951C21A14 for ; Thu, 28 Mar 2024 10:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 062637C0A3; Thu, 28 Mar 2024 10:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="l7mAlx9I" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9B9A28DD2; Thu, 28 Mar 2024 10:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711620747; cv=none; b=hTaxagQV1SqeO+HKBFN6Zbp1q3LDf3OseA3sThiFFd58uKr/LAfoDeT1t5D+bFNJbVmiyuiixNeNzVOEDH0xlQQat3fpiloDlaSyOJH6Q4RecLuEYAopUoM76h0PKzhfSNxkZ5Gpwjg3eFNFDJKbyRzLzhbz4w5GbLAGsObMLRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711620747; c=relaxed/simple; bh=IBseJtEVdKixpDWmfRv1vc/DdeQwRLSFWGuoAtvnUDQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YexmdMQQ1sCEPGlBglIHzCewK1wbC/VZ0M06eVMUPZPyJ48tRD7BA+Xue/TqCkPRp9UoqtH/FAfqgPix9opiz3aATHu8R3AniAIRp0O9HrnDWi3GX44NppT9L3Amf7AenwbTTbNIDOLx45EDv2ch32h+uF/m+ERrQJa0ftW1p34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=l7mAlx9I; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711620746; x=1743156746; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=IBseJtEVdKixpDWmfRv1vc/DdeQwRLSFWGuoAtvnUDQ=; b=l7mAlx9I4CtpiIN2QBxbWcdUzr9rfX7b/o7KtsYwD37sUt9MUtakKM2Z gWhYOFabTRJzi7squ0KUvoIKo5t0lprB+T72AOxP3FOwiUOoxr2phNU2/ 6Ox2FHqKGuvxxiDtQhsbcM6+P1s25DRwnGp4sZDnIP5BL3/wjP/uWj3oC 0nU1gCyEMlh9oF1FHXG4uCuhXseIRNjj1jSytFmbNkpQ4gAvbHjo5pwzb eWyGQUj9wKFeFcJITNCrt1ATaxxv/i4P9d+6iAJ3J+dlz/LTHNboKGp8S i4cWSfy7FNYrUS/Y8s0VjQYoKrgEQbqC7pCOmVoIN5Gc55hjLI2NE6ufC A==; X-CSE-ConnectionGUID: /1qk2lJMTv2kKaoK8fvzTw== X-CSE-MsgGUID: OhtSu4EhRvmXBXrNid1ZhQ== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="18199784" X-IronPort-AV: E=Sophos;i="6.07,161,1708416000"; d="scan'208";a="18199784" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 03:12:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,161,1708416000"; d="scan'208";a="47586339" Received: from dapengmi-mobl1.ccr.corp.intel.com (HELO [10.125.242.198]) ([10.125.242.198]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 03:12:22 -0700 Message-ID: <97b5d746-2f65-4063-a33a-5556421fa481@linux.intel.com> Date: Thu, 28 Mar 2024 18:12:19 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [kvm-unit-tests Patch v3 06/11] x86: pmu: Remove blank line and redundant space Content-Language: en-US To: "Yang, Weijiang" Cc: Jim Mattson , Paolo Bonzini , Sean Christopherson , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Zhenyu Wang , "Zhang, Xiong Y" , Mingwei Zhang , Like Xu , Jinrong Liang , "Mi, Dapeng1" References: <20240103031409.2504051-1-dapeng1.mi@linux.intel.com> <20240103031409.2504051-7-dapeng1.mi@linux.intel.com> <359fe9cf-d12b-4f75-8cae-7ce830ec76d9@intel.com> From: "Mi, Dapeng" In-Reply-To: <359fe9cf-d12b-4f75-8cae-7ce830ec76d9@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/28/2024 9:23 AM, Yang, Weijiang wrote: > On 1/3/2024 11:14 AM, Dapeng Mi wrote: >> code style changes. >> >> Signed-off-by: Dapeng Mi >> --- >>   x86/pmu.c | 3 +-- >>   1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/x86/pmu.c b/x86/pmu.c >> index a2c64a1ce95b..46bed66c5c9f 100644 >> --- a/x86/pmu.c >> +++ b/x86/pmu.c >> @@ -207,8 +207,7 @@ static noinline void __measure(pmu_counter_t >> *evt, uint64_t count) >>   static bool verify_event(uint64_t count, struct pmu_event *e) >>   { >>       // printf("%d <= %ld <= %d\n", e->min, count, e->max); >> -    return count >= e->min  && count <= e->max; >> - >> +    return count >= e->min && count <= e->max; > > I don't think it's necessary to fix the nit in a separate patch, just > squash it in some patch with > "Opportunistically ...." Not sure this, I was always required to use a separate patch to refactor the code style faults by reviewers. It looks a unwritten rule for Linux. > >>   } >>     static bool verify_counter(pmu_counter_t *cnt) >