From nobody Wed Dec 17 06:31:54 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5A6C200113; Mon, 17 Jun 2024 13:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718632278; cv=none; b=nJ7bc3TiSx+vkSYvuby8nE6WPPjMRAVJkAIaOe7ElDuDELf4o3t2a8Mz9Zb5zCEFbrj0gVdhZQSATFAQefBUgPOwrXikYadt6DIiaiXPhPNJ6N48W7Gn/CC+LSkpP35ll8hQeGhlahIGWVYBZsfAcwSCo9mV9wRsfSvn+Wa3b7E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718632278; c=relaxed/simple; bh=YGHr0fBHq1X6VbqwPCnxNVJC5dGoh5maAoGxqeFyXhc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=FfA2wElAJnny90ddcwv4w/Zs1NbsYveR5AGMWJcbkfoD12XnkO0rKWgzVGfIrGbMcxabwL49IYDdDJ7LC5/CTxnIyA3ebzWAr6zocUp6COVilxyA5LKyy4zmbiA9Vh2jlJzH4yn5hO2Q31URpHRwXfWeLuvu1SM5bbelLsaa7NU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=AUOyHzHz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KuTDPtfi; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AUOyHzHz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KuTDPtfi" Date: Mon, 17 Jun 2024 13:51:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718632272; 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=rlytCrJMi8BjIN4si29WfH5a+g2VcfqrTF6aCRS7TqY=; b=AUOyHzHzjwzEVCaCTSzepet3jVJc1FcNIupcFJ8JMs1jkfaKm9PmUg/opEA4+MU7u9pKGH IYJmEqMiufCMYpbCx+jiAqWhw1noTrxZVFITLsCJveArPwnbecwjz+eAR9/2kdZzdvqJbF dhSD6QUxnFu6jv8DaD0ajjJ7FT0zf1K69koEYnPM08ikXOw5W5rvDAAomSfISN87AKltmL 4pedjn47nMAcuflCxGi9JCGuPp0SaE5HdrX4ZTBkSXlLz68iMYssSTOpJXWO/s05E08C5v oUb6blOnc9+dc/xeOZrHADjOjazhnNXOKBlnw9Urs5qRIIcxMbVO6vC0yHkHQg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718632272; 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=rlytCrJMi8BjIN4si29WfH5a+g2VcfqrTF6aCRS7TqY=; b=KuTDPtfisf4iPap6kPh42CPh9S/+vKIERV0ayF9Yv1r+NOW/KyONDQE2ASkzyq+Vul22lk gTVR7XLHlNu1QKDw== From: "tip-bot2 for Herve Codina" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqdomain: Use irq_domain_instantiate() for hierarchy domain creation Cc: Herve Codina , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20240614173232.1184015-10-herve.codina@bootlin.com> References: <20240614173232.1184015-10-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171863227170.10875.4428200346359944530.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/core branch of tip: Commit-ID: b986055dd04141efd6d5dcdacd48d6b38cf320c8 Gitweb: https://git.kernel.org/tip/b986055dd04141efd6d5dcdacd48d6b38= cf320c8 Author: Herve Codina AuthorDate: Fri, 14 Jun 2024 19:32:10 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 17 Jun 2024 15:48:13 +02:00 irqdomain: Use irq_domain_instantiate() for hierarchy domain creation irq_domain_instantiate() handles all needs to be used in irq_domain_create_hierarchy() Avoid code duplication and use directly irq_domain_instantiate() for hierarchy domain creation. Signed-off-by: Herve Codina Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240614173232.1184015-10-herve.codina@boot= lin.com --- kernel/irq/irqdomain.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 1269a81..8dc0007 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -1213,23 +1213,16 @@ struct irq_domain *irq_domain_create_hierarchy(stru= ct irq_domain *parent, .hwirq_max =3D size, .ops =3D ops, .host_data =3D host_data, + .domain_flags =3D flags, + .parent =3D parent, }; - struct irq_domain *domain; + struct irq_domain *d; =20 if (!info.size) info.hwirq_max =3D ~0U; =20 - domain =3D __irq_domain_create(&info); - if (domain) { - if (parent) - domain->root =3D parent->root; - domain->parent =3D parent; - domain->flags |=3D flags; - - __irq_domain_publish(domain); - } - - return domain; + d =3D irq_domain_instantiate(&info); + return IS_ERR(d) ? NULL : d; } EXPORT_SYMBOL_GPL(irq_domain_create_hierarchy);