Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp46976lqt; Thu, 18 Apr 2024 08:06:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC9W9ADIlIByLkrz0kBD6NOhSFfU/8d5bCRpOfLm293H/WbUTj7chE1LO9HYcO+7T4z968xtc1kf7tcLNyt77YOw1qarFUIcoVVdVAMw== X-Google-Smtp-Source: AGHT+IGex1+HvOs9Q+inP2uaIABaba7ODQf3tpRLfuOHc2ocED/jHWP5W6CWPpMR8UoeHEkSuz+V X-Received: by 2002:a05:6e02:1caf:b0:36b:10f4:4dc with SMTP id x15-20020a056e021caf00b0036b10f404dcmr4208852ill.23.1713452799109; Thu, 18 Apr 2024 08:06:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713452799; cv=pass; d=google.com; s=arc-20160816; b=WXFeBBj9FtHuXvwZgZOBltURQAbRQa3TaVUBofwFtZOPc2yZIb1tMT0tKTAkrYKFQ5 0bMYiEpSIkWdq+mmAwb1oc5CFTKE01cHq3lgHKyJvwNqI5qovq8DaNYJ5F92WDQOr1BV C8I8whraX+Q5lpvC0PY5ylJvseZnjhF2Fz84rpfT83CV06rEY5OmsAVeHFYmcF4xChVM yMLzmK3zK7XzaYSk63985Opz0IoOfJ5i694PGMJIpjAykrFCianhtvgXWQ4vbcPWDNiU fViT/dc0rEdq0wcbEqrMtXnL5joq+yoFw5aY3e6UHxy0tljxiPowOqCRTjBCo5P+i5N7 76Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=YLrF65GkaRI97civNB8NhoqUIrCEEdcrIySZDt5Q0LQ=; fh=kgz0OIrvCYIu1sk5W7gBLjEa8pzCXIlppoMY8Suao8o=; b=o/CrCwgWA0V3evK9ZP40iK4zPBkLfhwRrB/2bCChOOUekVJOHpnFFWmkhV4nNh394q f1hf13JxetZjBGB/RuAKRknn8FzHF3SNknWAmMGQtBfB8hA17aiC8YKp+L2CJcHKWCId qrYIenkcRtxChBXghHKxJtAiBtX+RTSWcfx3gwnov8vJj1SD7Na372BzntNwRYaj31qD +kUn8PfiKo1VeTTIxtmjY2A8082++w1Inhl6xcOf7BIuFapZhH05VIDEJU3XdrAcJuke MegsD5F3B8UwKixdIM5Ud6kiosEcAli7RuUOFjimib+NyorvmcvGagF+qM4rRPJB3WGg AL7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=QO4a+es3; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-150364-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l11-20020a633e0b000000b005f782af39d4si1620186pga.460.2024.04.18.08.06.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 08:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150364-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=QO4a+es3; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-150364-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150364-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9753F286C8C for ; Thu, 18 Apr 2024 15:06:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2058716C454; Thu, 18 Apr 2024 15:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="QO4a+es3" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7726916C43B; Thu, 18 Apr 2024 15:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713452775; cv=none; b=TKDH4Yxj4N9uMTpHSyAoH0ZIfNxbrcdOCGdldRaRtCynRE94boXaTLqHvS7fcer4ZK4TVJkAqA6apykwaD7bVT9u2I99tBapZrzRnHEEr5J1dihtecAymSJdz63XkrySnDP/y+H319403bEivs8fxEsUlRenCFGTQcVCCYZ0nhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713452775; c=relaxed/simple; bh=/GJmJIxgwpeXg6nGwefkpZv+RUFN7WkwtYfpoHK8lNg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UHmXJlsK8I1NXsQm1WVhgkLSBUxXHr68IM56Xv97NuxPUNDIbJ9U0W1JskL4FomOEBNYa3h4kOpDPmvbbnH3DhwhrW5r35NX0EO3RrnZvlJGEiTKkbmfNV9VQj2X+e56E6y+7dKwBUGcSh9jPkQoC2ZYovC+Pc0qL9wJvf11BmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=QO4a+es3; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: by linux.microsoft.com (Postfix, from userid 1127) id 1EFB020FD8B4; Thu, 18 Apr 2024 08:06:07 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1EFB020FD8B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713452767; bh=YLrF65GkaRI97civNB8NhoqUIrCEEdcrIySZDt5Q0LQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QO4a+es39sVfjgRPixoZvKK9reiFB/6ZcNzygVZHvRx0NTUwneQHWoZrA/0Wn2TwW ZGTm/ns6EWJD6ZK5/heMrbFElihTAtHo80EoyOwKZeUcXpPDxxYN3eXYJ3tn0JA101 lBxJrH7zGaxcTTE5I5XSQ+1gjW3JHqntqLvBYgrY= Date: Thu, 18 Apr 2024 08:06:07 -0700 From: Saurabh Singh Sengar To: Aditya Nagesh Cc: 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 v3] Drivers: hv: Cosmetic changes for hv.c and balloon.c Message-ID: <20240418150607.GA27653@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1712899683-20311-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: <1712899683-20311-1-git-send-email-adityanagesh@linux.microsoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, Apr 11, 2024 at 10:28:03PM -0700, Aditya Nagesh wrote: > 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 > --- > [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 | 35 +++++++------- > drivers/hv/hv_balloon.c | 101 +++++++++++++++------------------------- > 2 files changed, 54 insertions(+), 82 deletions(-) > > diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c > index a8ad728354cb..4906611475fb 100644 > --- a/drivers/hv/hv.c > +++ b/drivers/hv/hv.c > @@ -45,7 +45,7 @@ int hv_init(void) > * This involves a hypercall. > */ > int hv_post_message(union hv_connection_id connection_id, > - enum hv_message_type message_type, > + enum hv_message_type message_type, This line is fixed now, but now below line is unaligned. > void *payload, size_t payload_size) > { > > if (req->more_pages == 1) > return; > @@ -1415,7 +1395,7 @@ static int dm_thread_func(void *dm_dev) > > while (!kthread_should_stop()) { > wait_for_completion_interruptible_timeout( > - &dm_device.config_event, 1*HZ); > + &dm_device.config_event, 1 * HZ); IMO, we can move this to previous line, as now 100 characters are allowed in single line. Once fixed above, Reviewed-by: Saurabh Sengar - Saurabh