From patchwork Tue May 16 20:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp677708vqo; Tue, 16 May 2023 13:16:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ONCoJufNSar0k/BeDDPnZfalpj+6B2y5yKTq1jZRl5rQj8ci7kdjkJp6I9R6mV0ObhhEQ X-Received: by 2002:a05:6a00:2d9a:b0:641:d9b:a458 with SMTP id fb26-20020a056a002d9a00b006410d9ba458mr50546632pfb.18.1684268191351; Tue, 16 May 2023 13:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684268191; cv=none; d=google.com; s=arc-20160816; b=wPqsfC1gRsPUON+hOILFq/Qtq9GIAQ+DrdagtMTt5GH8LZA7FN8lFdUld/bNPa+ebr 7GkhYW5rBEKDnQ2k8cAsUPFWNpH58RNPYK20epxhbHvqreveZe+2ks9+6h4mwzsfxvog GFur6uvyhqRt4lAKApPQQKEEpTyBZxb0nfaN6OFB+Nm/kT+13RKuU1V4cmK842X+GfNk wGZBr6RLboukdAYo+1KwmurklNxun7iPYogad6nTnkD5+3YDZXW7eXMP1A5C6VKHFEqD /sD9P8lYq8WdM7r4IcHGAX/JTO5MYjsb8NL4RHMlrQKqXCNX6jGoqX/OidiY/9nS19UV +T2w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dHISNxMWnDAAL33MvmxADtnXK1fLn4jJ9GL3ljRE478=; b=VFvM0LcYRIb/GNJOG7usv8g6ttb8yby6pB7+Jfd5ifuAKhfnkc5apAtG95osuAPQ+2 +4hvJMh1MFyVMUuYVij3EVL3ObEodq9MXFJ416B6cIAmdoZwQPuNkTgghqMCoGvl6quI jfpmTjxWt5/jDvDZZnDvMAA0RonJUioif0qfzQHW6RUUvpKEy6GBUMUtWZ/k5AcEkfiw iltZxleIP/zMa5JGlX8qWLXcdv6zzkNIMNCDNrD85K9+yg3Se+lZQeWdbh+Q4VfzOlDD ZyXSsIhkpnHUetj11dmqQrHAux41G/zlfkn0QtZExkbwh50TXUo9cgakORGOUZPZMXOh vpPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SRn29TWB; 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 x1-20020aa79561000000b0063b8ab7f91csi20040750pfq.365.2023.05.16.13.16.16; Tue, 16 May 2023 13:16:31 -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=SRn29TWB; 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 S229666AbjEPUFo (ORCPT + 99 others); Tue, 16 May 2023 16:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjEPUFl (ORCPT ); Tue, 16 May 2023 16:05:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD00493E8 for ; Tue, 16 May 2023 13:05:39 -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 5EA7463AEE for ; Tue, 16 May 2023 20:05:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51C02C433EF; Tue, 16 May 2023 20:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684267538; bh=jOaCLqt9lfDL0b/jZW2RMI1YYnbfHLOLMiHxnOKfg+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SRn29TWBolL8E06SvEVXRYmNHxVja3WkTfaclMbTb9FIqPMGNLqkJB4Rf5HPymwET W1yC0qEYh/haNdAOqMlR4HcoM6yVd4S5Y12FaGQ+29LjnGMeSXZGxCL5IVJyaSo9M/ ONyPHcCrbo5Lh8gO3a6T1PJDbj725FwPlWazv/EP6AmQfm0Z/0OjYWq4yNKcC81992 +Ah4gAwS/FIuFXQ0z+dBTTWkPtNr526wiAcuAoMTabLr+5SjGBv2BfViBSgIDWRo3P Vwm4f6aR8vUreKXhzOLKeD+0Qs9L89p5EQOTvyhcl48XArkjUDTcoSPGMUajAQbnb9 OCOwmkVjN1Sfw== From: Arnd Bergmann To: Thomas Gleixner , Marc Zyngier , Alexander Shiyan , Arnd Bergmann Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] irqchip: clps711x: remove unused clps711x_intc_init() function Date: Tue, 16 May 2023 22:05:06 +0200 Message-Id: <20230516200516.554663-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516200516.554663-1-arnd@kernel.org> References: <20230516200516.554663-1-arnd@kernel.org> 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?1766083203322080346?= X-GMAIL-MSGID: =?utf-8?q?1766083203322080346?= From: Arnd Bergmann This function has no caller or declaration any more: drivers/irqchip/irq-clps711x.c:215:13: error: no previous prototype for 'clps711x_intc_init' The #ifdef check around clps711x_intc_init_dt() is also not needed since the file is only built when that is enabled. Fixes: 4a56f46a7dc6 ("ARM: clps711x: Remove boards support") Signed-off-by: Arnd Bergmann --- drivers/irqchip/irq-clps711x.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/irqchip/irq-clps711x.c b/drivers/irqchip/irq-clps711x.c index 77ebe7e47e0e..e731e0784f7e 100644 --- a/drivers/irqchip/irq-clps711x.c +++ b/drivers/irqchip/irq-clps711x.c @@ -212,12 +212,6 @@ static int __init _clps711x_intc_init(struct device_node *np, return err; } -void __init clps711x_intc_init(phys_addr_t base, resource_size_t size) -{ - BUG_ON(_clps711x_intc_init(NULL, base, size)); -} - -#ifdef CONFIG_IRQCHIP static int __init clps711x_intc_init_dt(struct device_node *np, struct device_node *parent) { @@ -231,4 +225,3 @@ static int __init clps711x_intc_init_dt(struct device_node *np, return _clps711x_intc_init(np, res.start, resource_size(&res)); } IRQCHIP_DECLARE(clps711x, "cirrus,ep7209-intc", clps711x_intc_init_dt); -#endif