Message ID | 20221209140150.1453-4-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp795346wrr; Fri, 9 Dec 2022 06:07:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf76F/UauvJKEFsjPEj/R6V4+bWkO8+yapXXaAUovHS6Vfxly6qMqV01QpyrNhdcD562y6zz X-Received: by 2002:a17:902:efc2:b0:189:76ef:e112 with SMTP id ja2-20020a170902efc200b0018976efe112mr5587559plb.41.1670594877415; Fri, 09 Dec 2022 06:07:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670594877; cv=none; d=google.com; s=arc-20160816; b=CQToAld7OKCBDU0EbjFrKUH4rQqkf80kN5JLkFUkGOgD3pmEiaIkIj5cG4Bf/vQ86n v8BgfYsuImx0OGnOdZbUNVtq9Wy8ahugziGvWetVcsuGA5B70xkjRJ2mpUP++dD2ztt3 m4q3ODYwy93n5WD1CKHVNm4IxScEzjoJ8QR22aFyHSmgLyjelsoetJdThYS0HkMrSlsa QvrT/EtFcCF//j7kVeKI6chlLx5rr5sy/Q8Nh9DHaixCXAS/MvL5o/2HDq++yCpkrm6d AYTwtVJHX4nA1iofK2OVh6aeBgbQOOaLYmlu679mtW6j0dUJIrKfkPdWiMcBOUrQg5FL Mwwg== 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=KXI4/2gvWo3JgagVv9QzrshOOsooeMjvWeQoQPWHWvY=; b=fJWjzDpIXE/+5CEtcXp68XpIESBEQZlf2LeP5bK4EvvdKiogZ0BSJqR1QDfNoTltUt EOr9KkYjY0ut/Chz2YFqnkuF+g+hJS/lqWue0Uq9zR3EcngTExOEFhoLhThzsprSTJeM PqO964wEWrhMvPVbxDbXh92x8j36Riy4ul1ZqJdgBR39dm5cIjHvujnURDXlmULiSjxc /MatGrx/kGUD6FW30zHzxa+gkU8xXKgg1JJlKCi4VL/8OfAc2l9qmAVkmS+JoOp77oX3 5Zi125ZqC+zsJka3TdKTO2cRfrDFJBpMraBRGvuYvoKTMIZo5ouAS1KvjEg60OqTBU5v EiQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oUW10l3c; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g64-20020a636b43000000b00478d5e8c51asi1596612pgc.281.2022.12.09.06.07.42; Fri, 09 Dec 2022 06:07:57 -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=@kernel.org header.s=k20201202 header.b=oUW10l3c; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbiLIOFp (ORCPT <rfc822;sophiezhao968@gmail.com> + 99 others); Fri, 9 Dec 2022 09:05:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbiLIOFT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 9 Dec 2022 09:05:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B925278697; Fri, 9 Dec 2022 06:05:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 56E77B8287A; Fri, 9 Dec 2022 14:05:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78FADC433A8; Fri, 9 Dec 2022 14:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670594713; bh=62Hsw3IDekfs4Ib+zf3Eg7ZV2PJkMIizx7ANGAPQ61c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oUW10l3cUR5KCjF/GgIMN/DD1OxWuDSXZVQ9RNkRUS/Asgqsh1VdeRrLQSK3pynpz XKWY39K9d7/kdxFvjgrK7M9ooqQe5hrXWOw26WLX3M64Bax7q7qGNgLtAb/j6oX5s4 ljnvHXGKiuEPWUJAF2Tds8yM4sscPbl9lPIwfVJAavmMFGq1pnTEFxdngmrlFv/eiY Oh7LAZIABdXx46wqT5m71kfss0mEX1nDulIyEYtm9tsp4kuPYOuxGe5nOX6iibIvuC HMM48lcKLBtgPRwyPlT8iscJlNYXSUZURGu7TzkXaY3YT6FrR8kLkNAmn9mr2W905j 6ve63l3AI9GDA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1p3e0I-0000RT-CB; Fri, 09 Dec 2022 15:05:30 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Marc Zyngier <maz@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de>, x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH v3 03/19] irqdomain: Drop leftover brackets Date: Fri, 9 Dec 2022 15:01:34 +0100 Message-Id: <20221209140150.1453-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221209140150.1453-1-johan+linaro@kernel.org> References: <20221209140150.1453-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751745694145582899?= X-GMAIL-MSGID: =?utf-8?q?1751745694145582899?= |
Series |
irqdomain: fix mapping race and clean up locking
|
|
Commit Message
Johan Hovold
Dec. 9, 2022, 2:01 p.m. UTC
Drop some unnecessary brackets that were left in place when the
corresponding code was updated.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
kernel/irq/irqdomain.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Comments
On 9/12/22 15:01, Johan Hovold wrote: > Drop some unnecessary brackets that were left in place when the > corresponding code was updated. > > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- > kernel/irq/irqdomain.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index fe9ec53fe7aa..dfd60bd49109 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -219,9 +219,8 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int s 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; @@ -615,9 +614,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);