Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp306869lqp; Thu, 21 Mar 2024 01:32:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHntb0QOTnDZzQF1vASdNii3eURjtNNOZjaC3eW9rG7vZebW6tS9T/enN+YkOuxK0yLAOsFmknR/+ch48i9vGl1SAbkK47iFCMUdygfg== X-Google-Smtp-Source: AGHT+IGwmzOpezw8kK+i80SVY2adOBleJxkcz1Zoao5GJ/UoOxzAj0WMxZDV+2sDHCVtxoYs5Oxc X-Received: by 2002:a05:6402:5306:b0:568:ac53:83f9 with SMTP id eo6-20020a056402530600b00568ac5383f9mr12235478edb.7.1711009925806; Thu, 21 Mar 2024 01:32:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711009925; cv=pass; d=google.com; s=arc-20160816; b=eSDC0puWgFANRPZk5aTNfwB9UrJM7q5vqCzUUQjimFmCHOBgOCNDnGn+FOGlmw9EaE GbD/kzvFVRdn86laGU1lTaKkcUsWTz6TnGiMfNrU4gdwyw3XEG9SP5yEL9GYu33IW24Y Fg6W8xIvr0aHdigmNo9Ytg8WXkuBxQbsOkMkNqKq5aagguqITzUDoGNeW8D4VYAb7+HP QxX6rWwBqx4j+CF3TlmTQoDvmZpYhNve5MJxCIDvxodsvyTy/3hd64/8Q/Dxspm3Y1kH tfnlF69NDhNJAGaY3h9Mr0tMiH6hkMAzonHgEmc+wUl7NZ/3klvksIfjYCPnx/A/MYer Yr2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=XMjNN1pkCPSeOdEAarp9KWhuQJ8O/sk+OMdl/nM1iQ4=; fh=X5ggUa8wvGqhDa6uxP2s9voOt7ofSMzC8xLa44Iobrc=; b=BKebEupLRlIT85h6SGuOa8C7K1OuR/fxqqeWMI8+E33wo2JTMTug5PcmfpgraQMZ/k Nvrj/Kr9KY/jhHD8+DZMNzbfhlr4ScPOkzmx/IBHTAw2wbj1znvdsEgO0xzD/FgaseqB RGdi5FXYKYU9aEkH3k5rhxAYOWcm6lmsSC8YZg67HwvxXEHVCi7V1b87/SC1bjJvgzt2 SSG/crZ3p/xvUkMpcGM0fa969gLvKek/p9ydjuBvmdmsOB6Z3cp8NSw8MDlWq0CfxxqE vY715aW3Nn+Bo6Te2L8chEh5pXdqMMfSn+CwdvfBEvsiL8mQaMU3DUpCBSc2OahcV7Al JL2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Cpt04Lry; 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-109779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109779-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i25-20020a0564020f1900b0056b9ff726c5si2054054eda.267.2024.03.21.01.32.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 01:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109779-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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Cpt04Lry; 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-109779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109779-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BFCA41F2273B for ; Thu, 21 Mar 2024 08:24:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C2905A117; Thu, 21 Mar 2024 08:24:07 +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="Cpt04Lry" 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 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: 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