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 3388BC64EC4 for ; Fri, 3 Mar 2023 04:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229515AbjCCEKh (ORCPT ); Thu, 2 Mar 2023 23:10:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjCCEKe (ORCPT ); Thu, 2 Mar 2023 23:10:34 -0500 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D14C015555 for ; Thu, 2 Mar 2023 20:10:32 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R521e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vczh7Sz_1677816629; Received: from 30.97.48.241(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Vczh7Sz_1677816629) by smtp.aliyun-inc.com; Fri, 03 Mar 2023 12:10:30 +0800 Message-ID: <52b532de-4d02-54d2-c20b-b9ce3a96a110@linux.alibaba.com> Date: Fri, 3 Mar 2023 12:10:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH] erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init To: Yangtao Li , xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, jefflexu@linux.alibaba.com Cc: linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20230303031418.64553-1-frank.li@vivo.com> From: Gao Xiang In-Reply-To: <20230303031418.64553-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/3 11:14, Yangtao Li wrote: > They are used during the erofs module init phase. Let's mark it as > __init like any other function. > > Signed-off-by: Yangtao Li Reviewed-by: Gao Xiang Thanks, Gao Xiang > --- > fs/erofs/decompressor_lzma.c | 2 +- > fs/erofs/pcpubuf.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/erofs/decompressor_lzma.c b/fs/erofs/decompressor_lzma.c > index 091fd5adf818..307b37f0b9f5 100644 > --- a/fs/erofs/decompressor_lzma.c > +++ b/fs/erofs/decompressor_lzma.c > @@ -47,7 +47,7 @@ void z_erofs_lzma_exit(void) > } > } > > -int z_erofs_lzma_init(void) > +int __init z_erofs_lzma_init(void) > { > unsigned int i; > > diff --git a/fs/erofs/pcpubuf.c b/fs/erofs/pcpubuf.c > index a2efd833d1b6..c7a4b1d77069 100644 > --- a/fs/erofs/pcpubuf.c > +++ b/fs/erofs/pcpubuf.c > @@ -114,7 +114,7 @@ int erofs_pcpubuf_growsize(unsigned int nrpages) > return ret; > } > > -void erofs_pcpubuf_init(void) > +void __init erofs_pcpubuf_init(void) > { > int cpu; >