From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 08A613BFAE8 for ; Tue, 1 Sep 2026 07:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788246298; cv=none; b=cgt/rlHbLxdRdvjccw8JEuEzTRCFKp8oEfD63ctX/gKQRazejtP5hneZtivRoz71Y+4aWwJXWDIEGhNpfSQjvIgqrXEMTSVEPwUvu7v0Sp3LuohC89xehWtUR6OO0pkOdlS8yxknNOT3WfrASIjZAqDcYTo4+V9T2PqX8f3iiwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788246298; c=relaxed/simple; bh=ey0G1X9tOwJNDFI9ncTYyCaKALRWJF8gnxAlcVfAHdg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ge/HL4kvA+CtHZlQBb9EL2UW8QP1Oj/Hos73a4gTh3QulTaggnvLPMLMDocjw/U6qfybj9j6T7FpazuOUqwhqRu8/X2X5lITXZEDIwNNq1cZ0cFwv01TWIq8xJZdXcL+a/SeGjfdkUIkz5CKiRY3BWbA/1mbM2uKKFHHPAafCQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RzGNEPB4; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RzGNEPB4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0323E1F00A3D; Tue, 1 Sep 2026 07:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788246296; bh=Dj9L8nra2wlXiqh+4Le5gpOg2EgGvJF4Ts7nBLLHjvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RzGNEPB4pP0EKZmD0drW5mgrIG/D83RTmKmnW7abrKOOkNA0HAPbZAp0oK5q7d3u8 qBn6b3cCWh0zs3ap0kccknBt5rBZDRS1PlgtxROsl7ht2QOe+Euv+QKtnkFutpF434 I+a250fm6VhA0IBDuPBjznx53sug1KnAjvY9tCYWJpaiB1Fe9qQgEwtH0VB1/93LDo 7zFxHxdLC/G0skcZNoPjXBFMwJTVxr77j1V7ZBXx7JPbXW4kl3TTNazUtKaqev9qDl EmbfsmOZ3Gv8ctU5r+e/oAEgJfoXPgQIXonw1qkMfXlhw6MqJCk3rgTko6lVlgGy9y rf3AzE/+1Fd0w== From: "Jiri Slaby (SUSE)" To: tglx@kernel.org Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Radu Rendec , Alex Shi , Yanteng Si , Dongliang Mu Subject: [PATCH] irqdomain: Delete irq_domain_add_linear() Date: Tue, 1 Sep 2026 09:04:49 +0200 Message-ID: <20260901070450.255507-2-jirislaby@kernel.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260901070450.255507-1-jirislaby@kernel.org> References: <20260901070450.255507-1-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 7.3-rc1 is free of calls to irq_domain_add_linear(), so it can be deleted at last. According to Dongliang Mu, the paragraph in the Chinese docs is now obsolete. So drop it completely. Signed-off-by: Jiri Slaby (SUSE) Cc: Thomas Gleixner Cc: Radu Rendec Cc: Alex Shi Cc: Yanteng Si Cc: Dongliang Mu --- [v2] drop the whole paragraph (Dongliang Mu) --- .../zh_CN/core-api/irq/irq-domain.rst | 4 ---- include/linux/irqdomain.h | 18 ------------------ 2 files changed, 22 deletions(-) diff --git a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst index aaefeda0e164..7317cf5355c9 100644 --- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst +++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst @@ -90,10 +90,6 @@ irq_domain映射的类型 映射的优点是固定时间查找IRQ号,而且irq_descs只分配给在用的IRQ。 缺点是该表 必须尽可能大的hwirq号。 -irq_domain_add_linear()和irq_domain_create_linear()在功能上是等价的, -除了第一个参数不同--前者接受一个Open Firmware特定的 'struct device_node' 而 -后者接受一个更通用的抽象 'struct fwnode_handle' 。 - 大多数驱动应该使用线性映射 树状映射 diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 73c25d40846c..3ba75a4ed3da 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -752,24 +752,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig } #endif -static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node, - unsigned int size, - const struct irq_domain_ops *ops, - void *host_data) -{ - struct irq_domain_info info = { - .fwnode = of_fwnode_handle(of_node), - .size = size, - .hwirq_max = size, - .ops = ops, - .host_data = host_data, - }; - struct irq_domain *d; - - d = irq_domain_instantiate(&info); - return IS_ERR(d) ? NULL : d; -} - #else /* CONFIG_IRQ_DOMAIN */ static inline void irq_dispose_mapping(unsigned int virq) { } static inline struct irq_domain *irq_find_matching_fwnode(struct fwnode_handle *fwnode, -- 2.55.0