Message ID | 20230303063731.66760-1-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp260526wrd; Thu, 2 Mar 2023 22:53:05 -0800 (PST) X-Google-Smtp-Source: AK7set/VNUiiNYn0yOdnFHQkW+QxbZjmDyT4eoeexWGLveV8pIm+SWei4VwuK9nU+4fF40SavXt8 X-Received: by 2002:a17:90b:1bcd:b0:237:899e:14b4 with SMTP id oa13-20020a17090b1bcd00b00237899e14b4mr634731pjb.10.1677826385466; Thu, 02 Mar 2023 22:53:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677826385; cv=pass; d=google.com; s=arc-20160816; b=E+xu5RIiMYXmA5oEQ1RiW5W+NcjWfLOGiQUXY/zE/GRA5ntIs6+pTV7Lhx377UVRl3 AZRcjXhXkBq9KdGoJEUo6UVbpU5RLCh6Xv05pRoo06dP7zOyDCFrmLuC8bpFZKIi5bIR xNzd5s8gCobo59bKIU9TV3wDq9LdQKnfbJb4+TQHv928uhohrvXOxSpUqAjAmLjEEduH hlDt53a/sPIoSWBxJe+lTgfnodhWI4y8SvEdIY2vYh1Dlw3b5JzvqLDruntOtUXP7pNK 2smqNAcaSKqbgx0ya1uI+ZTsh/8e5MygKD4/61beIgzfPgnNeX/jaaKo6H3vt7jchID4 RyAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=5HAhkd5J674s6rs/5sdKbDbjP9OJy5jmFp368D+W0so=; b=LelB/TTiZN4MjXPGBT7aUw4p4GMlLiBY9OJNWX3rF5y7URd/Zsijo3n1Ps0BPdUaVP PH65pqEfIQuIP0ClfE3cdU5pP1xmmJhr6urcyN6fhk8g7kXPsVSKDY4X3RmGx5N7SsbA cssjUqRAf2tULCGklNVEE1e65DA2aV9QAjxidC80fF45dRgV2Z5EglB652vbQCTTlsqL yVRhSke7e7Tb5OjfPhkJa3gHLqwmFiUerDZIL5pOi5dtiG3Py0Mktrk1dVHpZ5G9moso VEEgVrH77uNXap/EHDzPwmCodGyNxMZayrmVHu+5kyuD2orK4Y39bdVQ+a3AtAIj+CUh t5AQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=YI3cLtZD; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mz4-20020a17090b378400b00233d9add5bcsi1542788pjb.166.2023.03.02.22.52.45; Thu, 02 Mar 2023 22:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=YI3cLtZD; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbjCCGjK (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Fri, 3 Mar 2023 01:39:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjCCGjJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Mar 2023 01:39:09 -0500 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2070d.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::70d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2702F1ADFA for <linux-kernel@vger.kernel.org>; Thu, 2 Mar 2023 22:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lMsp6fXJxlFpQa5M3veK4DvWWKMHDy6K8TmwnL2UX521AUgQgC7qT3D+Km+4fxEzr5XlTwszWFA/ghpkKTUIiX9jpOlK8kuiKtlyuVfwBURH2SH6ERWFhJ5vEqafBuZdaqmJEN1xLTkXk46huXKUw/U8ruYRKlOwwuQvPI/zdRxWKdCnZt8lXdKjW/qtrBLkFFuRqIiqqk5U2AZgYQ/AGiBmkdLCmwMqPEr1fxwjXxCndT7VF9leax1S0korDmMq4w5HRmGvVJbBiV7TbsXI5oWkgnG+vJ47Hl8rCQ6ma6EMwEE64RmL9SNr6WsTVup862wBvHESCFyA+/NEYme3aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5HAhkd5J674s6rs/5sdKbDbjP9OJy5jmFp368D+W0so=; b=HKyYI9mAydHFv2Hr3uWdQMWXYsJqYAcp3p6wrd3I1zg3uw155DQyaTUcGBgYErl9NxPWviFaML8Xec6+M+9os9aR/xIX0bQgTvzqvgfi9ValcSQ2OoPERH2E52mZl4GHn3auytTaTmYpUNwYVObRB6IE2YVhr/YmrTgH21elDEU6BucbtEWJfbxje0zzuAacG4S0C8pvzHE6nD/iNHIo1eR3GmbGXrB6eTahkDeIyE9CsbvL34VUfP5UG20ntLppku80y9MgXVWLR4erYXLOTRfynq2b+h8uMoqYkQZYZvzV25Fd4fw/NvUNItgwDYkGibxzz5VrVvL9RdLYBOwGhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5HAhkd5J674s6rs/5sdKbDbjP9OJy5jmFp368D+W0so=; b=YI3cLtZDLMTh9B2rdEnTHWBYFwCMbR0JUbTeT4e6BAaRVBhtiPG5tbNvONht/xW17r4/SP/jNp0MyMsWD3LiN18ZrbeMHa4RlCLpHDt1vuaxSoMZle11ht9wyHfSb89Wgv403cQQjlzdwpYUvsyXdOBEt3lUYYv9lWX9TsXe0DEogWj/y92vv4N75wEfXCinl64xdsbOrZsw8KQJ/G0MzLSPvja7GCPXHdXNOHx8CdbKfgmR9oIyicxCeoxpco2oMotYtygNaL1ErF8bCJ/T66suBYkMLLhhZ27zVhKfX4PF3ENVWRVfkehTGzUORJa/T0S45a4a2Q4+SaBfnGR8gQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SG2PR06MB5287.apcprd06.prod.outlook.com (2603:1096:4:1df::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.10; Fri, 3 Mar 2023 06:37:44 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6156.016; Fri, 3 Mar 2023 06:37:44 +0000 From: Yangtao Li <frank.li@vivo.com> To: xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, jefflexu@linux.alibaba.com Cc: linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, Yangtao Li <frank.li@vivo.com> Subject: [PATCH v2] erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init Date: Fri, 3 Mar 2023 14:37:31 +0800 Message-Id: <20230303063731.66760-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0040.apcprd02.prod.outlook.com (2603:1096:3:18::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SG2PR06MB5287:EE_ X-MS-Office365-Filtering-Correlation-Id: 532c0b9b-539f-4f65-0c52-08db1bb1cb6c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ArKsENewWFhQ6hTif0+HDmkukTkw71P6J6axbSE/iEzuUC/A4L8dy97IfP3v4lat/tHCaP68j9o54qPRkZAVa5BtmJ540NOKYim4UsmWGqPP6D/h657GEmTcVTopAzxG7bkCyZAGL/j9OD4A3eghgjszYKhD9QJi5HBNv6Wihuc2sOqZVBsc327/j9/L2EpteGmY988LAxAsJ7Hcx7WHDm/Ac4iffcHNRpFWJY+3lsDH41MbgTRh0+Fa6skec7PbOoDVKcSJ8RuZGGeBhLVtRUoTCqKFzZy3ryGBTUDQdkaD4CwjgbI5AsoWli7sINGWTT3C+BFWcYYYPbPibw4HnTqILLnDiFtAdnbuF4cOGkrn10trRfnN9dYzVg+KfqbbckIh/xSHKZQH2kMYEibFSh23WyCMNR7vVImx4MJspLCg7UBrKTpvLuW9sBf5FhAlQyMAtTGm8YaR247txlT9Ts48TUN0Crn8EepYg/Hbr6N1IT+/AW917lsz5mz1TkhFHqgVnkDtlKEhAooZRoLB2nxxNVocM+Mj5mk7fGZ/Rv6NzuGaFBGeSMmkc6jQiz17HwDrovFk1RXhW+QlxCkWWmISH2BkJdXz7NTnIb4uXMKtINAIrm0IYVBOEIdNCNzgC6AqKHJFPn0qwVY8Yyx3FLx9NbjjsGAJs1uMv0KIRmWoLk6PcbnsMM2p+ITzGJLO3oTi7tzCazVD9kH5d2P//g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(346002)(396003)(39860400002)(376002)(366004)(136003)(451199018)(5660300002)(316002)(8936002)(8676002)(41300700001)(4326008)(66556008)(83380400001)(66476007)(66946007)(2906002)(6486002)(6512007)(52116002)(36756003)(38350700002)(478600001)(38100700002)(6666004)(2616005)(186003)(1076003)(6506007)(86362001)(107886003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PvVloSonKDqdzYO+neYwgczSaKP0U+iMtMF7xqBgGsR9jMWTiDQTSeDzqKjikVHJCSbn7/xyv4aqkOP288i5qoKlZyJPLIDQ6seMi+U1o0LDuVA2uoQDfYTAxHvdCPd6eokFqoMWz/LMoy4/qKt6BhF8M6+JyXZ6/9KLtLQnFI20XPeVNjbd/nWuxrMRq3rggbEUIcvngWzYmwBOICUJogEBG8+U2lzvdNPvCTaTgmfAWQmfSEy/JfTXAoy7MESgyWTKAOhoPGuPdDpjXHFdt4weMKyNOaNhNiYyNd23IhrMADKSgxNB6XmVu8G3JLXsvBm/7umeoG1cCoTIGtnes7DIt7omjoKdffcjXndx580FDtmhuRuxD+DlGImZsDbfwkZztnKik9r12cY56P57n/Sw75bzHbyJ14DaGkif/W8gC71RCONDdivtZ5b43cQDFcmlcgMuDzTzrrtTrHmb4/MRmGU2gnP3mcUAluM3Gm4nJSyT8e7UUTEI/uRrIMtsMj3ZGJnR1oNVRlLaCOTRc9YY/3M1Jr9TPR1fmZm2J1hcpvhi/Ch+AXwXhsfQDYO6qXwT5j20/5tGnTe8p81tS3sPum2UAq2RE4wvjQcpzIxXJYEgu/nxiIhiJZe15B04/E+XIP37G5qnskoWsBsTobak9FA6ZPJRD03bpfUN9vCILyGdaQMJWyKfH0U5PzwiVyvLfzGchrhkpO3I/zng0GOzyBAOb0Gc+zHaoYGUQiie2VpcmqNLUMKPAsrlRYZQLIwQa+m1IaqC/FNfLc8Q7cLg6HTUE2ShuSm1p2abY5rLGibT/34L8aQ6kA/lg3jaSiVbOi/YzOoZvYuUtihMkJBU3oZaDDrH8xjkSy7W+dIZqCbfidg7e81k30uDMrza5nl6KM0lDt+syISyhNleVSoDZluP/bYPXXqukq+1QDrSshPd2zc5379NdKFwwZmy8YIhQZqrTx9/rVQLS0g1fRdU9QkHlt9uP4r7XaKUFTVNGIaDI/N4GmfooFPvHX3FcpEzU4iFmLeyz6oLVPQO2bocTkj6cm3I6lLdV0EkNMBvL2e2VPgG1s9pn9Nv1MrYCNqUjfeSrkilG2bQMU5kLtVVVT9xAmG7jJxwl8sy2Y8/UNSDFGJPeM/r8/VDvqwTdVNnusd/VvSQBAWmtdQXJFOgaMyTXf2pyCf0HZpgShbUsx67UB5p5BWfyR2KkJdRRC7iY7o25DGpg3zwyGLxVuq1kWJGJAVrh4Gx2UsC2Dy1TPAxdngGDXBNIzv9JsVFpBxDyHKDerr2CKdWD9vYd7nafH/xfW+EHpWybZ3rrBy+BoSyPu5zdGN0Vul5nnD9soIPjHuSXyQB8UFqdgYjOAy/8wJuENASWN495+M4Vz5V47bkx/CCgOx7CjqvlJL9Fqw5ZNiissNEujg0tyYuSmG/ketvKBwSjHOvQN81HgKrnKAZzWhxNulbG9EFb2Q7q+IU//XP+GRW3CHPkXtnJgRYV2Jvav8+J9JDJNQ3aRys0WwldXbNJAlPy7U8+JULp9cekGE9Bvo392MWZesM9YUOv10F/j7siwDLmq0siwV1SlIeOeBdTfOc/09aWuGt X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 532c0b9b-539f-4f65-0c52-08db1bb1cb6c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2023 06:37:44.0636 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zuFX7oht3ROc+yssyfhGcsVZpxYDh7mMKem3uPcGN8UiB7gMBK08tmilu2uYx5dkQbzXqzFUkUa/4xQmOf1Paw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB5287 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759328480095527762?= X-GMAIL-MSGID: =?utf-8?q?1759328480095527762?= |
Series |
[v2] erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init
|
|
Commit Message
李扬韬
March 3, 2023, 6:37 a.m. UTC
They are used during the erofs module init phase. Let's mark it as
__init like any other function.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
v2:
-change in internal.h
fs/erofs/decompressor_lzma.c | 2 +-
fs/erofs/internal.h | 4 ++--
fs/erofs/pcpubuf.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
Comments
On Fri, 3 Mar 2023 14:37:31 +0800 Yangtao Li <frank.li@vivo.com> 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 <frank.li@vivo.com> Reviewed-by: Yue Hu <huyue2@coolpad.com> > --- > v2: > -change in internal.h > fs/erofs/decompressor_lzma.c | 2 +- > fs/erofs/internal.h | 4 ++-- > fs/erofs/pcpubuf.c | 2 +- > 3 files changed, 4 insertions(+), 4 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/internal.h b/fs/erofs/internal.h > index 3f3561d37d1b..1db018f8c2e8 100644 > --- a/fs/erofs/internal.h > +++ b/fs/erofs/internal.h > @@ -486,7 +486,7 @@ static inline void *erofs_vm_map_ram(struct page **pages, unsigned int count) > void *erofs_get_pcpubuf(unsigned int requiredpages); > void erofs_put_pcpubuf(void *ptr); > int erofs_pcpubuf_growsize(unsigned int nrpages); > -void erofs_pcpubuf_init(void); > +void __init erofs_pcpubuf_init(void); > void erofs_pcpubuf_exit(void); > > int erofs_register_sysfs(struct super_block *sb); > @@ -545,7 +545,7 @@ static inline int z_erofs_fill_inode(struct inode *inode) { return -EOPNOTSUPP; > #endif /* !CONFIG_EROFS_FS_ZIP */ > > #ifdef CONFIG_EROFS_FS_ZIP_LZMA > -int z_erofs_lzma_init(void); > +int __init z_erofs_lzma_init(void); > void z_erofs_lzma_exit(void); > int z_erofs_load_lzma_config(struct super_block *sb, > struct erofs_super_block *dsb, > 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; >
On 2023/3/3 14:37, 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 <frank.li@vivo.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Thanks, Gao Xiang > --- > v2: > -change in internal.h > fs/erofs/decompressor_lzma.c | 2 +- > fs/erofs/internal.h | 4 ++-- > fs/erofs/pcpubuf.c | 2 +- > 3 files changed, 4 insertions(+), 4 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/internal.h b/fs/erofs/internal.h > index 3f3561d37d1b..1db018f8c2e8 100644 > --- a/fs/erofs/internal.h > +++ b/fs/erofs/internal.h > @@ -486,7 +486,7 @@ static inline void *erofs_vm_map_ram(struct page **pages, unsigned int count) > void *erofs_get_pcpubuf(unsigned int requiredpages); > void erofs_put_pcpubuf(void *ptr); > int erofs_pcpubuf_growsize(unsigned int nrpages); > -void erofs_pcpubuf_init(void); > +void __init erofs_pcpubuf_init(void); > void erofs_pcpubuf_exit(void); > > int erofs_register_sysfs(struct super_block *sb); > @@ -545,7 +545,7 @@ static inline int z_erofs_fill_inode(struct inode *inode) { return -EOPNOTSUPP; > #endif /* !CONFIG_EROFS_FS_ZIP */ > > #ifdef CONFIG_EROFS_FS_ZIP_LZMA > -int z_erofs_lzma_init(void); > +int __init z_erofs_lzma_init(void); > void z_erofs_lzma_exit(void); > int z_erofs_load_lzma_config(struct super_block *sb, > struct erofs_super_block *dsb, > 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; >
On 2023/3/3 14:37, 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 <frank.li@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Thanks,
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/internal.h b/fs/erofs/internal.h index 3f3561d37d1b..1db018f8c2e8 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -486,7 +486,7 @@ static inline void *erofs_vm_map_ram(struct page **pages, unsigned int count) void *erofs_get_pcpubuf(unsigned int requiredpages); void erofs_put_pcpubuf(void *ptr); int erofs_pcpubuf_growsize(unsigned int nrpages); -void erofs_pcpubuf_init(void); +void __init erofs_pcpubuf_init(void); void erofs_pcpubuf_exit(void); int erofs_register_sysfs(struct super_block *sb); @@ -545,7 +545,7 @@ static inline int z_erofs_fill_inode(struct inode *inode) { return -EOPNOTSUPP; #endif /* !CONFIG_EROFS_FS_ZIP */ #ifdef CONFIG_EROFS_FS_ZIP_LZMA -int z_erofs_lzma_init(void); +int __init z_erofs_lzma_init(void); void z_erofs_lzma_exit(void); int z_erofs_load_lzma_config(struct super_block *sb, struct erofs_super_block *dsb, 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;