From patchwork Tue May 16 20:05:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp678340vqo; Tue, 16 May 2023 13:17:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tiGfK1O/F81tKIB7qZKjTdGAcYx0FBTUurDYefylLuc20ytyOR3X0hR4GAjXZ5me8g1Fl X-Received: by 2002:a17:902:be0b:b0:1a9:7ffb:5ed0 with SMTP id r11-20020a170902be0b00b001a97ffb5ed0mr33656580pls.59.1684268267840; Tue, 16 May 2023 13:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684268267; cv=none; d=google.com; s=arc-20160816; b=zV7sp2H6jsdJYJAKCOKIX2u61KATsojaDciVrVeTuboWk+enLdw50+Tqm9Ur1lEIFH Dx6mqgKF51M38l8QAWnlGiLpaisRYs9vv/2w/ZS1Ck3QzvxMHesTjbyId3K++E370g1S ItExzqZzewpVYzVyfbAkkJ1weI3kzD2GRiL7kZeJzrb63ZNN+Sb07dEys4FEnBS/i/xP kMucck7UL/jegV9kfHekItCwB1xZIYBIsGjD05B+dDcNucnuyGwwZ4AVq+3ipu+jYzei 9Ctt0SJnAM/nInVGdnh76Nso/KXPlqMEcOBsSChlbpX2JXgBh92OTNeLdndbR6ok9MMj mxDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=k2rvViNHJQUn+XEbEn+7oxU+FypjNe7wHMRDsGtj3rE=; b=eUqb2/sKnXXEw576M8XcMj4pl4v+wH3pDiaMmEkV/D1vw14PY7V4uk2sEl7KH8Ar7D /L9rPEUAmlVTCrlAzrCdtm+yWow9OxnfhT2IYyvXgM6jH774rbOJvi3p2D5n5NKYlUCt 6SFQXcVa1tTcGeN2F/HK2k4GHsOJcG/jAEylv504z7PzRx2k/cH721EOdj8ewSPwuT7V BKeO+6GEt+tiyA0gMxQeodqmZkikrolOT5N5WA3tcQNrg3sx8CmtISsAVY3kfzdtfqCi Rl9lfyiulECW2zuA4Bh9eiOiUFFgQObj4s96y0w/lv8MRfNwRI6Jeb4RNAiFbASTSWeh DAbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J+ZvipnA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a170902a3c600b001aade54f986si18354550plb.249.2023.05.16.13.17.33; Tue, 16 May 2023 13:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J+ZvipnA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjEPUFZ (ORCPT + 99 others); Tue, 16 May 2023 16:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjEPUFX (ORCPT ); Tue, 16 May 2023 16:05:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C14DE5FCA for ; Tue, 16 May 2023 13:05:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5EAA562CEE for ; Tue, 16 May 2023 20:05:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5A0C433D2; Tue, 16 May 2023 20:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684267521; bh=wikSyWqzlAJd2tgFWBBFCVgyU4deM5B+UNmj/wOjPpE=; h=From:To:Cc:Subject:Date:From; b=J+ZvipnA8doCVHcQF1T6olbgyqzzfVEXHSt8VUWUyYvIdCL5M+5RqBS1M93ppRfkQ 77uKZauXRaFZcyf6/Tfe9RONL7pzWQOqC4uIQJk5v+wGF9vy3ZWhZ61hOzoFd/xUuT BC62Kf5s/yTIbQRfaZoWVFLUB7ZHMA1FdcIjaZwx1GGgivVZGWSACminSLUTSCTobE 3XVXVUNUMaYjOjQpP6QLwppgeFfip3nFarr4g5Y1XjPNSM8wXsywSBRrkjosyLF0gS zF9YqmAxaXl6mwjrRTLhsSW+4b5laIDg2/W2VrgYx84hZydrxrv5sTX2urabAhrMeL myrTRJo4kRMdw== From: Arnd Bergmann To: Thomas Gleixner , Marc Zyngier , Linus Walleij Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 1/5] irqchip: ftintc010: mark all function static Date: Tue, 16 May 2023 22:05:04 +0200 Message-Id: <20230516200516.554663-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766083283009196780?= X-GMAIL-MSGID: =?utf-8?q?1766083283009196780?= From: Arnd Bergmann Two functions were always global but never had any callers outside of this file: drivers/irqchip/irq-ftintc010.c:128:39: error: no previous prototype for 'ft010_irqchip_handle_irq' drivers/irqchip/irq-ftintc010.c:165:12: error: no previous prototype for 'ft010_of_init_irq' Fixes: b4d3053c8ce9 ("irqchip: Add a driver for Cortina Gemini") Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij --- drivers/irqchip/irq-ftintc010.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-ftintc010.c b/drivers/irqchip/irq-ftintc010.c index 46a3aa60e50e..359efc1d1be7 100644 --- a/drivers/irqchip/irq-ftintc010.c +++ b/drivers/irqchip/irq-ftintc010.c @@ -125,7 +125,7 @@ static struct irq_chip ft010_irq_chip = { /* Local static for the IRQ entry call */ static struct ft010_irq_data firq; -asmlinkage void __exception_irq_entry ft010_irqchip_handle_irq(struct pt_regs *regs) +static asmlinkage void __exception_irq_entry ft010_irqchip_handle_irq(struct pt_regs *regs) { struct ft010_irq_data *f = &firq; int irq; @@ -162,7 +162,7 @@ static const struct irq_domain_ops ft010_irqdomain_ops = { .xlate = irq_domain_xlate_onetwocell, }; -int __init ft010_of_init_irq(struct device_node *node, +static int __init ft010_of_init_irq(struct device_node *node, struct device_node *parent) { struct ft010_irq_data *f = &firq;