From patchwork Fri Oct 15 15:14:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 12562379 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 30574C433F5 for ; Fri, 15 Oct 2021 15:18:46 +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 D32AD60E0C for ; Fri, 15 Oct 2021 15:18:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D32AD60E0C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References: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:In-Reply-To: List-Owner; bh=8Rysxvnf7KUe/Q1xd8O4muke5josH5xWlK9uG1pE9Z0=; b=NXMaIvZv/fHf+6 Ej3lMVyxeWJjtXrJAGQLaNvIpm3yb62ULLvBfKqBBsfmPjXKVectFoCtXC2dirDwy+Ps7L+shAp2W N1NbDhMi/mYdODQuVmC0yPOO1/WOKNZq4z580+pkqFJ2CBCSWIhMlPuFLY+dNamZkmYj3vzVHNRls N+nRkkw8UWAE/vchhhHKV7WNoP0WZ3H0t3s+44bVcqd3cZo74ZxAiILuBxqaxJoTv7o4qCr5TQI+a AJdHJoOy2y65ummvosR4BhQreReVyr8PWhPTKMFhybZYLOko5nEAqK1QJzfh4EYu/7+LkWKflvwtP MjjPlCqf31wDVL8mg6vA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbOwW-007sKP-0n; Fri, 15 Oct 2021 15:16:23 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbOux-007riC-FB for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 15:14:45 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20211015151439euoutp02342aa74ce68aa678061931ed76604814~uPRX5_-6v2918929189euoutp02Y for ; Fri, 15 Oct 2021 15:14:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20211015151439euoutp02342aa74ce68aa678061931ed76604814~uPRX5_-6v2918929189euoutp02Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1634310879; bh=b5QUxLBUiBBzlY2mLx4CgdE8KvDbnYjfslJYLSWVFP8=; h=From:To:Cc:Subject:Date:References:From; b=s3Em61no7rug3gPibUVnIOVMOXxLL3/ilPOlDHAHHYZ5f19ibrmtuqrjkq2j5QQAw PhN7lriRc3C2D7gSdlC8NpGANNOsLIDsqCdzJMyNetBfuz4FkISguRJB5jm/VTKOdW 9Kp1VAHvsx14lsmJzId9I7G7nJsXzm8W31jDDzzc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20211015151439eucas1p212104ef07920d6e97597d233f221a230~uPRXkqr8M1152811528eucas1p2Y; Fri, 15 Oct 2021 15:14:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CF.63.42068.EDA99616; Fri, 15 Oct 2021 16:14:38 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20211015151438eucas1p1a784b8fb6bc20b01d4b1ec3634359df5~uPRXCPUfe2191821918eucas1p1f; Fri, 15 Oct 2021 15:14:38 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20211015151438eusmtrp1e70ea15dd5229f5ccf3497697e1e2a20~uPRW_oWNF2678526785eusmtrp1c; Fri, 15 Oct 2021 15:14:38 +0000 (GMT) X-AuditID: cbfec7f4-c71ff7000002a454-87-61699ade8bac Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 25.F8.20981.EDA99616; Fri, 15 Oct 2021 16:14:38 +0100 (BST) Received: from AMDC3061.digital.local (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20211015151437eusmtip2d9324e2e8468a16ee68151dd6f1e2727~uPRWbCuwt0130001300eusmtip2-; Fri, 15 Oct 2021 15:14:37 +0000 (GMT) From: Sylwester Nawrocki To: linux-clk@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, cw00.choi@samsung.com, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH] clk: samsung: Remove meaningless __init and extern from header files Date: Fri, 15 Oct 2021 17:14:25 +0200 Message-Id: <20211015151425.29743-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRmVeSWpSXmKPExsWy7dj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IAAAAAAAAA+NgFtrHLMWRmVeSWpSXmKPExsVy+t/xe7r3ZmUmGnxtZbW4/uU5q8X58xvY LTY9vsZq8bHnHqvFjPP7mCzWHrnLbnHxlKvF4TftrBb/rm1kceD0eH+jld1j06pONo/NS+o9 +rasYvT4vEkugDVKz6Yov7QkVSEjv7jEVina0MJIz9DSQs/IxFLP0Ng81srIVEnfziYlNSez LLVI3y5BL+P/RaOCZvWKzsvXWRoYtyt2MXJwSAiYSLx5W9TFyMUhJLCUUWLNjZ0sEHEpifkt Sl2MnECmsMSfa11sEDWfGCVOf3jPCpJgEzCU6D3axwhiiwjIStw69hOsiFngM6PE+oUTmUAS wgKhEvObH7KB2CwCqhJbLs1hBrF5Bawl2voOMUNskJdYveEA8wRGngWMDKsYRVJLi3PTc4uN 9IoTc4tL89L1kvNzNzECA3LbsZ9bdjCufPVR7xAjEwfjIUYJDmYlEd53B9IThXhTEiurUovy 44tKc1KLDzGaAu2byCwlmpwPjIm8knhDMwNTQxMzSwNTSzNjJXFekyNr4oUE0hNLUrNTUwtS i2D6mDg4pRqYtjudqLQTtNhZsazhR3WdypkvW/f9VX/usKPp5JKeH6LZWzquPQ7znvW9OITN yLBaLque84/1Gpcp7lvcTI6/d05ofyDPljfLq/mgfLzVenntd9yHFuVlC9yyFpa5YHYydo3G QjmJ+/+rza76fz7x7q2D06Gjif9Myl8ZX5s2I/+sp3XNzqy1+r3SS8+e2Fj5wmDZxF2VLj1C Vt+4r20wyKlsPXhuc/WSzcw8MiEKhkcW63Bu3qA6Uy2yzvf4mdvzRZ5FpK62Lvvo9XLG0axj tS9O9H+L+yX7X5SztO/NguW/ZpwM3LWFxWjW5Vk33l61Mrt36L3x2eu5keFcIhW3YpRlDmus 2V0Zsb2HfZ5RpxJLcUaioRZzUXEiAM2KB4zRAgAA X-CMS-MailID: 20211015151438eucas1p1a784b8fb6bc20b01d4b1ec3634359df5 X-Msg-Generator: CA X-RootMTR: 20211015151438eucas1p1a784b8fb6bc20b01d4b1ec3634359df5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20211015151438eucas1p1a784b8fb6bc20b01d4b1ec3634359df5 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_081443_889202_8234D780 X-CRM114-Status: GOOD ( 12.49 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove useless __init atrribute and unneeded extern qualifier in function declarations in header files. Signed-off-by: Sylwester Nawrocki Reviewed-by: Krzysztof Kozlowski Reviewed-by: Stephen Boyd --- drivers/clk/samsung/clk-cpu.h | 2 +- drivers/clk/samsung/clk.h | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/clk/samsung/clk-cpu.h b/drivers/clk/samsung/clk-cpu.h index af74686db9ef..fd885d2bf74c 100644 --- a/drivers/clk/samsung/clk-cpu.h +++ b/drivers/clk/samsung/clk-cpu.h @@ -62,7 +62,7 @@ struct exynos_cpuclk { #define CLK_CPU_HAS_E5433_REGS_LAYOUT (1 << 2) }; -int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx, +int exynos_register_cpu_clock(struct samsung_clk_provider *ctx, unsigned int lookup_id, const char *name, const struct clk_hw *parent, const struct clk_hw *alt_parent, unsigned long offset, diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index b23776d540eb..b46e83a2581f 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h @@ -337,52 +337,52 @@ struct samsung_cmu_info { const char *clk_name; }; -extern struct samsung_clk_provider *__init samsung_clk_init( +struct samsung_clk_provider * samsung_clk_init( struct device_node *np, void __iomem *base, unsigned long nr_clks); -extern void __init samsung_clk_of_add_provider(struct device_node *np, +void samsung_clk_of_add_provider(struct device_node *np, struct samsung_clk_provider *ctx); -extern void __init samsung_clk_of_register_fixed_ext( +void samsung_clk_of_register_fixed_ext( struct samsung_clk_provider *ctx, struct samsung_fixed_rate_clock *fixed_rate_clk, unsigned int nr_fixed_rate_clk, const struct of_device_id *clk_matches); -extern void samsung_clk_add_lookup(struct samsung_clk_provider *ctx, +void samsung_clk_add_lookup(struct samsung_clk_provider *ctx, struct clk_hw *clk_hw, unsigned int id); -extern void __init samsung_clk_register_alias(struct samsung_clk_provider *ctx, +void samsung_clk_register_alias(struct samsung_clk_provider *ctx, const struct samsung_clock_alias *list, unsigned int nr_clk); -extern void __init samsung_clk_register_fixed_rate( +void samsung_clk_register_fixed_rate( struct samsung_clk_provider *ctx, const struct samsung_fixed_rate_clock *clk_list, unsigned int nr_clk); -extern void __init samsung_clk_register_fixed_factor( +void samsung_clk_register_fixed_factor( struct samsung_clk_provider *ctx, const struct samsung_fixed_factor_clock *list, unsigned int nr_clk); -extern void __init samsung_clk_register_mux(struct samsung_clk_provider *ctx, +void samsung_clk_register_mux(struct samsung_clk_provider *ctx, const struct samsung_mux_clock *clk_list, unsigned int nr_clk); -extern void __init samsung_clk_register_div(struct samsung_clk_provider *ctx, +void samsung_clk_register_div(struct samsung_clk_provider *ctx, const struct samsung_div_clock *clk_list, unsigned int nr_clk); -extern void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx, +void samsung_clk_register_gate(struct samsung_clk_provider *ctx, const struct samsung_gate_clock *clk_list, unsigned int nr_clk); -extern void __init samsung_clk_register_pll(struct samsung_clk_provider *ctx, +void samsung_clk_register_pll(struct samsung_clk_provider *ctx, const struct samsung_pll_clock *pll_list, unsigned int nr_clk, void __iomem *base); -extern void samsung_clk_register_cpu(struct samsung_clk_provider *ctx, +void samsung_clk_register_cpu(struct samsung_clk_provider *ctx, const struct samsung_cpu_clock *list, unsigned int nr_clk); -extern struct samsung_clk_provider __init *samsung_cmu_register_one( +struct samsung_clk_provider *samsung_cmu_register_one( struct device_node *, const struct samsung_cmu_info *); #ifdef CONFIG_PM_SLEEP -extern void samsung_clk_extended_sleep_init(void __iomem *reg_base, +void samsung_clk_extended_sleep_init(void __iomem *reg_base, const unsigned long *rdump, unsigned long nr_rdump, const struct samsung_clk_reg_dump *rsuspend, @@ -397,13 +397,13 @@ static inline void samsung_clk_extended_sleep_init(void __iomem *reg_base, #define samsung_clk_sleep_init(reg_base, rdump, nr_rdump) \ samsung_clk_extended_sleep_init(reg_base, rdump, nr_rdump, NULL, 0) -extern void samsung_clk_save(void __iomem *base, +void samsung_clk_save(void __iomem *base, struct samsung_clk_reg_dump *rd, unsigned int num_regs); -extern void samsung_clk_restore(void __iomem *base, +void samsung_clk_restore(void __iomem *base, const struct samsung_clk_reg_dump *rd, unsigned int num_regs); -extern struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump( +struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump( const unsigned long *rdump, unsigned long nr_rdump);