From nobody Sun Feb 8 23:32:16 2026 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 40EB91F462C; Fri, 4 Apr 2025 15:14:23 +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=1743779666; cv=none; b=CqJytVbT0kdwvi7GCV+LjzVw4Y6VHyRASARbbl8Wjdh5gnZD5QNneyrx8x5uJnfguQFcVk2DK0b6CXEQFEqfmugpxEKus9LkdRUZD/0K5TwfsHdXkJmGkUVyuYCjXzDCchEayElSjZ3uGEoDDCTE8VvwP2uxVrYLlKElMLQx20g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743779666; c=relaxed/simple; bh=t6a/nE8y3pW82QrfQXNYykcpekUYsFcs+Kc3gePsRq0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=OuV6NoCsimSWz/XI6EHLD9txzEgHyXAzGGMpYOv62nPto/ZVvBuxVbyn46cM8f2GcWBWNbOAbMRzrzUASgG+ivw9qPWu6vNDjyGafuxfmzMUTs52qpRl2qQ+BvoV9NrJgTR/thNbKNvQOppnaOCjBhQFH+w5pp28/hpKHM6Aijk= 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=nn8L7DWu; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=VzMDMI2t; 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="nn8L7DWu"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="VzMDMI2t" Date: Fri, 04 Apr 2025 15:14:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1743779662; 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=lJ10Le2YJqcqR93ylc7yyxwniaKun8ShnhMKxIVA+KM=; b=nn8L7DWu7w0Unlgv4xZXSAyiYNjLRaDGTsbacYt+cPoK8Awy3jGRO1JlKJz/L8FH8Ge91o Bifo1UYLqFfcLj0WX5U/JCaTcWVETqI4Rnm+HkiBPGSSP7G1mKXv+qVgEhnm78zMQKTI3Z 1XWt9QLlZyunvWkO/VmfzjPpEreoEWqeUB2FTApOY7QZ/mcH6DUJsmpsL5WkSpXMVKET+p 5pKS7JXbxLCWRcL/+rl6BRxLjmx0NcgZbmmMEIhYHAbKN6/gnHrqnBzb3m97GVdSFOPayA /ReN0jXIH58pEcSWTep562ZCqYtBPLY9zkbpNFzfkdH9B8wWFQbuFhADke6xRw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1743779662; 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=lJ10Le2YJqcqR93ylc7yyxwniaKun8ShnhMKxIVA+KM=; b=VzMDMI2t+yk6hRY6Aro2s7SXjs5+O70eJhEoBFqL00ZdrwTqu/wvdSvqhZL3PABki9prIb TCWGZ5pXoqc4m6DQ== From: "tip-bot2 for Jiri Slaby (SUSE)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqdomain: Rename irq_get_default_host() to irq_get_default_domain() Cc: "Jiri Slaby (SUSE)" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20250319092951.37667-4-jirislaby@kernel.org> References: <20250319092951.37667-4-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174377966141.31282.7277721887050901739.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/urgent branch of tip: Commit-ID: 0a27ea384c82e70d16e40adbaebeb3725f7e6342 Gitweb: https://git.kernel.org/tip/0a27ea384c82e70d16e40adbaebeb3725= f7e6342 Author: Jiri Slaby (SUSE) AuthorDate: Wed, 19 Mar 2025 10:28:56 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 04 Apr 2025 16:39:10 +02:00 irqdomain: Rename irq_get_default_host() to irq_get_default_domain() Naming interrupt domains host is confusing at best and the irqdomain code uses both domain and host inconsistently. Therefore rename irq_get_default_host() to irq_get_default_domain(). Signed-off-by: Jiri Slaby (SUSE) Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250319092951.37667-4-jirislaby@kernel.o= rg --- arch/mips/pci/pci-xtalk-bridge.c | 2 +- arch/powerpc/kvm/book3s_hv.c | 2 +- arch/powerpc/kvm/book3s_xive.c | 2 +- arch/powerpc/platforms/powernv/pci-ioda.c | 2 +- arch/powerpc/platforms/pseries/msi.c | 2 +- drivers/irqchip/irq-armada-370-xp.c | 4 ++-- include/linux/irqdomain.h | 2 +- kernel/irq/irqdomain.c | 6 +++--- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bri= dge.c index dae856f..e00c386 100644 --- a/arch/mips/pci/pci-xtalk-bridge.c +++ b/arch/mips/pci/pci-xtalk-bridge.c @@ -620,7 +620,7 @@ static int bridge_probe(struct platform_device *pdev) if (bridge_get_partnum(virt_to_phys((void *)bd->bridge_addr), partnum)) return -EPROBE_DEFER; /* not available yet */ =20 - parent =3D irq_get_default_host(); + parent =3D irq_get_default_domain(); if (!parent) return -ENODEV; fn =3D irq_domain_alloc_named_fwnode("BRIDGE"); diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 86bff15..19f4d29 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -6041,7 +6041,7 @@ static int kvmppc_set_passthru_irq(struct kvm *kvm, i= nt host_irq, int guest_gsi) * the underlying calls, which will EOI the interrupt in real * mode, need an HW IRQ number mapped in the XICS IRQ domain. */ - host_data =3D irq_domain_get_irq_data(irq_get_default_host(), host_irq); + host_data =3D irq_domain_get_irq_data(irq_get_default_domain(), host_irq); irq_map->r_hwirq =3D (unsigned int)irqd_to_hwirq(host_data); =20 if (i =3D=3D pimap->n_mapped) diff --git a/arch/powerpc/kvm/book3s_xive.c b/arch/powerpc/kvm/book3s_xive.c index 1362c67..1302b5a 100644 --- a/arch/powerpc/kvm/book3s_xive.c +++ b/arch/powerpc/kvm/book3s_xive.c @@ -1555,7 +1555,7 @@ int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned = long guest_irq, struct kvmppc_xive_src_block *sb; struct kvmppc_xive_irq_state *state; struct irq_data *host_data =3D - irq_domain_get_irq_data(irq_get_default_host(), host_irq); + irq_domain_get_irq_data(irq_get_default_domain(), host_irq); unsigned int hw_irq =3D (unsigned int)irqd_to_hwirq(host_data); u16 idx; u8 prio; diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platf= orms/powernv/pci-ioda.c index d2a8e02..ae4b549 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c @@ -1881,7 +1881,7 @@ static const struct irq_domain_ops pnv_irq_domain_ops= =3D { static int __init pnv_msi_allocate_domains(struct pci_controller *hose, un= signed int count) { struct pnv_phb *phb =3D hose->private_data; - struct irq_domain *parent =3D irq_get_default_host(); + struct irq_domain *parent =3D irq_get_default_domain(); =20 hose->fwnode =3D irq_domain_alloc_named_id_fwnode("PNV-MSI", phb->opal_id= ); if (!hose->fwnode) diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/= pseries/msi.c index fdc2f7f..f9d8011 100644 --- a/arch/powerpc/platforms/pseries/msi.c +++ b/arch/powerpc/platforms/pseries/msi.c @@ -611,7 +611,7 @@ static const struct irq_domain_ops pseries_irq_domain_o= ps =3D { static int __pseries_msi_allocate_domains(struct pci_controller *phb, unsigned int count) { - struct irq_domain *parent =3D irq_get_default_host(); + struct irq_domain *parent =3D irq_get_default_domain(); =20 phb->fwnode =3D irq_domain_alloc_named_id_fwnode("pSeries-MSI", phb->global_number); diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-arma= da-370-xp.c index 6218e5d..2aa6a51 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -564,7 +564,7 @@ static void mpic_reenable_percpu(struct mpic *mpic) =20 static int mpic_starting_cpu(unsigned int cpu) { - struct mpic *mpic =3D irq_get_default_host()->host_data; + struct mpic *mpic =3D irq_get_default_domain()->host_data; =20 mpic_perf_init(mpic); mpic_smp_cpu_init(mpic); @@ -700,7 +700,7 @@ static void mpic_handle_cascade_irq(struct irq_desc *de= sc) =20 static void __exception_irq_entry mpic_handle_irq(struct pt_regs *regs) { - struct mpic *mpic =3D irq_get_default_host()->host_data; + struct mpic *mpic =3D irq_get_default_domain()->host_data; irq_hw_number_t i; u32 irqstat; =20 diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 4b5c495..e9ab95f 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -353,7 +353,7 @@ struct irq_domain *irq_domain_create_legacy(struct fwno= de_handle *fwnode, struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, enum irq_domain_bus_token bus_token); void irq_set_default_domain(struct irq_domain *domain); -struct irq_domain *irq_get_default_host(void); +struct irq_domain *irq_get_default_domain(void); int irq_domain_alloc_descs(int virq, unsigned int nr_irqs, irq_hw_number_t hwirq, int node, const struct irq_affinity_desc *affinity); diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 480fdc9..9d5c865 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -590,7 +590,7 @@ void irq_set_default_domain(struct irq_domain *domain) EXPORT_SYMBOL_GPL(irq_set_default_domain); =20 /** - * irq_get_default_host() - Retrieve the "default" irq domain + * irq_get_default_domain() - Retrieve the "default" irq domain * * Returns: the default domain, if any. * @@ -598,11 +598,11 @@ EXPORT_SYMBOL_GPL(irq_set_default_domain); * systems that cannot implement a firmware->fwnode mapping (which * both DT and ACPI provide). */ -struct irq_domain *irq_get_default_host(void) +struct irq_domain *irq_get_default_domain(void) { return irq_default_domain; } -EXPORT_SYMBOL_GPL(irq_get_default_host); +EXPORT_SYMBOL_GPL(irq_get_default_domain); =20 static bool irq_domain_is_nomap(struct irq_domain *domain) {