From patchwork Wed Aug 28 13:32:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riyan Dhiman X-Patchwork-Id: 13781401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DAC1C5AE5A for ; Wed, 28 Aug 2024 14:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=IV9ruV4IKGNQsVpd2T2vGSBXmMJz+AZMZ8d3CyCPB14=; b=IX8D6XMDcqbsKQz9lSsnlt9lAw Vz4/SLvVcnAa9rgl8qw/iOf15gGlLmgWkdos/yxwqIbyDfjJNKgaE30LgrRdiMw4bPnRXL8P8jhMN UxQH3hYlnYz+8d5+/9uz4J5jNodOnIwoSBv7FrNi/mHic/pMF/S0MTNPoFMZHTXSt5xmCkXx7vYHY WJQlbKhbv/P47wBjFs3SpfolqV/hQZUCsBkH1fAjKO02ceW9Z0iy6VPtFerGSyV8Ptsrml/RPWJ71 SXqzryt2iQjA7on2kKo0qVz+jnaHnm3lBXeQc0K7u7ec3JXZaF0ZcfxoTo5cDKacu1IStL3G7kL41 Hk76QYmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjJvc-0000000FoBw-05nh; Wed, 28 Aug 2024 14:45:44 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjIn1-0000000FXis-1GDU for linux-arm-kernel@lists.infradead.org; Wed, 28 Aug 2024 13:32:48 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-7142448aaf9so469809b3a.1 for ; Wed, 28 Aug 2024 06:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724851966; x=1725456766; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IV9ruV4IKGNQsVpd2T2vGSBXmMJz+AZMZ8d3CyCPB14=; b=DTAykqaJYBOuMjdODZMj7hZ/h5jHJL61qhrLYxKFp74rAFhAscuP6+w1sm1x0FfOjx dLBExTUvXCNCTF2GeP3M+e+p3HikNVQ4cshefNYH1cULKuQOnAEWqNXEjlhci+pLwg53 aZX1M/U17wtUaCZUBjf95ESmviPoy3994Ze7kbXDhi8Ufp8mc36JibNl+mowQju0GIvk 5sIVm3cIMEtmZKY/iBiFGFaBP26yCI76VxSII0pEczgRg8jloutV4IanncKmXT5xWv0o Du4pA86+zVYXT3+6+Bxtx7pVAYhSvvEWd4em9pcvFzI+X/DelMgQDFS/1R0O3H6XxUvm Rlbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724851966; x=1725456766; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IV9ruV4IKGNQsVpd2T2vGSBXmMJz+AZMZ8d3CyCPB14=; b=uA7c49TUnOR5P1EwTVwJouCScTf4Oh9VOyuWAhjQZTSYmvG+wCzf/ga+E6RVyMeryD K1jIN5+sjuM+4VYdAojQS+vySwz6a4iw8YvR6gBVePSz4G6CFXIqMhFvs5qLbqvCuzQu svgiYL6CpxsYKhw9sQ0bs1wShRVkpfO1PG2U+KKwUOkirF/gjhXbcHvGXvEflPsBrKnu N4SFDIi0q92PZYFyqYUTKi7KNILWe/RlVC/PZpu+CncjI6m/3fxUH8CHK6EyuuJAbWzL Xm+rrgMPH8IOeWDqO9MypV1xHDx9L22OYg8sIXGGahhkvCb9wiMON97M9AGPt1XwCii1 DC0w== X-Forwarded-Encrypted: i=1; AJvYcCVGwlw8za+gpVxtE4mJ4APF9Wnn6z/7Qa78zy8rvS9SQmutMR2zSLNNg2U2kQoWeRIGMjp3PoUQUERE80QH89fz@lists.infradead.org X-Gm-Message-State: AOJu0YweukTvVuXstHXKA145RZ4z1+zem3bZ6WgKLbd2+SZsrXeurFmb RH5oVuFqerbnpjqeRV61ABjpHaVy7U3JqWLNT+N0VuRgjItgPGi/ X-Google-Smtp-Source: AGHT+IEWHbHsY9i95mKT7j9Ru9/r62XAXeWnvYGK9s8kwMU9vJh1dKZkgVgeNA4n0rMM5Q8Ge+087Q== X-Received: by 2002:a05:6a00:3ccc:b0:70d:36ad:3f67 with SMTP id d2e1a72fcca58-715d1120f38mr3360446b3a.11.1724851965649; Wed, 28 Aug 2024 06:32:45 -0700 (PDT) Received: from fedora.. ([106.219.166.11]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7cd9acdca5dsm11009955a12.49.2024.08.28.06.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 06:32:45 -0700 (PDT) From: Riyan Dhiman To: lpieralisi@kernel.org, guohanjun@huawei.com, sudeep.holla@arm.com Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Riyan Dhiman Subject: [PATCH] ACPI: arm64: Fix checkpatch warning - Alignment should match open parenthesis Date: Wed, 28 Aug 2024 19:02:05 +0530 Message-ID: <20240828133205.17368-1-riyandhiman14@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240828_063247_363490_EDE87A17 X-CRM114-Status: GOOD ( 17.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adhere to Linux kernel coding style. Reported by checkpatch: - CHECK: Alignment should match open parenthesis Signed-off-by: Riyan Dhiman --- drivers/acpi/arm64/amba.c | 5 ++--- drivers/acpi/arm64/apmt.c | 4 ++-- drivers/acpi/arm64/iort.c | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/arm64/amba.c b/drivers/acpi/arm64/amba.c index 1350083bce5f..8d27d86ee052 100644 --- a/drivers/acpi/arm64/amba.c +++ b/drivers/acpi/arm64/amba.c @@ -33,8 +33,7 @@ static void amba_register_dummy_clk(void) clk_register_clkdev(amba_dummy_clk, "apb_pclk", NULL); } -static int amba_handler_attach(struct acpi_device *adev, - const struct acpi_device_id *id) +static int amba_handler_attach(struct acpi_device *adev, const struct acpi_device_id *id) { struct acpi_device *parent = acpi_dev_parent(adev); struct amba_device *dev; @@ -94,7 +93,7 @@ static int amba_handler_attach(struct acpi_device *adev, ret = amba_device_add(dev, &iomem_resource); if (ret) { dev_err(&adev->dev, "%s(): amba_device_add() failed (%d)\n", - __func__, ret); + __func__, ret); goto err_free; } diff --git a/drivers/acpi/arm64/apmt.c b/drivers/acpi/arm64/apmt.c index bb010f6164e5..74e8dc33241b 100644 --- a/drivers/acpi/arm64/apmt.c +++ b/drivers/acpi/arm64/apmt.c @@ -48,7 +48,7 @@ static int __init apmt_init_resources(struct resource *res, trigger = (trigger == ACPI_APMT_OVFLW_IRQ_FLAGS_MODE_LEVEL) ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE; irq = acpi_register_gsi(NULL, node->ovflw_irq, trigger, - ACPI_ACTIVE_HIGH); + ACPI_ACTIVE_HIGH); if (irq <= 0) { pr_warn("APMT could not register gsi hwirq %d\n", irq); @@ -132,7 +132,7 @@ static int __init apmt_init_platform_devices(void) while (offset < end) { apmt_node = ACPI_ADD_PTR(struct acpi_apmt_node, apmt, - offset); + offset); fwnode = acpi_alloc_fwnode_static(); if (!fwnode) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 1b39e9ae7ac1..369a3b506711 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -374,7 +374,7 @@ static struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node, struct acpi_iort_id_mapping *map; if (!node->mapping_offset || !node->mapping_count || - index >= node->mapping_count) + index >= node->mapping_count) return NULL; map = ACPI_ADD_PTR(struct acpi_iort_id_mapping, node, @@ -388,7 +388,7 @@ static struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node, } parent = ACPI_ADD_PTR(struct acpi_iort_node, iort_table, - map->output_reference); + map->output_reference); if (map->flags & ACPI_IORT_ID_SINGLE_MAPPING) { if (node->type == ACPI_IORT_NODE_NAMED_COMPONENT || @@ -1128,8 +1128,8 @@ static void iort_iommu_msi_get_resv_regions(struct device *dev, for (i = 0; i < fwspec->num_ids; i++) { its_node = iort_node_map_id(iommu_node, - fwspec->ids[i], - NULL, IORT_MSI_TYPE); + fwspec->ids[i], + NULL, IORT_MSI_TYPE); if (its_node) break; } @@ -1429,7 +1429,7 @@ static void __init acpi_iort_register_irq(int hwirq, const char *name, if (irq <= 0) { pr_err("could not register gsi hwirq %d name [%s]\n", hwirq, - name); + name); return; } @@ -1561,7 +1561,7 @@ static void __init arm_smmu_v3_dma_configure(struct device *dev, * set numa proximity domain for smmuv3 device */ static int __init arm_smmu_v3_set_proximity(struct device *dev, - struct acpi_iort_node *node) + struct acpi_iort_node *node) { struct acpi_iort_smmu_v3 *smmu; @@ -1622,7 +1622,7 @@ static void __init arm_smmu_init_resources(struct resource *res, trigger = IORT_IRQ_TRIGGER_MASK(glb_irq[0]); acpi_iort_register_irq(hw_irq, "arm-smmu-global", trigger, - &res[num_res++]); + &res[num_res++]); /* Context IRQs */ ctx_irq = ACPI_ADD_PTR(u64, node, smmu->context_interrupt_offset); @@ -1727,9 +1727,9 @@ struct iort_dev_config { struct acpi_iort_node *node); int (*dev_count_resources)(struct acpi_iort_node *node); void (*dev_init_resources)(struct resource *res, - struct acpi_iort_node *node); + struct acpi_iort_node *node); int (*dev_set_proximity)(struct device *dev, - struct acpi_iort_node *node); + struct acpi_iort_node *node); int (*dev_add_platdata)(struct platform_device *pdev); }; @@ -1878,13 +1878,13 @@ static void __init iort_enable_acs(struct acpi_iort_node *iort_node) continue; parent = ACPI_ADD_PTR(struct acpi_iort_node, - iort_table, map->output_reference); + iort_table, map->output_reference); /* * If we detect a RC->SMMU mapping, make sure * we enable ACS on the system. */ if ((parent->type == ACPI_IORT_NODE_SMMU) || - (parent->type == ACPI_IORT_NODE_SMMU_V3)) { + (parent->type == ACPI_IORT_NODE_SMMU_V3)) { pci_request_acs(); acs_enabled = true; return;