From patchwork Tue Sep 28 18:21:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12523495 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89B01C433F5 for ; Tue, 28 Sep 2021 18:26:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A6FB61381 for ; Tue, 28 Sep 2021 18:26:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5A6FB61381 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n9reuRIPVjKqnJmb4/HFW15pg1LEXrSsoTLiQ4fWpMM=; b=JSwnstlWhbMDZG 3c4hVIU0UJ/Lx1LB6QCRDrUxVbFWHBjk2vM+sqToSmt9GvODn/uszp8ibhyKARuFKrZ9wsVM/qIl8 bFwXXJ7HzObTRGd/ii5BUw6cATw/dSart1p2z6rSE7gUTxd52a73Hp3f7PopcpEco8pJ4ipT/50ui IVBrE5tQ1cL4csRrL3Vh30fM4MO1RSVE3YhnXzKicJFQ7INgsp8297pVQCifN+uKVTexFY+AptVWk UC9Aoaecs+HC/P1vgLCFziilpemByueUhJ4DNjTveOXYZpjo6HB8zxSsSbV8tZpRjg0OWlHhwCctX dSAoyRK7MgftzfqyT+6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVHko-008OIH-Qs; Tue, 28 Sep 2021 18:22:59 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVHkJ-008O9Y-1K for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 18:22:28 +0000 Received: by mail-pg1-x52b.google.com with SMTP id 75so5707457pga.3 for ; Tue, 28 Sep 2021 11:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b+ZBi3anDomFQV4e/giygkqAUlU4kNEpUMbqtcbvyD0=; b=e2HJ3c6ZwWUFLdevBMc1GkHSS88vwShLGGfOz/pbGGDRcNXpXWeNIxdt+84S8LZuLi jtUY/y/e52uKXENcXcK55HHN+MaGQ2/vGbLiuWp21FdiogwKKk8aC7XoXAKlLeY//sid yLL6LEGsYXE21szIxif2OOIB/qhfKUQSUAWTskCrG+PZSxPj3oiGl2vXE6vA2ov98buj rHowgod9EL52ADB0YjUzw1/XK1G+z3ktB5/H5/u0qlwDkqcCDhaec5DZoLO+ATMCsRZH z+IXaCe+o+TbPvy6Hk0xhJzq4PUcRj7QNG9T+5WP8PQ3qyINftNO+t8cKQWpUPabbsg3 5jIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b+ZBi3anDomFQV4e/giygkqAUlU4kNEpUMbqtcbvyD0=; b=XD0X7Mj8QyoOvNuVsYmlXBEwZTL6OlU/3Qbv7KVqrIfQD/0DVM96Cseo1YlgiicVGa FgFaENj8Am1kF+/c4f7zBZ32cpdOOPvV2EVcbSY5Qod5mo5XcjpWGJsCo0J4JhVJt19o EyMtCxTpnsk/wgOA9JpQGRTVnH58p9DuXAbTLPa9F9IRGM+pBpCF7NIsSq5JKOGpHTeU 7idPkIt2daplG3ANFPN2+rlseCL9hZSx5o3OMr3037JeFv+aBZWnKIIuxsPwhPSU6tbU hdR2KSnl8sCj2irjXpAN3MKjN7GffcB2JZ1sgC/6r2OyM14NEs9JaeCYq80I62Iff3MB GRKw== X-Gm-Message-State: AOAM530xhbdaDBiD2UJW5bUaO53d52o0oO4kG/xSQ2PJkE2tS14r0HY/ OAF1RYing6tX4kk8jXGYznQ= X-Google-Smtp-Source: ABdhPJzzSkYVoZXOkse0RijrGCPDHq4DWBO0lF4oSKo1mMeB4ZYLTmF2x0/q85KsvpG2ZNGSLmLZ0A== X-Received: by 2002:aa7:989e:0:b0:44b:2d81:8510 with SMTP id r30-20020aa7989e000000b0044b2d818510mr6929389pfl.55.1632853345920; Tue, 28 Sep 2021 11:22:25 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x19sm20855288pfn.105.2021.09.28.11.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 11:22:25 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Thomas Gleixner , Marc Zyngier , Rob Herring , Frank Rowand , linux-arm-kernel@lists.infradead.org (moderated list:ARM SUB-ARCHITECTURES), linux-mips@vger.kernel.org (open list:MIPS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH v3 03/14] irqchip/irq-bcm7038-l1: Use irq_get_irq_data() Date: Tue, 28 Sep 2021 11:21:28 -0700 Message-Id: <20210928182139.652896-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928182139.652896-1-f.fainelli@gmail.com> References: <20210928182139.652896-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_112227_122656_BB1DDE71 X-CRM114-Status: GOOD ( 17.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Using irq_desc_get_irq_data(irq_to_desc()) to retrieve the irq_data structure from a virtual interrupt number is going to be problematic to make irq-bcm7038-l1 a module because irq_to_desc() is not exported, and there is no intent to export it to modules, see 64a1b95bb9fe ("genirq: Restrict export of irq_to_desc()"). Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm7038-l1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index 750156217c82..14caf32dc23e 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -386,7 +386,7 @@ static int bcm7038_l1_map(struct irq_domain *d, unsigned int virq, irq_set_chip_and_handler(virq, &bcm7038_l1_irq_chip, handle_level_irq); irq_set_chip_data(virq, d->host_data); - irqd_set_single_target(irq_desc_get_irq_data(irq_to_desc(virq))); + irqd_set_single_target(irq_get_irq_data(virq)); return 0; }