Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1028462lqb; Wed, 29 May 2024 19:45:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVnGzEQhoqz4Yo+hURyHMMbmAXBp0uvHNIv+9yp39P/xzGpqGleo8UOWGVnCa1Z1n1uXEPKhxN/sc1M8NGytu7ixc7vNPQW+h4C7Q8eg== X-Google-Smtp-Source: AGHT+IFr0WirNZtySlPpectkhwyoK6r2QV0cKvLSqKfbF92uol8D5DmSm9eySUPaNoA7swyShjrh X-Received: by 2002:a17:906:5a82:b0:a62:2cac:b78e with SMTP id a640c23a62f3a-a65f091c765mr45209466b.6.1717037133003; Wed, 29 May 2024 19:45:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717037132; cv=pass; d=google.com; s=arc-20160816; b=iAK15izWOlvgdESyUxFI/o6dqiOMyQiOj98hAeZPns/RhHxiF0PKLEKmrDS9OzbdWa qtPusYIvS/lM3SwWCKpIA3AohUwOsaEAGZhjHlI81uARa9K7RLBOupZwYlUbjJRtT/BB Q4KdHaOP7v3e3R2+nKF3Uf3d4/Km0+ppN9UoIEzP53t5TQs/f0y3NkVXdmh1EkvVO2WR USXaza0a81qlyN+UlHvreOaA5t9sHaftCRzXIfYKXKZzijTB7X0oVFcCblxnAfpuZh/3 Rn5zJZUNAxC77j3PBRLYIC6A1jK60aw5OKlD/odk4bTiiNpJbbqVerKS6g4JDnIYi5Lz pwHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=CnKJIrmXi20YB0E74oQIBvd6GDGh12oCc6N2c/VdEwU=; fh=YfxhSmiX0qbotJe9aqfZNHkXNizCXN/jDbbxIcjU7UQ=; b=coiaAR1nrO50JoLYvEHevViigNQ5+7l71TrApMhyl7XQQh3R0VtSlsvLW8lgMUBbLN Myp3rHe8UcUCmFzJgeNjX23u196bLlWo6ZgNjsfluCGhSVDyklX49vYf+hNTDjFSP8Fp hhwQH9JKR4R/RzuJVSuAk0NhG10d4VtPM/2WQZu2FfrCeI0zCrtLNGZdVnNbF2L0yVoy +ItTRnFdpuYxNtZWPxyqTvKADheiIJzp8/0tCmYYUdtpE2wW4yxazpopmIaU7lSV4KcG YcdXVjEa9H3phOpCNOqh91u29d4ZCD+l+FQbgSsSim5kCvvCgFSZPZ9RxMTOGIcKpGDR RH8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-194889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc36e6bsi706470866b.375.2024.05.29.19.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 19:45:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-194889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194889-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8C7E81F2397A for ; Thu, 30 May 2024 02:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B81111C68F; Thu, 30 May 2024 02:45:26 +0000 (UTC) Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (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 BB1998480; Thu, 30 May 2024 02:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717037126; cv=none; b=FuoAUMtApcIjtyhmDp1y5Y74hYYp8mC+a82SelrK3HWaia2L/B6/yszGZFVgXxqGlpYsrqeTQ8iDEaB4XzbQyzATFUVMA0VPs/+0XDYjRx1GziG0zlfNWh3Aah8Kr9AID66usFGxw4kMJs2J1SScB2gaD60X5g0ursonLYVYBRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717037126; c=relaxed/simple; bh=1w47dG6iwVStuKGBIonKiM24BQI7knvVqfrf478mb6A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aB6mPK13KQdYvKGhethz9fJSq6ib/hDrXPeBSmb44JHQlU2UnMLApiSz9z9L8EkH8xpVVChoaBIwzZsed8OGIjjThpjUrd1V/+HTy6SFxGthfQg1qLC1SrZ7hUYB0jQwXnz0wYgVdeu1o4Jr/IoXjkjBTdpNgnVlzas90IP72RA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.160.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-24ca03ad307so237171fac.3; Wed, 29 May 2024 19:45:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717037124; x=1717641924; 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=CnKJIrmXi20YB0E74oQIBvd6GDGh12oCc6N2c/VdEwU=; b=wlIaBbyOfNCjmBRbbHmrb4cIEoOpTwbc6v7j+2SBKng09Ch8xiXu7RlFDWRrvgGEnV xrr0lTbLWaCZ4zlSl6LigONWEY49oSZolZmgdUvEKH2EgvEMy+Jwvo4AD3xzSucGzUO7 7J/ylT/ZePPv4ywcj7hfA/gnrQXKhksU5cWW4LlIhOPMtxp+XBvywl1FXYF5ifViUnOD bn9gG8LOesqV4L0wGDwtLYxK4ixFv0v2ThmGQBsKjgmPTr+oW8ZgJC3c7yrHEjmSRN4F y9uaw4UdsTugPWQb0JJEpKd7ZkFnIjJg4KsO00fNhyyWgTt7izfecLagXNA/RqelUl8U 018g== X-Forwarded-Encrypted: i=1; AJvYcCUpOTeu9A/IayOnplUxM6+aCwAwehVFS3Y1HzrOkOEOMsbxRdvdQhstxlk5K1N980NEH5YCREs/rNh/jfOZ4d9kWBWgcQz1P+eM2nw9nDQJ4ySMHvMjCNPrOvdpJ5Y9gYgN2DnmTPteZk0e X-Gm-Message-State: AOJu0YzEizco+Bac82twzJa6DomOuyYfboJj8qvP8uCPPBkejOw/dOwM 3E7QpUkurZ3pk2H9WQSjxsWWs+M7PCR7i4rccR7u+YDoUWJigGPXgHlMNw== X-Received: by 2002:a05:6870:d24e:b0:24f:da39:f649 with SMTP id 586e51a60fabf-25060de9e3cmr1155409fac.50.1717037123354; Wed, 29 May 2024 19:45:23 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7023009490esm389361b3a.78.2024.05.29.19.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 19:45:22 -0700 (PDT) Date: Thu, 30 May 2024 02:45:18 +0000 From: Wei Liu To: Michael Kelley Cc: Aditya Nagesh , "adityanagesh@microsoft.com" , "kys@microsoft.com" , "haiyangz@microsoft.com" , "wei.liu@kernel.org" , "decui@microsoft.com" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5] Drivers: hv: Cosmetic changes for hv.c and balloon.c Message-ID: References: <1716998695-32135-1-git-send-email-adityanagesh@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@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: On Wed, May 29, 2024 at 04:29:17PM +0000, Michael Kelley wrote: > From: Aditya Nagesh Sent: Wednesday, May 29, 2024 9:05 AM > > > > Fix issues reported by checkpatch.pl script in hv.c and > > balloon.c > > - Remove unnecessary parentheses > > - Remove extra newlines > > - Remove extra spaces > > - Add spaces between comparison operators > > - Remove comparison with NULL in if statements > > > > No functional changes intended > > > > Signed-off-by: Aditya Nagesh > > Reviewed-by: Saurabh Sengar > > --- > > [V5] > > Rebase to hyperv-fixes > > > > [V4] > > Fix Alignment issue and revert a line since 100 characters are allowed in a line > > > > [V3] > > Fix alignment issues in multiline function parameters. > > > > [V2] > > Change Subject from "Drivers: hv: Fix Issues reported by checkpatch.pl script" > > to "Drivers: hv: Cosmetic changes for hv.c and balloon.c" > > drivers/hv/hv.c | 37 +++++++------- > > drivers/hv/hv_balloon.c | 105 ++++++++++++++-------------------------- > > 2 files changed, 53 insertions(+), 89 deletions(-) > > > > [snip] > > > @@ -999,21 +984,14 @@ static void hot_add_req(struct work_struct *dummy) > > rg_start = dm->ha_wrk.ha_region_range.finfo.start_page; > > rg_sz = dm->ha_wrk.ha_region_range.finfo.page_cnt; > > > > - if ((rg_start == 0) && (!dm->host_specified_ha_region)) { > > + if (rg_start == 0 && !dm->host_specified_ha_region) { > > /* > > - * The host has not specified the hot-add region. > > * Based on the hot-add page range being specified, > > - * compute a hot-add region that can cover the pages > > - * that need to be hot-added while ensuring the alignment > > - * and size requirements of Linux as it relates to hot-add. > > - */ > > - rg_start = ALIGN_DOWN(pg_start, ha_pages_in_chunk); > > - rg_sz = ALIGN(pfn_cnt, ha_pages_in_chunk); > > Hmmm. The above is not a cosmetic change. Looks like this > delta was erroneously introduced in the v5 version. It wasn't > there in v4. This also breaks the build, since now the comment is not terminated. Please fix this and resubmit. In general, you should always build test your code before submission. Thanks, Wei. > > Everything else LGTM. > > Michael