Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1438580pxb; Fri, 27 Aug 2021 08:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7vTmk0h5USNAsEjywiXUGYxeswkAH/LRmjdJGnRkZp5ShBzL/xfCMEMyOmir7d4FLjHPi X-Received: by 2002:a05:6e02:148c:: with SMTP id n12mr7069482ilk.36.1630079550776; Fri, 27 Aug 2021 08:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630079550; cv=none; d=google.com; s=arc-20160816; b=vWCPyZ2M9dS/u4bXDS1+K3s/td7hky9UpWowSe6wXfdNLpz236VzoVJnWFCBg3A2im DZ0QLKoR96q/OQwzvtc1xqKEJY4aV7J+LLHe9v+0fckWFiSbYFaJkcELtpl6qabNgjN3 Sq9DmYhG3XnzcXuDp2MF4PfCD0tdseSeXAi2uMJ6gBtQqXZrou5ujwOx/06OYRGlQ0cw xysvFKw+a18bk3SZfJmqOgxV5Jbqx7nxZSsh2kx5TdLzgovEQjRl1aPCHAT5eRVL3Qvk i6cPGOuezwDlDC7GlD8Sbg+TDh0Ms5MyjjNoCEsc1UsSZW6MDcmxwukQToG0XS4elqic pRfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9FN9iC2MCy+4k3fjj+1pV+V6I0P0vEJsHx0DVQFI8VY=; b=UWaZIeueRX6HNJdN7XUN0Tn9DigjMVnlzsxIQ50Q1qrpC7QYxBawY6J+3bMOfjKITm jTThgFZowyd4unW2jGshTkTERf0tIKRilPWmFMTXm2zb9IJ0z9t4YEBC8MrIXBDf8yzy YaPCagbRMf3xAh3zijbj/i2iDhKVCLoKWmx8h5heFhC2mI7Ttc+KyGSuu3sKLK9TKemE CIouA1JM+/nyAloqQK61H/rMN/SAl1nMJ1j4FGUhjeJW9JpCvTwN/xlMM4Qb51NKyYML RG/SEZ6T3Oe/dJFbGM0UvwbgzGd6jvf11PcD5MtB6WWTI0SDFusAYPWzx3KCsz5NlEIy jf5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=SBgHx4iw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si6630215iom.43.2021.08.27.08.52.19; Fri, 27 Aug 2021 08:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=SBgHx4iw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245234AbhH0Pv0 (ORCPT + 99 others); Fri, 27 Aug 2021 11:51:26 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:39055 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245494AbhH0PvS (ORCPT ); Fri, 27 Aug 2021 11:51:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1630079429; x=1661615429; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9FN9iC2MCy+4k3fjj+1pV+V6I0P0vEJsHx0DVQFI8VY=; b=SBgHx4iwwiEB+N7L5AIMtgFTjNF3caOabgxJ00WycO67hFGvlVh9/l50 uRJmk2OK7zlJmqnhHnAm0UxyFq4qnunXeb08PP6ffAGOzG+TW8ohTmwWn fm78siT0IKTpMOZBXCj6iqB5xLJCNy02W1qCUV4U2HvQV/4WqBujq8l8G o=; X-IronPort-AV: E=Sophos;i="5.84,357,1620691200"; d="scan'208";a="137254370" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-2225282c.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP; 27 Aug 2021 15:50:21 +0000 Received: from EX13D16EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2c-2225282c.us-west-2.amazon.com (Postfix) with ESMTPS id 3E45BA20BB; Fri, 27 Aug 2021 15:50:20 +0000 (UTC) Received: from 38f9d34ed3b1.ant.amazon.com (10.43.162.52) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 27 Aug 2021 15:50:13 +0000 From: Andra Paraschiv To: linux-kernel CC: Alexandru Ciobotaru , Greg KH , Kamal Mostafa , "Alexandru Vasile" , Paolo Bonzini , "Stefano Garzarella" , Stefan Hajnoczi , Vitaly Kuznetsov , kvm , ne-devel-upstream , Andra Paraschiv Subject: [PATCH v3 5/7] nitro_enclaves: Add fixes for checkpatch match open parenthesis reports Date: Fri, 27 Aug 2021 18:49:28 +0300 Message-ID: <20210827154930.40608-6-andraprs@amazon.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20210827154930.40608-1-andraprs@amazon.com> References: <20210827154930.40608-1-andraprs@amazon.com> MIME-Version: 1.0 X-Originating-IP: [10.43.162.52] X-ClientProxiedBy: EX13D04UWB004.ant.amazon.com (10.43.161.103) To EX13D16EUB003.ant.amazon.com (10.43.166.99) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the codebase formatting to fix the reports from the checkpatch script, to match the open parenthesis. Signed-off-by: Andra Paraschiv --- Changelog v1 -> v2 * No codebase changes, it was split from the patch 3 in the v1 of the patch series. v2 -> v3 * Move changelog after the "---" line. --- drivers/virt/nitro_enclaves/ne_misc_dev.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/virt/nitro_enclaves/ne_misc_dev.c b/drivers/virt/nitro_enclaves/ne_misc_dev.c index e21e1e86ad15f..8939612ee0e08 100644 --- a/drivers/virt/nitro_enclaves/ne_misc_dev.c +++ b/drivers/virt/nitro_enclaves/ne_misc_dev.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ /** @@ -284,8 +284,8 @@ static int ne_setup_cpu_pool(const char *ne_cpu_list) ne_cpu_pool.nr_parent_vm_cores = nr_cpu_ids / ne_cpu_pool.nr_threads_per_core; ne_cpu_pool.avail_threads_per_core = kcalloc(ne_cpu_pool.nr_parent_vm_cores, - sizeof(*ne_cpu_pool.avail_threads_per_core), - GFP_KERNEL); + sizeof(*ne_cpu_pool.avail_threads_per_core), + GFP_KERNEL); if (!ne_cpu_pool.avail_threads_per_core) { rc = -ENOMEM; @@ -735,7 +735,7 @@ static int ne_add_vcpu_ioctl(struct ne_enclave *ne_enclave, u32 vcpu_id) * * Negative return value on failure. */ static int ne_sanity_check_user_mem_region(struct ne_enclave *ne_enclave, - struct ne_user_memory_region mem_region) + struct ne_user_memory_region mem_region) { struct ne_mem_region *ne_mem_region = NULL; @@ -771,7 +771,7 @@ static int ne_sanity_check_user_mem_region(struct ne_enclave *ne_enclave, u64 userspace_addr = ne_mem_region->userspace_addr; if ((userspace_addr <= mem_region.userspace_addr && - mem_region.userspace_addr < (userspace_addr + memory_size)) || + mem_region.userspace_addr < (userspace_addr + memory_size)) || (mem_region.userspace_addr <= userspace_addr && (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { dev_err_ratelimited(ne_misc_dev.this_device, @@ -836,7 +836,7 @@ static int ne_sanity_check_user_mem_region_page(struct ne_enclave *ne_enclave, * * Negative return value on failure. */ static int ne_set_user_memory_region_ioctl(struct ne_enclave *ne_enclave, - struct ne_user_memory_region mem_region) + struct ne_user_memory_region mem_region) { long gup_rc = 0; unsigned long i = 0; @@ -1014,7 +1014,7 @@ static int ne_set_user_memory_region_ioctl(struct ne_enclave *ne_enclave, * * Negative return value on failure. */ static int ne_start_enclave_ioctl(struct ne_enclave *ne_enclave, - struct ne_enclave_start_info *enclave_start_info) + struct ne_enclave_start_info *enclave_start_info) { struct ne_pci_dev_cmd_reply cmd_reply = {}; unsigned int cpu = 0; @@ -1574,7 +1574,8 @@ static int ne_create_vm_ioctl(struct ne_pci_dev *ne_pci_dev, u64 __user *slot_ui mutex_unlock(&ne_cpu_pool.mutex); ne_enclave->threads_per_core = kcalloc(ne_enclave->nr_parent_vm_cores, - sizeof(*ne_enclave->threads_per_core), GFP_KERNEL); + sizeof(*ne_enclave->threads_per_core), + GFP_KERNEL); if (!ne_enclave->threads_per_core) { rc = -ENOMEM; -- 2.20.1 (Apple Git-117) Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.