From patchwork Sat Oct 9 02:20:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12547259 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 9E091C433EF for ; Sat, 9 Oct 2021 03:08:44 +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 6930060FC1 for ; Sat, 9 Oct 2021 03:08:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6930060FC1 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=dPsTkg1uvC4+L+ RSCEuBwDZn2WoQHCSIhZsiswjjBX1T4O/Qb85Wnqx4l1xmL+2paGK+q4Av2XQ5bt9Fl/2Uuq0c3G+ lSc4Wo84t65wewyL3Bo0uCB8HxTl98MEEjiMuk/ycXtm+YLGU37p0ciNmfoOloNe5w2+TDQY0ZhiK nP5Btvo9hwu1IU2zsKQBGJq+FxbDT8m5JANdZW4aZXD45gyn/8K/0XZs8W5l24XiIs7erWoA8G7UK URlFweq/Fa5TCvjhmh6AN5Xlcxy9TuAOfqLFwwFjaou9LgmgmkCyY70puyigvHO59nNP+jXwgNoUL LUsZ5pwJlsuKgpHMpRhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ2gy-004pTQ-1X; Sat, 09 Oct 2021 03:06:32 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZ1yU-004Xrs-M3 for linux-arm-kernel@lists.infradead.org; Sat, 09 Oct 2021 02:20:36 +0000 Received: by mail-pl1-x630.google.com with SMTP id c4so7296887pls.6 for ; Fri, 08 Oct 2021 19:20: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=GKRgrW9QFKOioBZo1RI+VKpq5uf6LGwK5q2jelZH/Z4LPF+xgZGOXxs+VqGU75R2mw weK4TN90FEmgYCwy+FrjrPTzqXgn0hPizTkv/FatD5UAQTuxvB8FTZIJRlsiyaht1kbC Gh0cEbcYbCQVluL6JW7zuZzLSeenNyRaBlKJVA4T48RZIsGf0Vzza11FXZ3mDfttKj5a YukxssY7uYec/Z9/Nb7S+uPhzw8i9B3549I3bal2AuTmL3vbku/RhSHownMTh5ewCRkt EyKfDAW+vlNqwxK2k1hZaQRhAjcqE/j7o3DvFevoW1jTk7DVxFSB94ANqQy0bLz0aTkf GN3w== 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=jCYkU95mVonWE8/OFvTd78RJXfUkTS/rWDaLS607fGykk6Ua/GAKr62rWVF6STZXsZ ajevBfxiDR1U5bt6BTaBzTWyQn/WdbS+pMT/v65JCKLJUcXSDDt+HHG9pStfnp7KeylX AgvsgwcY8H65ieV20kXP/WEbC+u4esVNxzV7XT+hL62ECuwU4/E1Br3FBb8Tb0KjCJ2+ tJrqGNeWcXKxEWlRDTzMDeNyneFFfFqqxop3Gwcf+h5TG9zSUDoienrRPdnLgK0QmXge cebA1UVZYMG9fHfqjyW0FAK47FZ17r2Z7MSLg3SEUMkiDb+GODjLwSlh2l+zjWO7JQk0 sqHQ== X-Gm-Message-State: AOAM533kYS+0FMWPRcWkTLFS2Mw3WnGWaa/DiUtAaSZ1LfdDVXcA7s+f IvCfPb9ZnS7kWvytiaO3yT4= X-Google-Smtp-Source: ABdhPJyEJoQPpWTVdtBiJLwZn89ZXiyoahAuHDNGpbSqabP7fCIHLAdNqD7QVHIdSxf9qwDLs0VGYQ== X-Received: by 2002:a17:90a:a585:: with SMTP id b5mr16001989pjq.97.1633746033454; Fri, 08 Oct 2021 19:20:33 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id pi9sm444692pjb.31.2021.10.08.19.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 19:20: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 v4 03/14] irqchip/irq-bcm7038-l1: Use irq_get_irq_data() Date: Fri, 8 Oct 2021 19:20:12 -0700 Message-Id: <20211009022023.3796472-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211009022023.3796472-1-f.fainelli@gmail.com> References: <20211009022023.3796472-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-20211008_192034_756302_7673495D X-CRM114-Status: GOOD ( 16.28 ) 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; }