From patchwork Mon Feb 13 19:40:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 56510 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2537422wrn; Mon, 13 Feb 2023 11:43:14 -0800 (PST) X-Google-Smtp-Source: AK7set9T/22DWHEjI5/hmuMWOs0Dm2Jo2r4hGhyM6THPNo7aVngEn1eZg6h1R18pIO4EFH7zzugF X-Received: by 2002:a17:906:29d9:b0:887:ebaa:7adb with SMTP id y25-20020a17090629d900b00887ebaa7adbmr124931eje.12.1676317393890; Mon, 13 Feb 2023 11:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676317393; cv=none; d=google.com; s=arc-20160816; b=wxvaGLRmPPNGFrRFu4hCMpgI+lktM5LxxXnDTuC7Qp6hrHL+yl88AD/tdpKMhGJQi/ 6H55/OcPZxtu70eUhB0RWV/aPewU0fyRTy+hTwIxpzqJCYMatLlHOkKFruukjH4Y3yY8 rUSoG7llR5s1uypO8m5J9JEuw0aM2e2UCJlDvo9zkGRYCd6L0zWJYUWAwtwm2gXiu8TZ BHKmPYdJxH8ohMSi9lRuEO3hxKXLDof9BjOc8DEGjiwhqsvePSHkEVgpNtrjWmf6fXEJ bBZI+hjRuwz412oNhnXFhaSK6UYm0V0jNHHdi2kv1BUkUt/dW3Gh7m5U9jrT1iYPlUqU 7vVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=0ey95PcH3gvAht5TBXYP/ZcYBkv73pjM1L2rul30pnw=; b=vRBRUoxDrDpwn/2/1OPSVTamHWufFqsNB3jwI0tLDM8oQvDnmBieYWjcOeEQYZOQKT 1irsQI3Wil8BYhnhDIrq1a5eQlz9B/rO9sRuzG7MnvmpgT4tn/rCJdtaq05Cdj1s0NzX U7gVa1S5BGlnjvoZVrqZziO7ubYUY9PowG+zeb60Xr2I/Ud+dm22u52FBsQwsuHmr2fE D90f7Cc+n1zg9EBsMvNF5zOn/KSWp5lJ2P+5It11LcOnN3RPvSPqSV7ebXnjEuEj7lbA Xg+2LEjENi8xYixA9n9CW0fKAdD2LkWB86VZ90rbbvRCXSfauGaGqj1xRvYRtA2agORz Yxmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ebb0Drv1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a170906029700b0087d8121f007si17121576ejf.441.2023.02.13.11.42.51; Mon, 13 Feb 2023 11:43:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ebb0Drv1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231329AbjBMTlI (ORCPT + 99 others); Mon, 13 Feb 2023 14:41:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbjBMTkr (ORCPT ); Mon, 13 Feb 2023 14:40:47 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFFB21ABF7 for ; Mon, 13 Feb 2023 11:40:45 -0800 (PST) Date: Mon, 13 Feb 2023 19:40:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1676317244; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0ey95PcH3gvAht5TBXYP/ZcYBkv73pjM1L2rul30pnw=; b=ebb0Drv1wAMKRwtOhF7uc/YatHqxfKYRXGOfUoUhf1D0BKb7MPSHM1fLQQAPpCkaxAbicv lmvwUemYylVV9LISY4ys7tBNi2YJeGOmAv74zyyjEcbUEbFiRm4IDJPTWco78YSWtyzQ1E /5cJFKO88HsNyeIsqI798Q5z5asYkERTmTWQ4/HETyAnrZcuZR5jiieMFFStPUMAcgfgIT dZ8ooTcVfCZ/WtvFrND7xap2vlGx8/WoySy30ArjlY9K2rPKmPl1yNOoPZN5X1cTBan+2Q UEHGGt8YD8Dyti2vPYl2K4E427JFP/FQ7URRA9aIrHhvvZvKyzsDbRDfYGYaTA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1676317244; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0ey95PcH3gvAht5TBXYP/ZcYBkv73pjM1L2rul30pnw=; b=VXCPBT+f6Sd8ctJq7nLn+BjSrC3LXi5hH4ikDsldktBNh6u9GPfD0qG1g778EdEqb+AWD/ xP8ukAaVEq7utEAg== From: "irqchip-bot for Johan Hovold" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqdomain: Drop leftover brackets Cc: philmd@linaro.org, "Hsin-Yi Wang" , "Mark-PK Tsai" , Johan Hovold , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230213104302.17307-11-johan+linaro@kernel.org> References: <20230213104302.17307-11-johan+linaro@kernel.org> MIME-Version: 1.0 Message-ID: <167631724416.4906.16844523664103140772.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757712307857435364?= X-GMAIL-MSGID: =?utf-8?q?1757746187196095692?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 4e0d86df9344bfd1951eb2571e4ef8f3d37000a4 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/4e0d86df9344bfd1951eb2571e4ef8f3d37000a4 Author: Johan Hovold AuthorDate: Mon, 13 Feb 2023 11:42:52 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 13 Feb 2023 19:31:24 irqdomain: Drop leftover brackets Drop some unnecessary brackets that were left in place when the corresponding code was updated. Reviewed-by: Philippe Mathieu-Daudé Tested-by: Hsin-Yi Wang Tested-by: Mark-PK Tsai Signed-off-by: Johan Hovold Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20230213104302.17307-11-johan+linaro@kernel.org --- kernel/irq/irqdomain.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 6bd6b61..3a3213d 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -210,9 +210,8 @@ static struct irq_domain *__irq_domain_create(struct fwnode_handle *fwnode, domain->host_data = host_data; domain->hwirq_max = hwirq_max; - if (direct_max) { + if (direct_max) domain->flags |= IRQ_DOMAIN_FLAG_NO_MAP; - } domain->revmap_size = size; @@ -652,9 +651,8 @@ void irq_domain_associate_many(struct irq_domain *domain, unsigned int irq_base, pr_debug("%s(%s, irqbase=%i, hwbase=%i, count=%i)\n", __func__, of_node_full_name(of_node), irq_base, (int)hwirq_base, count); - for (i = 0; i < count; i++) { + for (i = 0; i < count; i++) irq_domain_associate(domain, irq_base + i, hwirq_base + i); - } } EXPORT_SYMBOL_GPL(irq_domain_associate_many);