From patchwork Wed Sep 14 03:46:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cuigaosheng X-Patchwork-Id: 12975568 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D6C28ECAAD3 for ; Wed, 14 Sep 2022 03:48:28 +0000 (UTC) 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=uRu9CRx3qEnJ41P18VyFGbZRqfKM1pKUDthl5e/3RZ8=; b=T6t3e4up6Dwp9r XZV+ukVEX9Wgz+RtDRdS0bfQ32KFZscneGrd+4aU5tlQaRBTT6ormwRXFquLtJ9nh+ylF8PporyVI yzujD+T4yIUSqy+qjLbQLGcXI07zD2CmgD1WD9bz1n5xq35WIa2Tp82DQN3jnyseRZ6UG+CTK08kz ASAdUW0WCi11BrV2au8a3r2YYMA5rH2BVEmwRXXsdvNle8k+vb4EfzYd5MonNcpoi6eg5tln82cUW SxiRG4SH4IZX2l/LadwlXiWYYfU/RhnOWKY5FzSV/HXPkCWD/HmwpZ1amZ32OlO0ddsGz4QmdGOlu ziroKwKMoMV4XOPHnlEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYJMn-005pzG-V8; Wed, 14 Sep 2022 03:47:14 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYJLx-005p7g-Ib for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 03:46:25 +0000 Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MS5mb16nzzHntJ; Wed, 14 Sep 2022 11:44:15 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 11:46:16 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , CC: , , , Subject: [PATCH 1/3] ARM: OMAP2+: remove orphan declarations from omap2 Date: Wed, 14 Sep 2022 11:46:13 +0800 Message-ID: <20220914034615.1240860-2-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914034615.1240860-1-cuigaosheng1@huawei.com> References: <20220914034615.1240860-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_204622_034773_1470F74E X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. 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 Remove the following orphan declarations from omap_hwmod.h: 1. dra7xx_hwmod_init() was removed by commit 54bc4edb3e52 ("ARM: OMAP2+: Drop legacy platform data for dra7 hwmod"). 2. omap44xx_hwmod_init() was removed by commit 2584d7e7f87a ("ARM: OMAP2+: Drop legacy platform data for omap4 hwmod"). 3. am33xx_hwmod_init() was removed by commit 68fc5990b8be ("ARM: OMAP2+: Drop legacy remaining legacy platform data for am3"). 4. omap_init_opp_table() was removed by commit 99b3587debac ("ARM: OMAP2+: Remove unused legacy code for opp"). 5. omap2xxx_l4_core__timer2 was removed by commit 64dbc3d55d60 ("ARM: dts: Configure system timers for omap2"). 6. omap_serial_board_init() and omap_serial_init_port() were removed by commit f3b78f728955 ("ARM: OMAP2+: Remove legacy serial.c"). 7. omap3_gptimer_timer_init() and omap3_secure_sync32k_timer_init() were removed by commit 2ee04b88547a ("ARM: OMAP2+: Drop old timer code for dmtimer and 32k counter"). 8. omap4_local_timer_init() was removed by commit 036a3d42bb8f ("ARM: dts: Configure system timers for omap5 and dra7"). 9. usbhs_init_phys() was removed by commit 9080b8dc761a ("ARM: OMAP2+: Remove legacy usb-host.c platform init code"). Signed-off-by: Gaosheng Cui --- arch/arm/mach-omap2/common.h | 3 --- arch/arm/mach-omap2/omap_hwmod.h | 3 --- arch/arm/mach-omap2/omap_hwmod_common_data.h | 1 - arch/arm/mach-omap2/omap_opp_data.h | 5 ----- arch/arm/mach-omap2/serial.h | 3 --- arch/arm/mach-omap2/usb.h | 1 - 6 files changed, 16 deletions(-) diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index bd5981945239..a402b4931a65 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h @@ -93,9 +93,6 @@ static inline int amx3_common_pm_init(void) extern void omap2_init_common_infrastructure(void); extern void omap_init_time(void); -extern void omap3_secure_sync32k_timer_init(void); -extern void omap3_gptimer_timer_init(void); -extern void omap4_local_timer_init(void); #ifdef CONFIG_CACHE_L2X0 int omap_l2_cache_init(void); #define OMAP_L2C_AUX_CTRL (L2C_AUX_CTRL_SHARED_OVERRIDE | \ diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index 6962a8d267e7..7fd4231667ec 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h @@ -683,11 +683,8 @@ void omap_hwmod_rtc_lock(struct omap_hwmod *oh); extern int omap2420_hwmod_init(void); extern int omap2430_hwmod_init(void); extern int omap3xxx_hwmod_init(void); -extern int omap44xx_hwmod_init(void); -extern int am33xx_hwmod_init(void); extern int dm814x_hwmod_init(void); extern int dm816x_hwmod_init(void); -extern int dra7xx_hwmod_init(void); int am43xx_hwmod_init(void); extern int __init omap_hwmod_register_links(struct omap_hwmod_ocp_if **ois); diff --git a/arch/arm/mach-omap2/omap_hwmod_common_data.h b/arch/arm/mach-omap2/omap_hwmod_common_data.h index 0045e6680a63..f64e73e4c21f 100644 --- a/arch/arm/mach-omap2/omap_hwmod_common_data.h +++ b/arch/arm/mach-omap2/omap_hwmod_common_data.h @@ -60,7 +60,6 @@ extern struct omap_hwmod_ocp_if omap2_l4_core__uart2; extern struct omap_hwmod_ocp_if omap2_l4_core__uart3; extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1; extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2; -extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2; extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3; extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4; extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5; diff --git a/arch/arm/mach-omap2/omap_opp_data.h b/arch/arm/mach-omap2/omap_opp_data.h index 88375ab38e31..ed84fe95e857 100644 --- a/arch/arm/mach-omap2/omap_opp_data.h +++ b/arch/arm/mach-omap2/omap_opp_data.h @@ -71,11 +71,6 @@ struct omap_opp_def { .vp_errgain = _errgain \ } -/* Use this to initialize the default table */ -extern int __init omap_init_opp_table(struct omap_opp_def *opp_def, - u32 opp_def_size); - - extern struct omap_volt_data omap34xx_vddmpu_volt_data[]; extern struct omap_volt_data omap34xx_vddcore_volt_data[]; extern struct omap_volt_data omap36xx_vddmpu_volt_data[]; diff --git a/arch/arm/mach-omap2/serial.h b/arch/arm/mach-omap2/serial.h index 7ca1fcff453b..1bfe67e0e93d 100644 --- a/arch/arm/mach-omap2/serial.h +++ b/arch/arm/mach-omap2/serial.h @@ -60,7 +60,4 @@ struct omap_board_data; struct omap_uart_port_info; extern void omap_serial_init(void); -extern void omap_serial_board_init(struct omap_uart_port_info *platform_data); -extern void omap_serial_init_port(struct omap_board_data *bdata, - struct omap_uart_port_info *platform_data); #endif diff --git a/arch/arm/mach-omap2/usb.h b/arch/arm/mach-omap2/usb.h index 740a499befce..b570bc8fac2f 100644 --- a/arch/arm/mach-omap2/usb.h +++ b/arch/arm/mach-omap2/usb.h @@ -63,7 +63,6 @@ struct usbhs_phy_data { extern void usb_musb_init(struct omap_musb_board_data *board_data); extern void usbhs_init(struct usbhs_omap_platform_data *pdata); -extern int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys); extern void am35x_musb_reset(void); extern void am35x_musb_phy_power(u8 on); From patchwork Wed Sep 14 03:46:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cuigaosheng X-Patchwork-Id: 12975565 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 40E0CECAAD8 for ; Wed, 14 Sep 2022 03:47:36 +0000 (UTC) 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=fQvIYY631FnOJ/Hdw92xCF9zXg/MhmKcF9ilj8Dflck=; b=L//1qfks5tnAnR 7J6mhsCthC3JcXVdjvDFJACa9jWkvEK0fhfX0fHwe55EV7bkcxqhaM1Yp8NtqnJlTtF9B11pRgYBi rKcmidALZVTxPEvoSfMKjPkvUz0pU3n0rqka5VzD5E1IryXlVcFF1Jkm24nPcghUJySkA7IgWiVs7 U+vIQiV0j/nNvryNkqTM32wsHHLO33F5X2JNa4Y2UKdU06tJnc/T3ni0tRALBxzPdd3Ap8eTliC/5 gu0XnF4XPYAernbP9zviJ7TIjSUVM3nSM4OXbIzpEXK5dUYjkJ5hV3pMQTRC3ErhSmvXt3vENATPq zyAwphj/VR2EFGPvkOGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYJM2-005pG5-Oj; Wed, 14 Sep 2022 03:46:26 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYJLx-005p8o-Ir for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 03:46:23 +0000 Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MS5kc66dfzcjdB; Wed, 14 Sep 2022 11:42:32 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 11:46:17 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , CC: , , , Subject: [PATCH 2/3] ARM: s3c: remove orphan declarations from arch/arm/mach-s3c/devs.h Date: Wed, 14 Sep 2022 11:46:14 +0800 Message-ID: <20220914034615.1240860-3-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914034615.1240860-1-cuigaosheng1@huawei.com> References: <20220914034615.1240860-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_204621_906334_DA003DFA X-CRM114-Status: UNSURE ( 7.42 ) X-CRM114-Notice: Please train this message. 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 s3c64xx_device_spi1 and s3c64xx_device_spi2 were removed by commit f1ba938e4f98 ("spi: s3c64xx: Delete unused boardfile helpers"), so remove the declaration, too. Signed-off-by: Gaosheng Cui Reviewed-by: Mark Brown --- arch/arm/mach-s3c/devs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-s3c/devs.h b/arch/arm/mach-s3c/devs.h index 02b0c5750572..991b9b2006a1 100644 --- a/arch/arm/mach-s3c/devs.h +++ b/arch/arm/mach-s3c/devs.h @@ -33,8 +33,6 @@ extern struct platform_device s3c64xx_device_onenand1; extern struct platform_device s3c64xx_device_pcm0; extern struct platform_device s3c64xx_device_pcm1; extern struct platform_device s3c64xx_device_spi0; -extern struct platform_device s3c64xx_device_spi1; -extern struct platform_device s3c64xx_device_spi2; extern struct platform_device s3c_device_adc; extern struct platform_device s3c_device_cfcon; From patchwork Wed Sep 14 03:46:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cuigaosheng X-Patchwork-Id: 12975567 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D04AEECAAD3 for ; Wed, 14 Sep 2022 03:47:55 +0000 (UTC) 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=WjA4wU87KYIftE0jjfUXUqJdjmF5iE2IjfyGHAtZ6+M=; b=rFsdchPB91ogyH 4aJdlFutnRCOuWbb2WUAYaQ2aMnqQZccQDtOhjoPkMiYUVFCE8oVHvatZnRCbDvcRO+zDuRavpS7/ lU7locVIQrTeUOgZdThWWR34oZ3F/kiSunIIuHAxrWyTzU00BFGpFxwJYN7eOihnS21MmebOTuenL 5MvrjUEd0qsYgxEQ6eN95Zu2cJMdZT9uKg5cq1iqLixhTdIJYMcX4VdX1CtDncw8g1om/Yp9kvIne 908nSjTcQm8vfaOmEnAoDkltDHaovHD5wbShdKhdyNuSqAobdAxhQrJx68tSsVm+3dCb/lmuYrKzJ 8wZRBJbIM21PO/YYrGow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYJMT-005pi4-KU; Wed, 14 Sep 2022 03:46:53 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYJLy-005pA1-7j for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 03:46:25 +0000 Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MS5kN6MCtzlVj0; Wed, 14 Sep 2022 11:42:20 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 11:46:17 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , CC: , , , Subject: [PATCH 3/3] ARM: ftrace: remove unused ftrace_graph_caller_old() declaration Date: Wed, 14 Sep 2022 11:46:15 +0800 Message-ID: <20220914034615.1240860-4-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220914034615.1240860-1-cuigaosheng1@huawei.com> References: <20220914034615.1240860-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_204622_568082_5AFD7F46 X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. 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 All uses of ftrace_graph_caller_old() were removed by commit d3c61619568c ("ARM: 8788/1: ftrace: remove old mcount support"), so remove the declaration, too. Signed-off-by: Gaosheng Cui Acked-by: Linus Walleij --- arch/arm/kernel/ftrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftrace.c index a0b6d1e3812f..0320cfba5b74 100644 --- a/arch/arm/kernel/ftrace.c +++ b/arch/arm/kernel/ftrace.c @@ -261,7 +261,6 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, #ifdef CONFIG_DYNAMIC_FTRACE extern unsigned long ftrace_graph_call; extern unsigned long ftrace_graph_call_old; -extern void ftrace_graph_caller_old(void); extern unsigned long ftrace_graph_regs_call; extern void ftrace_graph_regs_caller(void);