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 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 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 62069C43334 for ; Sat, 25 Jun 2022 00:18:37 +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=NH5lWw6Q8y/+cdbYwdtiY7Zdy2aQSd/+JHdSZha+h8E=; b=YqRosb5oqPHWMj Ulgj49lMdP1NZqYiog0H4hgKCK9sVXv6PkCeyiyiOuoy6sDS3y5sJnCGoge50eP2mZ9kPHrDMViEO PBsmgc0so6JmW8K+/MVbT8tx0VvklTzvPmEDnNVLOlaW7upI9CLEwwRp2Te+npveffB38E3GLwffx 8X1VadO77ti7dYlswT+etc+1nT/6lNMmlZcOstHxnh+vUmpxRqbqqIifJGqG040gqydM9FuCWxd/L DavElIVgL1fRTBwRI9qkfbxVfXBOKMCoxE5zxIxiHjUChXzw8M8kaIq1H0nENz0U7WGm5LJMNbSyJ xLpVk5i1DBMT4mvsJ9KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4tUU-004Cpp-IJ; Sat, 25 Jun 2022 00:17:34 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4tUP-004Cmx-9n; Sat, 25 Jun 2022 00:17:32 +0000 X-UUID: 061219af95424619a39ee4df9dbe42cc-20220624 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.6,REQID:53ee6c7d-0cbc-4ac2-ac33-9c9d43e043c8,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:d4a084d8-850a-491d-a127-60d9309b2b3e,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: 061219af95424619a39ee4df9dbe42cc-20220624 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 976294186; Fri, 24 Jun 2022 17:17:19 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Jun 2022 17:07:17 -0700 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 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220624_171729_389691_404A5533 X-CRM114-Status: GOOD ( 15.45 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel