From nobody Wed Dec 17 00:04:44 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 35B51364BE; Mon, 17 Jun 2024 18:49:32 +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=1718650174; cv=none; b=o06ULZ5rHJzeqx/aFSD+mj6j53AAW6qPuJEDwB+9u+lz7twZfzWcRBOBonbVravnjuUrmF/sBGX3MsqnZ9uURaGuq0mWKNhrCB7Nibd5MNoNBf1pa/jZ2iTJEpPn3sK4UvEJEuDEF/pCEYNNPLG33/0kOtJOGdnNb1m8XxW+amc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718650174; c=relaxed/simple; bh=q06gzOqeRWxO8BKxyT+dTszpm+khnSzcaW718ffYMoQ=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=FBI+C8qib82LyWpLwzYUHBkZH44dDKOlWlk2i3grqhVSJYZDBC3PHJjVg1PWtJhas1EKb6Wu1UjS0GWyCTpLn2grq0r0I84qVURp5XepyAFN41Chz/9DNxjbzWH+2z8S7bAEaUEY+tfOuRdTjKkUjN2eqzmNhtatOqR3Vj0AJEQ= 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=1cMJTCuq; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Zfw3z5CL; 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="1cMJTCuq"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Zfw3z5CL" Date: Mon, 17 Jun 2024 18:49:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718650170; 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; bh=8k/eL6Ni5D3Fig2MwGzoFiFLIk1Ub6lNDC8Ey4Xq7/g=; b=1cMJTCuqyPUFGlOrOZ+WWqyxCisl6/VqWxB4Api0acKXiFfXU/Tuv7IiBj0u0QRwbccZl7 oom/p4WRceO1FDGEQZB3LjElt/TRLFSIGr1G36LJk6enpaiyEXUUlMwaHL/Flpu9Lj90mt egu2Z2Uis7HUZ/qlSBAPYwnwg9BlvdOlVd0CIFjw4xhQfLR0XPZq+FNKjOQmvjbvUgUhyM gKsk0R2ZNZ7FXlPdg2oRLkZsIYck7kfTFFYfk4qTr9r0BLaHXRobUI3FebkDHV6M8Wa2we kF1z8Vqrrnp86fyohe+MUOZmiLbAgeTXH1+To8G3eCsvqLzU82IZNhq5QS9Kcw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718650170; 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; bh=8k/eL6Ni5D3Fig2MwGzoFiFLIk1Ub6lNDC8Ey4Xq7/g=; b=Zfw3z5CLv9odUmBYA0rcoIchQUkanv/7RdpL1sJhU05eIyuhoR53zq/Q6TvCaz3261YmLC hH0JBop3aWPMsVDw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqdomain: Make build work for CONFIG_GENERIC_IRQ_CHIP=n Cc: Borislav Betkov , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171865016969.10875.13044042895933336613.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: 8cb2dbf94e44bcde4cff0223f2f900f8fb9083a4 Gitweb: https://git.kernel.org/tip/8cb2dbf94e44bcde4cff0223f2f900f8f= b9083a4 Author: Thomas Gleixner AuthorDate: Mon, 17 Jun 2024 20:31:31 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 17 Jun 2024 20:46:39 +02:00 irqdomain: Make build work for CONFIG_GENERIC_IRQ_CHIP=3Dn ld: kernel/irq/irqdomain.o: in function `irq_domain_instantiate': kernel/irq/irqdomain.c:296:(.text+0x10dd): undefined reference to `irq_doma= in_alloc_generic_chips' ld: kernel/irq/irqdomain.c:313:(.text+0x1218): undefined reference to `irq_= domain_remove_generic_chips' ld: kernel/irq/irqdomain.o: in function `irq_domain_remove': kernel/irq/irqdomain.c:349:(.text+0x1ddf): undefined reference to `irq_doma= in_remove_generic_chips' Provide the required stubs. Fixes: e6f67ce32e8e ("irqdomain: Add support for generic irq chips creation= before publishing a domain") Reported-by: Borislav Betkov Signed-off-by: Thomas Gleixner --- include/linux/irq.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 712bcee..1f5dbf1 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -1182,9 +1182,19 @@ int devm_irq_setup_generic_chip(struct device *dev, = struct irq_chip_generic *gc, =20 struct irq_chip_generic *irq_get_domain_generic_chip(struct irq_domain *d,= unsigned int hw_irq); =20 +#ifdef CONFIG_GENERIC_IRQ_CHIP int irq_domain_alloc_generic_chips(struct irq_domain *d, const struct irq_domain_chip_generic_info *info); void irq_domain_remove_generic_chips(struct irq_domain *d); +#else +static inline int +irq_domain_alloc_generic_chips(struct irq_domain *d, + const struct irq_domain_chip_generic_info *info) +{ + return -EINVAL; +} +static inline void irq_domain_remove_generic_chips(struct irq_domain *d) {= } +#endif /* CONFIG_GENERIC_IRQ_CHIP */ =20 int __irq_alloc_domain_generic_chips(struct irq_domain *d, int irqs_per_ch= ip, int num_ct, const char *name,