Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5527729rwb; Tue, 17 Jan 2023 15:13:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtcYYjq1TyuXlBpP+E3Ljx1oDfNNK8/lqB1A6YIy3L3WUaswuj8Zg5HcXSV4GUVpcE1G/48 X-Received: by 2002:a05:6a20:9305:b0:b8:7ce2:7fad with SMTP id r5-20020a056a20930500b000b87ce27fadmr4171588pzh.51.1673997238586; Tue, 17 Jan 2023 15:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673997238; cv=none; d=google.com; s=arc-20160816; b=pwz75JsmXvEfPkp7VHI4e2u1D3EnLiNTxTkyZmExFILXZws8XySq86U/swMyoQZmZn 6jUBMAsWiErpcO83x6XjWkgTJ8JwGgYZHQ8FycsITsLXGpN5zOsBPVKMQvIDhEuRshtD vNtMIsls0ToXpiD0QqXdDe6HuB8tyDdalofkGR7U7lFcL0JUEpYKrqP7lVslJn3LkPib DLLq0E5K+l6IAmiF4bpNnGMDZJBlJdUemtQxPSOW8mzuwzJA4zxuCmzYed9vksH5M8xY o+oha/ib+dC22scCiPT4qlzs/k7xwsw4O94IfNDSdgoue1sR/oUaps3nWGIjG3T0ldos VRfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=4AeA8HWTNyA+542Yy1mnW9CN08TqGtQG3B/ZL09l8uA=; b=PRANuVThkvpjMwlDmq7a8JTXid4E/MiU2ufWGDhWPtwd0SdpRwLM0J1j23GsDmmhKf kvzaOx8bRDRPmqW6hayVFW5RxlPMLTWDypb1NVXCh+6RHcLF7F8UKksF9rezHkqtrt3T EdgMoqFogYSOJeh3BxOo4TC2jUozoVoKi/ecpxTZtrMrocJKeSr3wxC/BFGaEdQARbEx EuLax5EikUivCpcmU8NCojHZWh0W7RT4yGZlv66SUauLT7lbiggns2xj0AO84mU3ZXYa qtwVfV5Qq9du34eSzSOLZTlvljWkjoPlQJJcfonHyuTHS3Iv/4OK6hgbuIe8N3gYefoa wMOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rPZbbB9s; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=8PeqowJt; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 129-20020a630187000000b004cd409304a3si7363399pgb.228.2023.01.17.15.13.52; Tue, 17 Jan 2023 15:13:58 -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=rPZbbB9s; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=8PeqowJt; 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 S229697AbjAQXGH (ORCPT + 48 others); Tue, 17 Jan 2023 18:06:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjAQXEN (ORCPT ); Tue, 17 Jan 2023 18:04:13 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D7DC3C22; Tue, 17 Jan 2023 13:34:42 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673991280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4AeA8HWTNyA+542Yy1mnW9CN08TqGtQG3B/ZL09l8uA=; b=rPZbbB9sKHo88rdQ3OGBFgtrGJ9u+bOjIl1UgP8rccLaNOWw1AURrjE1FyttmcBp8WPkzM w3Wd/bVVK5MGFa50151Bqa0BJzVN5nTIj0QfQ+6zfdj8Fs4oaSpZli4SAhzQK9MOHjsAX0 trASDeaGpvYDg8Q5wBbswi9BpRxvz1jNwMHv2np2Agtnz1bTwa+qNk5J/NgrS2XAEy2AqN lqEjpxX2Q2QYSQXe4i64FZ4T+MpH6nRBUBKZ61rZa3zN6+rLz4J9UDOnHfg803nrqvyVgS f6SEOJgcOY1UFUx9Fpb9biZe721ptRHSJdFS27fvIbED3PzZFT95lFDk7w/5rQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673991280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4AeA8HWTNyA+542Yy1mnW9CN08TqGtQG3B/ZL09l8uA=; b=8PeqowJt1eEpwm8buo/EdAdgx5K4vk8M25cJyKrjNd9GznhMFa+Id3HxZVjnX5ja/gmNyr hW5dqFIElLwshyDw== To: Johan Hovold , Marc Zyngier Cc: 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 , Hsin-Yi Wang , Mark-PK Tsai Subject: Re: [PATCH v4 08/19] irqdomain: Refactor __irq_domain_alloc_irqs() In-Reply-To: <20230116135044.14998-9-johan+linaro@kernel.org> References: <20230116135044.14998-1-johan+linaro@kernel.org> <20230116135044.14998-9-johan+linaro@kernel.org> Date: Tue, 17 Jan 2023 22:34:40 +0100 Message-ID: <87v8l4kfpr.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain 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 On Mon, Jan 16 2023 at 14:50, Johan Hovold wrote: > Refactor __irq_domain_alloc_irqs() so that it can be called internally > while holding the irq_domain_mutex. > > This will be used to fix a shared-interrupt mapping race. No functional change. The split out internal function will be used to fix a shared interrupt mapping race. This change is therefore tagged with the same fixes tag. Fixes: .... > -int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base, > - unsigned int nr_irqs, int node, void *arg, > - bool realloc, const struct irq_affinity_desc *affinity) > +static int ___irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base, > + unsigned int nr_irqs, int node, void *arg, > + bool realloc, const struct irq_affinity_desc *affinity) __ vs. ___ is almost undistinguishable. irq_domain_alloc_irqs_locked() nicely explains what this is about, no? Thanks, tglx