From patchwork Wed Oct 20 18:48:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12573053 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 95A66C433EF for ; Wed, 20 Oct 2021 18:52:46 +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 66BFD61038 for ; Wed, 20 Oct 2021 18:52:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 66BFD61038 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=OY01epwX2OZZyE s76QIlIvs2VC/Lb9Rl3TAFcIU55defOfD316izKkbFKBgYOnEIsuER7meyRBtP0blYGiuF43KI4Qn /195J9BeTWzJV5EWsl/UTo4MR2dg+YK3li5KIcwr3HXLqoDDeay0M77zMfk06vJX+Aq+eceRhsi88 F9B2NTpChMpJ0w/c6mF5PYf8CD1yplaZwXA4KSpTKb8N+z/DGfvc0+yCY1dB3SdwklTyv7XLLBWQQ 025e7/OweDsZ0a8FpL8SzYzkEjeDl4GRRZEUhjagh9eZj/MJHxyfMVyfhQDJNhTvtgnnxfQm3/UdG Li70YawbElFMJwX7Qkcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdGgG-005WCZ-Pb; Wed, 20 Oct 2021 18:51:17 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdGfZ-005Vv7-HM for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 18:50:34 +0000 Received: by mail-pl1-x634.google.com with SMTP id w17so4938868plg.9 for ; Wed, 20 Oct 2021 11:50:33 -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=SyrWs6lXbrFg4nHi9gkhr7imDQDPwnVw+lm9K8FuVphjz6EIEZ0z6LRPP/OaGuisqW cjP7NfsFeBxJFbCYn8vRRYJ6Jkx5qMdtXLbj5iMuXsdtgVjprDYIjNDoa4qUlFrPSDhv 7576n2QSrXx0bn9ExpMoT8ldj4EfQmjxitxl+GzPE1tKCL70QCXUnH8h/x4dVHXZFOvs dFAznep6vLEwf+HUzNN3VQWXOejV2dTfmUxSPSAhUTJrioagbdIWGUHWAXDqkPWAJKH7 6ccfBk0a1tq4KQGbNKfaLbAjbJvdd1FMd3PxOqT4FkDwSI5lLoNaXpv7mM04vLiwyx9P hRZA== 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=M3UOn6/NjB4UcMsBzP0pJrVZTYxLIGcgaIGh+tR/but+g6r9v7m6dvFFTz0o7xhoBY kGHlLya2URuaFrf9xee1Ap0hzYkx+dYutWnxOuVoHQJEX0jwDv7hmHb2UQJkRURxfXvI V+LYnLk4ycyfOicEOgitPfjrA+xTlYdq0HKdEqsaJocbpNIO9cCW6IHmSSuPO/ERj/Pg Fnp3yjJlBATaUVg7tb9GmtETNBijeJnp9FkedXl/m5nR13tQeN5gkLJSL6K/D4g2FktW IwpgsxXBJYd23LOus7F4gHGHDwModMqmseiedeecquVjS0YhfGNUoRuwPhfbcfuSs6Xh hzZQ== X-Gm-Message-State: AOAM531qicmq4+XAV/qpraZwXQiiiLrR3d3GaQvkTmzibrRyxv0ZeXNl WjV13RhGyOZW7aZRcV4n8pE= X-Google-Smtp-Source: ABdhPJwFIhnmeqqGhE+xO1GCa3Z4NjE7orcRZ2tZixwP4cH85iMKEWIXUdQa3ZmRj7ET1xyr3lZRQg== X-Received: by 2002:a17:90b:4d84:: with SMTP id oj4mr745231pjb.58.1634755832707; Wed, 20 Oct 2021 11:50:32 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id o127sm3267863pfb.216.2021.10.20.11.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 11:50:32 -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 v6 03/13] irqchip/irq-bcm7038-l1: Use irq_get_irq_data() Date: Wed, 20 Oct 2021 11:48:49 -0700 Message-Id: <20211020184859.2705451-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211020184859.2705451-1-f.fainelli@gmail.com> References: <20211020184859.2705451-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-20211020_115033_586426_D9ED6DA0 X-CRM114-Status: GOOD ( 16.76 ) 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; }