From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FEAFC433EF for ; Sat, 25 Jun 2022 00:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231576AbiFYAHc (ORCPT ); Fri, 24 Jun 2022 20:07:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231572AbiFYAHb (ORCPT ); Fri, 24 Jun 2022 20:07:31 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEDC78AC36; Fri, 24 Jun 2022 17:07:24 -0700 (PDT) X-UUID: b9183ccfe3574f87899e93a81761789e-20220625 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.6,REQID:042ac45f-7b1d-49cd-b928-455eb01938c5,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:b14ad71,CLOUDID:ed3776ea-f7af-4e69-92ee-0fd74a0c286c,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:-5,EDM:-3,IP:nil,URL:0,File:ni l,QS:nil,BEC:nil,COL:0 X-UUID: b9183ccfe3574f87899e93a81761789e-20220625 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 596147150; Sat, 25 Jun 2022 08:07:17 +0800 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Sat, 25 Jun 2022 08:07:16 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 25 Jun 2022 08:07:16 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 25 Jun 2022 08:07:16 +0800 From: Miles Chen To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , <~postmarketos/upstreaming@lists.sr.ht> Subject: Re: [PATCH v3 5/7] clk: mediatek: clk-apmixed: Remove unneeded __init annotation Date: Sat, 25 Jun 2022 08:07:16 +0800 Message-ID: <20220625000716.12272-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220624093525.243077-6-angelogioacchino.delregno@collabora.com> References: <20220624093525.243077-6-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org > Remove an unneeded __init annotation from the declaration of function > mtk_clk_register_ref2usb_tx(): this avoids section mismatch warnings > during modpost phase when called from functions that have no such > annotation (useful when clocks are platform drivers). > > Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Miles Chen > --- > drivers/clk/mediatek/clk-apmixed.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/mediatek/clk-apmixed.c b/drivers/clk/mediatek/clk-apmixed.c > index fc3d4146f482..6b0ab0a346e8 100644 > --- a/drivers/clk/mediatek/clk-apmixed.c > +++ b/drivers/clk/mediatek/clk-apmixed.c > @@ -70,7 +70,7 @@ static const struct clk_ops mtk_ref2usb_tx_ops = { > .unprepare = mtk_ref2usb_tx_unprepare, > }; > > -struct clk_hw * __init mtk_clk_register_ref2usb_tx(const char *name, > +struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name, > const char *parent_name, void __iomem *reg) > { > struct mtk_ref2usb_tx *tx; > -- > 2.35.1