Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2458097rdh; Wed, 27 Sep 2023 03:21:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7I9Y8F3CsnqtfOCzzNFng+wilHmtRKPki7OToKlJfCvWBNTnHZ7JzUUBWNpjEhfZ67qd4 X-Received: by 2002:a17:903:2309:b0:1b4:5699:aac1 with SMTP id d9-20020a170903230900b001b45699aac1mr2499772plh.12.1695810104951; Wed, 27 Sep 2023 03:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695810104; cv=none; d=google.com; s=arc-20160816; b=LLkMvHUJBbVrsfh5qAoEoiQyqd+L9JVULUr/J17VqN6/mr6/OHv16V76vyK/KggRkw R+mg9UQDupRuhezh6y1i0suWvoaSRrNyWUrGYt4bs3o1b7yL9P9ZgTCTZ0xC9lYZp2ZD 1dtXeoLjTj6WRyLtFnx6hW5Tgd8OTZFkXUjMdYHHshT7ImEYQAEobJgG+NEconl3S3Jm JUuU5oSyW6IE+ZQY1A2RT3V/Ok/ULkx/NTsGmE/TlA4lslqr5GNfOXrV0t5nbrdqQsTL AFC/9S3tv7YrEzcl3TJyy4b6vMw4jFbNiu66NFZtZ0wcqcqu2pbD/1g5u6fxxJd40iE7 uGjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=p6nhM83d1yMQz2JWQv0jnEbM8/NkkzGn6z5qKlCQnG8=; fh=KH/9o+8UBz/NoIGu0llUr0msPOhSsaa+/ATeWBANkvM=; b=fgSnDrCGUWrv/GWOMR5l0bEhGQwEEJ+mGFyJujfr+pFKH0Wg2JGLNxodXUEhXjkLDM Gnn8zAQHCeY9aQt2QsauwC40zSvtS2zXuCQOdNetPHBf7dN7FQcax/P//A1R8owfFMcH yDqk0ONXwx7GB14ZuoHSfb29GYYxkhfpKC8ED/su9LKZrTL7u9055GZ+oh12IRAxoThg BoIwpjH7RvTvStLBTYeyEfWyya83gp46Egeo9gTZLDYUYnvpPqw/M93E27vDqKgyW7lb tpiCA4ToiSL518a3k0c7rhBI7PhWpY+jlMca1+5IaIyqLNQbOyrJlhTo+Hvhkp3bbYyG PMtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id be8-20020a170902aa0800b001bdd58f685fsi14074019plb.85.2023.09.27.03.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 03:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 76A8C80560D6; Wed, 27 Sep 2023 03:10:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231377AbjI0KJU (ORCPT + 99 others); Wed, 27 Sep 2023 06:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbjI0KIX (ORCPT ); Wed, 27 Sep 2023 06:08:23 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC28D13A; Wed, 27 Sep 2023 03:08:21 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 5C7BF24E2FF; Wed, 27 Sep 2023 18:08:20 +0800 (CST) Received: from EXMBX171.cuchost.com (172.16.6.91) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 27 Sep 2023 18:08:20 +0800 Received: from ubuntu.localdomain (113.72.144.128) by EXMBX171.cuchost.com (172.16.6.91) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 27 Sep 2023 18:08:19 +0800 From: Minda Chen To: Daire McNamara , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Emil Renner Berthing CC: , , , , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie , Minda Chen Subject: [PATCH v7 16/19] PCI: plda: Set plda_event_handler() and event ops to static Date: Wed, 27 Sep 2023 18:07:59 +0800 Message-ID: <20230927100802.46620-17-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230927100802.46620-1-minda.chen@starfivetech.com> References: <20230927100802.46620-1-minda.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.128] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX171.cuchost.com (172.16.6.91) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 27 Sep 2023 03:10:44 -0700 (PDT) Set plda_event_handler() function and event ops structure to static. Signed-off-by: Minda Chen --- drivers/pci/controller/plda/pcie-plda-host.c | 4 ++-- drivers/pci/controller/plda/pcie-plda.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/plda/pcie-plda-host.c b/drivers/pci/controller/plda/pcie-plda-host.c index c73953bcd1f8..11cdda2f6e5f 100644 --- a/drivers/pci/controller/plda/pcie-plda-host.c +++ b/drivers/pci/controller/plda/pcie-plda-host.c @@ -254,7 +254,7 @@ static const struct irq_domain_ops intx_domain_ops = { .map = plda_pcie_intx_map, }; -irqreturn_t plda_event_handler(int irq, void *dev_id) +static irqreturn_t plda_event_handler(int irq, void *dev_id) { return IRQ_HANDLED; } @@ -362,7 +362,7 @@ static int plda_pcie_event_map(struct irq_domain *domain, unsigned int irq, return 0; } -struct irq_domain_ops plda_evt_dom_ops = { +static const struct irq_domain_ops plda_evt_dom_ops = { .map = plda_pcie_event_map, }; diff --git a/drivers/pci/controller/plda/pcie-plda.h b/drivers/pci/controller/plda/pcie-plda.h index e59369f23329..b7420598a326 100644 --- a/drivers/pci/controller/plda/pcie-plda.h +++ b/drivers/pci/controller/plda/pcie-plda.h @@ -163,7 +163,6 @@ struct plda_event { int msi_event; }; -irqreturn_t plda_event_handler(int irq, void *dev_id); int plda_init_interrupts(struct platform_device *pdev, struct plda_pcie_rp *port, const struct plda_event *event); -- 2.17.1