Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2042009pxb; Mon, 8 Mar 2021 12:29:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRB2XtES6Pw6yLWNWaOTiR1nSkdD9iP0qp2CiKw3lY0OEyqrGQoplX9c8BZYgNIr/qH5eY X-Received: by 2002:a17:906:b113:: with SMTP id u19mr12555934ejy.335.1615235378519; Mon, 08 Mar 2021 12:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615235378; cv=none; d=google.com; s=arc-20160816; b=hL6D1H2h/soJgvT8rJyJs6eTy0Lk3+Nhdj7Z6hS51mohjX6ZqETyQ0HsbYKkzQNQBU eR7SfbOGk9trgdkMuoHDleFSCkJ1AibnAmb+4ST9okoUHdmcV/+NvLU0hGgx86dMsZQS 4PXZY3RSbbSAmW+JlewjeS32kVCwTCTHKlsYzCQkZvkeGr75owc80z3gEkbQ94WmdrQk ShBloLPYkxT3VK9iaAuufi9rH1Ak0oMpHC3qSsaXR9w9mF1C/62zgf/JK1mYbteTUdmu rr9qYe6KRuEFgEpvvy9Qd3wVTZ+bl7zjjXREIj31CVl7LfSzAA/CjwMgeibIgUpd6uo4 QlYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ZkAGJFlsMlRwMoieJ+e7Zf9cvbsYrzywx/OBEWx0vyk=; b=NGH2s4A7MSlJYKwtFuaBeghlbJnnewdBUeNZIkHPR1lS8Uxf5PCL8GVbgztA4rwBxk zRRoennE9+lc+KfEImsE8PvN6yXCKxD0/7WUpth5oSRM7zRihOIeFzWOEklpRQJ59Ay7 nZkGxchvtOdgwp7PiRhVWVBGXv+hVn1nd+1ESrKWzYdClo1ZeWlodsfFQr+tI21mU/vh srZQEbDFzvDgNU68LR10QSmpaZXXpb6TI7BM8sF1lhvdk3CwxUL0hgx13obCpOQButqE jHcwsH6J5izveamH8RYGrk9ixQ8BTOT2Jed5zZeU1uFZTM5ddiqeww4Din3qGbtrW2Co BBWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VKYGkw9x; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=5sp04yLd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si7467034eds.18.2021.03.08.12.29.15; Mon, 08 Mar 2021 12:29:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VKYGkw9x; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=5sp04yLd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbhCHU0K (ORCPT + 99 others); Mon, 8 Mar 2021 15:26:10 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:48034 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbhCHUZ5 (ORCPT ); Mon, 8 Mar 2021 15:25:57 -0500 Date: Mon, 08 Mar 2021 20:25:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1615235156; 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=ZkAGJFlsMlRwMoieJ+e7Zf9cvbsYrzywx/OBEWx0vyk=; b=VKYGkw9xTKElPXPVmpYNA0snxrb1Q9VAgPh7s+jRgLLyGuMX/oE2dAHhi3k2UKm+3I8HCU 3b5cHfxM7K7pUnQYuejTKBIHpqUu+5l2nw3vxC6lDfML2/S3y9hNsfCT1whfNp8P7IZJM3 udzEILSIL0Y3xykOCvgO0VQx+/Y3JYQ6v8PiY/i7n8gHntO9mwWmkP4gcfxBayz4yIvUdz FspTWYM71UKDGpjmITFkQeAaRTpfv5hkJV6DsnYFxR+btiAWvxPxq6qHIZVvnJoZ4nLuUK jzSpnI7g4Y9lrHkC7O2R5ta09Kz5SSr0EqKbn7BCO2bloFSk2ePv6rMOOjsGww== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1615235156; 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=ZkAGJFlsMlRwMoieJ+e7Zf9cvbsYrzywx/OBEWx0vyk=; b=5sp04yLdErygqCcUz0EwvVnMQqcgkImwGaVFdqCCYwCZYy9Zk3WK8v3kVmwp8oY+6rrchq Jt3Jzx8bDpcoJ5CA== From: "irqchip-bot for Greg Kroah-Hartman" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqdomain: Remove debugfs_file from struct irq_domain Cc: Marc Zyngier , Thomas Gleixner , linux-kernel@vger.kernel.org, "Greg Kroah-Hartman" In-Reply-To: References: MIME-Version: 1.0 Message-ID: <161523515626.398.7178950064751758201.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/irqchip-next branch of irqchip: Commit-ID: 69dd4503a7e6bae3389b8e028e5768008be8f2d7 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/69dd4503a7e6bae3389b8e028e5768008be8f2d7 Author: Greg Kroah-Hartman AuthorDate: Tue, 16 Feb 2021 15:36:07 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 08 Mar 2021 20:12:08 irqdomain: Remove debugfs_file from struct irq_domain There's no need to keep around a dentry pointer to a simple file that debugfs itself can look up when we need to remove it from the system. So simplify the code by deleting the variable and cleaning up the logic around the debugfs file. Cc: Marc Zyngier Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/YCvYV53ZdzQSWY6w@kroah.com --- include/linux/irqdomain.h | 4 ---- kernel/irq/irqdomain.c | 9 ++++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 42d1968..33cacc8 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -150,7 +150,6 @@ struct irq_domain_chip_generic; * setting up one or more generic chips for interrupt controllers * drivers using the generic chip library which uses this pointer. * @parent: Pointer to parent irq_domain to support hierarchy irq_domains - * @debugfs_file: dentry for the domain debugfs file * * Revmap data, used internally by irq_domain * @revmap_direct_max_irq: The largest hwirq that can be set for controllers that @@ -174,9 +173,6 @@ struct irq_domain { #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY struct irq_domain *parent; #endif -#ifdef CONFIG_GENERIC_IRQ_DEBUGFS - struct dentry *debugfs_file; -#endif /* reverse map data. The linear map gets appended to the irq_domain */ irq_hw_number_t hwirq_max; diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 2881513..d10ab1d 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -1898,16 +1898,15 @@ DEFINE_SHOW_ATTRIBUTE(irq_domain_debug); static void debugfs_add_domain_dir(struct irq_domain *d) { - if (!d->name || !domain_dir || d->debugfs_file) + if (!d->name || !domain_dir) return; - d->debugfs_file = debugfs_create_file(d->name, 0444, domain_dir, d, - &irq_domain_debug_fops); + debugfs_create_file(d->name, 0444, domain_dir, d, + &irq_domain_debug_fops); } static void debugfs_remove_domain_dir(struct irq_domain *d) { - debugfs_remove(d->debugfs_file); - d->debugfs_file = NULL; + debugfs_remove(debugfs_lookup(d->name, domain_dir)); } void __init irq_domain_debugfs_init(struct dentry *root)