Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A7B3C433EF for ; Thu, 9 Dec 2021 16:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241140AbhLIQL1 (ORCPT ); Thu, 9 Dec 2021 11:11:27 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40098 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240929AbhLIQKq (ORCPT ); Thu, 9 Dec 2021 11:10:46 -0500 Date: Thu, 09 Dec 2021 16:07:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1639066032; 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=Ablos0pD0xOVJAzo8aCxAsLfcdRnzvcjku4MBQCPXJw=; b=1dj0Sk9qc21YChXmLYxrQYK6y0CGhch5z7tBOH7RerkkKuiLILgCUF4jENs3wec/DoKm4w 1TJlr9KW63EH9npc46lAbKyGN47D9A1CyJoRr6J8mLGj4k8OPL23zA+d0Q2usD0tequT0U F1LZVyeCU4jup19Vzph7vHgvZApwBfD09VEyWkXmoJp6lvsn80wX4sM4bZHZMeBROkGiL6 FEgENDakpdcXBhdnbzMFa6JLh40OVizHRGqrpuaciShDqjgwMiYgAoDUmeO9GFoBz4d9TR M1NM5TVFT1h7Sc0pv6e9kYb8Mhru2nZi2HDQPVWSvxRCqJ2Hk0gJsfGU6ss29w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1639066032; 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=Ablos0pD0xOVJAzo8aCxAsLfcdRnzvcjku4MBQCPXJw=; b=8kCs03Ms+hUTYL/gLwf5UFU/6neiZDPWxINziTEgYuneCTLFZ3bRQyKnO8ipG4zJ3Gr8uY v6HopjsDo0R4UoAA== 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/msi] genirq/msi: Remove unused domain callbacks Cc: Thomas Gleixner , Juergen Gross , Jason Gunthorpe , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20211126223824.322987915@linutronix.de> References: <20211126223824.322987915@linutronix.de> MIME-Version: 1.0 Message-ID: <163906603144.11128.3225742767932206586.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/msi branch of tip: Commit-ID: 1dd2c6a0817fd08f80dee75d7d3bd99a0c4b828d Gitweb: https://git.kernel.org/tip/1dd2c6a0817fd08f80dee75d7d3bd99a0c4b828d Author: Thomas Gleixner AuthorDate: Mon, 06 Dec 2021 23:27:29 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 09 Dec 2021 11:52:20 +01:00 genirq/msi: Remove unused domain callbacks No users and there is no need to grow them. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Reviewed-by: Jason Gunthorpe Link: https://lore.kernel.org/r/20211126223824.322987915@linutronix.de Link: https://lore.kernel.org/r/20211206210224.041777889@linutronix.de --- include/linux/msi.h | 11 ++++------- kernel/irq/msi.c | 5 ----- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/include/linux/msi.h b/include/linux/msi.h index d43b946..4b962f7 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -304,7 +304,6 @@ struct msi_domain_info; * @msi_free: Domain specific function to free a MSI interrupts * @msi_check: Callback for verification of the domain/info/dev data * @msi_prepare: Prepare the allocation of the interrupts in the domain - * @msi_finish: Optional callback to finalize the allocation * @set_desc: Set the msi descriptor for an interrupt * @handle_error: Optional error handler if the allocation fails * @domain_alloc_irqs: Optional function to override the default allocation @@ -312,12 +311,11 @@ struct msi_domain_info; * @domain_free_irqs: Optional function to override the default free * function. * - * @get_hwirq, @msi_init and @msi_free are callbacks used by - * msi_create_irq_domain() and related interfaces + * @get_hwirq, @msi_init and @msi_free are callbacks used by the underlying + * irqdomain. * - * @msi_check, @msi_prepare, @msi_finish, @set_desc and @handle_error - * are callbacks used by msi_domain_alloc_irqs() and related - * interfaces which are based on msi_desc. + * @msi_check, @msi_prepare, @handle_error and @set_desc are callbacks used by + * msi_domain_alloc/free_irqs(). * * @domain_alloc_irqs, @domain_free_irqs can be used to override the * default allocation/free functions (__msi_domain_alloc/free_irqs). This @@ -351,7 +349,6 @@ struct msi_domain_ops { int (*msi_prepare)(struct irq_domain *domain, struct device *dev, int nvec, msi_alloc_info_t *arg); - void (*msi_finish)(msi_alloc_info_t *arg, int retval); void (*set_desc)(msi_alloc_info_t *arg, struct msi_desc *desc); int (*handle_error)(struct irq_domain *domain, diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index a8a0dae..cd4fa26 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -562,8 +562,6 @@ int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, ret = -ENOSPC; if (ops->handle_error) ret = ops->handle_error(domain, desc, ret); - if (ops->msi_finish) - ops->msi_finish(&arg, ret); return ret; } @@ -573,9 +571,6 @@ int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev, } } - if (ops->msi_finish) - ops->msi_finish(&arg, 0); - can_reserve = msi_check_reservation_mode(domain, info, dev); /*