From nobody Sun Feb 8 08:42:37 2026 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18A3B2AF18; Thu, 21 Mar 2024 08:24:04 +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=1711009446; cv=none; b=AMQkccvjbtLFlCKw+V8D8itpIUEGFcRMBaOxwxfBr3+8VZbOvQwP79aRS7Sys1CczkaxNug4vwlG7gBP5YLFgOTT0gMn/o+r4lmvezzlD5hgAkCVqu7XQw7kEDSsu+ydFfw04TRAnTUR53NLFipT2sZU9VLzDdHc9usJqfBnKyQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711009446; c=relaxed/simple; bh=+BH1D9XwwG7TGc7KaVa6ZJNH37YfmEFhUPnxCApI7fs=; h=From:To:Cc:Subject:Date:Message-Id; b=qMYPaHkrzmhbCWXM4/g2vYpRkxOp+pXtMtjsMZF8xgbq9lv0i4u704u9NabMW9j7SjiY08ZurGILJdNDkAdvYzmMaICH3sB7bx/Y8xlfo0BPyi0rpYADPaMsRGzxaTcxb2htj1v2hUYz0FXQwjCEYJL9XjUDQlg3KHus9iHsEPY= 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=Cpt04Lry; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="Cpt04Lry" Received: by linux.microsoft.com (Postfix, from userid 1173) id 8DD9920B74C1; Thu, 21 Mar 2024 01:24:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8DD9920B74C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1711009443; bh=XMjNN1pkCPSeOdEAarp9KWhuQJ8O/sk+OMdl/nM1iQ4=; h=From:To:Cc:Subject:Date:From; b=Cpt04Lryi9dMUY425YRABwxLGvNwraJUnawK3PjtA13q+v5YRZuNSL5u9mHNMINWr fwv2btTiNiW6Otk4KbRo2IlkGbzXE9P3APluSELafT8zJSjunIhR8rVv0lMZuLDrJm /j6JrAZC4Crt9NYUrqG97xevOoZb2pj8WEphzkJQ= From: Erni Sri Satya Vennela To: 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 Cc: ernis@microsoft.com, Erni Sri Satya Vennela Subject: [PATCH] x86/hyperv: Cosmetic changes for hv_apic.c Date: Thu, 21 Mar 2024 01:22:05 -0700 Message-Id: <1711009325-21894-1-git-send-email-ernis@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Saurabh Sengar --- 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 *ma= sk, int vector, if (!cpumask_equal(mask, cpu_present_mask) || exclude_self) { ipi_arg->vp_set.format =3D HV_GENERIC_SET_SPARSE_4K; =20 - nr_bank =3D cpumask_to_vpset_skip(&(ipi_arg->vp_set), mask, - exclude_self ? cpu_is_self : NULL); + nr_bank =3D cpumask_to_vpset_skip(&ipi_arg->vp_set, mask, + exclude_self ? cpu_is_self : NULL); =20 /* * 'nr_bank <=3D 0' means some CPUs in cpumask can't be @@ -147,7 +147,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *ma= sk, int vector, } =20 status =3D hv_do_rep_hypercall(HVCALL_SEND_IPI_EX, 0, nr_bank, - ipi_arg, NULL); + ipi_arg, NULL); =20 ipi_mask_ex_done: local_irq_restore(flags); @@ -155,7 +155,7 @@ static bool __send_ipi_mask_ex(const struct cpumask *ma= sk, int vector, } =20 static bool __send_ipi_mask(const struct cpumask *mask, int vector, - bool exclude_self) + bool exclude_self) { int cur_cpu, vcpu, this_cpu =3D 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; } =20 - if ((vector < HV_IPI_LOW_VECTOR) || (vector > HV_IPI_HIGH_VECTOR)) + if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR) return false; =20 /* @@ -218,7 +218,7 @@ static bool __send_ipi_mask(const struct cpumask *mask,= int vector, } =20 status =3D hv_do_fast_hypercall16(HVCALL_SEND_IPI, ipi_arg.vector, - ipi_arg.cpu_mask); + ipi_arg.cpu_mask); return hv_result_success(status); =20 do_ex_hypercall: @@ -241,7 +241,7 @@ static bool __send_ipi_one(int cpu, int vector) return false; } =20 - if ((vector < HV_IPI_LOW_VECTOR) || (vector > HV_IPI_HIGH_VECTOR)) + if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR) return false; =20 if (vp >=3D 64) --=20 2.34.1