Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp339376lqp; Thu, 21 Mar 2024 02:57:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWztOSdbosd7k+VagZhNfdQbnVx+OpDpobEcnfAy49EuOxzrvDu/7MkkS+UedFrKL3M4i0SLegrJT5mnnjM4bMMA/s1kqKuLI4yEE7qGA== X-Google-Smtp-Source: AGHT+IEGAkZcrkciT02pUryNnNS1PgCxR6TLdIKnNDJqWFV5ZaCqZpSfZeKJhlo74mU1vf7UeYdy X-Received: by 2002:a05:620a:3784:b0:78a:f5f:65b4 with SMTP id pi4-20020a05620a378400b0078a0f5f65b4mr8032526qkn.13.1711015051357; Thu, 21 Mar 2024 02:57:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711015051; cv=pass; d=google.com; s=arc-20160816; b=jU99nLaO4YUIt/OIYlty2OQPbqHZZ+9s45IkWuay0P46lMCRLFc7GBV1py6bsI4Bsw /yy8X/X/4WbgziXL+zMzfqhxkVe5RuIBGaK3WvHhOzmXq8I3Cxe7SoIVtXSLvOO/6kO8 bKI3OJTxwy4cxAO5IsWVpxbqAGNcS5CnCRICbAcsJFIUpdvQUxijjDFpws+kGLX35j2z v4RN3K/3wN0ZvCmtY65AfOTnolee98pH0hEL4lWLpOaLShPnLwykHmOwh7rZoAMUbKak UtkDXZNhyrORMqLkyta9XnSJ8XUBSTJ6u2TKSeFHkojc2Y71IZQB6x40GfX596vB5l+D 5NRQ== 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=+WDM6PdXkiphjTLhxt0w3wHZT5FGTdefYnnu6riCUJY=; fh=MNdtZYCejP567fQ8MqRibSd5xZL+a1puEMSHFIb0HFQ=; b=Xr/QGeqhgtK6UeuWqxA6ytY6HvJN7Fmse3IlGPM2xF1jknr2Y3aoYloCvs1amFG/LM /2Q502d55Dp3Py7gCfWmjx25XqeyNvdxr4+bw1R9a6mXlwqjUO0gdBcl/t6u+SjZZ97E TjXyplTPV5Vtx/tdE7MvTn2xvrg79wk1obXRWFQpHSc+ho9b5Cp/Rv3127rAhY8pT8ZA QXv29Eoo9LC/NbAK2hQOOfqvv9ldd0H/eXlD6jReJ8r/mf1+YbBZVrkK8qh2oIz2dBr8 0CiSLcxn6hE0+q+6wdpoZrAAdx9CX+2/jlwZ5LrPsooiVpupd0fcN7dTmeP8H7QvbVXq LCOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=GerhZQyR; 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-109876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109876-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 ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x1-20020ae9e641000000b0078a0e622dbdsi6044949qkl.599.2024.03.21.02.57.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 02:57:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=GerhZQyR; 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-109876-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109876-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 196FC1C2181E for ; Thu, 21 Mar 2024 09:57:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CC2156B73; Thu, 21 Mar 2024 09:57:11 +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="GerhZQyR" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CBE056751; Thu, 21 Mar 2024 09:57:09 +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=1711015030; cv=none; b=jEdBvjx3PGIVHUUdoJnFTRWUDR7EgqXjWShWCqDpWMKOFg06STfjuaRZ9gvOjrqJlr7BIZytvNWgwmhF73TqzzBrLkdjk0euzk5P/xR/525zuHiWUYgTUifkmCDcCoSg9fRZwH8zDtXb4b7046oOQFbHKoFdJuyHz9SPp12yJPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711015030; c=relaxed/simple; bh=pr4bu4hrum6QzMyB5aq8RzvHZL2lVn3VJToFXS9K5Co=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=arOTiO7yM2CqJbsMHcy04NonAk2ZhnQWm4o2DScyTsF3sMRJ57jw4Y0HU8T+nAhnSftcgOz4qa23KgIoPNzMIuIzHN68dPBh/E7RdwK00pgq+mdb8dGOE4Ygq5b6+kERIlYpd5c98xN0B3KppGS4zmip5lIeT/s/xo0I/uOYlnw= 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=GerhZQyR; 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 C046820B74C1; Thu, 21 Mar 2024 02:57:08 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C046820B74C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1711015028; bh=+WDM6PdXkiphjTLhxt0w3wHZT5FGTdefYnnu6riCUJY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GerhZQyRjAYddxCqS09I5RFx62L/Tvx/ooLGmqSrQYuERI9HnU71UgwsNmH9c6wFD 9v+jQgMUwAZq2DWMSi+JtaRUJHrZSxjIy1TqPxu/18r4JahMyRItgsXVm4BMFyGm1r L7gLruWZdXwJWIoUSLrby1BwxAKJJwSpe6+2DFLI= Date: Thu, 21 Mar 2024 02:57:08 -0700 From: Saurabh Singh Sengar To: Erni Sri Satya Vennela Cc: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, x86@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, ernis@microsoft.com Subject: Re: [PATCH] x86/hyperv: Cosmetic changes for hv_apic.c Message-ID: <20240321095708.GA7962@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1711009325-21894-1-git-send-email-ernis@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: <1711009325-21894-1-git-send-email-ernis@linux.microsoft.com> User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, Mar 21, 2024 at 01:22:05AM -0700, Erni Sri Satya Vennela wrote: > Fix issues reported by checkpatch.pl script for hv_apic.c file > - Alignment should match open parenthesis > - Remove unnecessary parenthesis > > No functional changes intended. > > Signed-off-by: Erni Sri Satya Vennela > --- > I'm resending this patch because I have missed some email aliases in my > previous mail. > > arch/x86/hyperv/hv_apic.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c > index 5fc45543e955..0569f579338b 100644 > --- a/arch/x86/hyperv/hv_apic.c > +++ b/arch/x86/hyperv/hv_apic.c > @@ -105,7 +105,7 @@ static bool cpu_is_self(int cpu) > * IPI implementation on Hyper-V. > */ > static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector, > - bool exclude_self) > + bool exclude_self) > { > struct hv_send_ipi_ex *ipi_arg; > unsigned long flags; > @@ -132,8 +132,8 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector, > if (!cpumask_equal(mask, cpu_present_mask) || exclude_self) { > ipi_arg->vp_set.format = HV_GENERIC_SET_SPARSE_4K; > > - nr_bank = cpumask_to_vpset_skip(&(ipi_arg->vp_set), mask, > - exclude_self ? cpu_is_self : NULL); > + nr_bank = cpumask_to_vpset_skip(&ipi_arg->vp_set, mask, > + exclude_self ? cpu_is_self : NULL); > > /* > * 'nr_bank <= 0' means some CPUs in cpumask can't be > @@ -147,7 +147,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector, > } > > status = hv_do_rep_hypercall(HVCALL_SEND_IPI_EX, 0, nr_bank, > - ipi_arg, NULL); > + ipi_arg, NULL); > > ipi_mask_ex_done: > local_irq_restore(flags); > @@ -155,7 +155,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector, > } > > static bool __send_ipi_mask(const struct cpumask *mask, int vector, > - bool exclude_self) > + bool exclude_self) > { > int cur_cpu, vcpu, this_cpu = smp_processor_id(); > struct hv_send_ipi ipi_arg; > @@ -181,7 +181,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector, > return false; > } > > - if ((vector < HV_IPI_LOW_VECTOR) || (vector > HV_IPI_HIGH_VECTOR)) > + if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR) > return false; > > /* > @@ -218,7 +218,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector, > } > > status = hv_do_fast_hypercall16(HVCALL_SEND_IPI, ipi_arg.vector, > - ipi_arg.cpu_mask); > + ipi_arg.cpu_mask); > return hv_result_success(status); > > do_ex_hypercall: > @@ -241,7 +241,7 @@ static bool __send_ipi_one(int cpu, int vector) > return false; > } > > - if ((vector < HV_IPI_LOW_VECTOR) || (vector > HV_IPI_HIGH_VECTOR)) > + if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR) > return false; > > if (vp >= 64) > -- > 2.34.1 > Thanks for cleaning it up, Reviewed-by: Saurabh Sengar