Message ID | 20230303031418.64553-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 v21csp199317wrd; Thu, 2 Mar 2023 19:18:09 -0800 (PST) X-Google-Smtp-Source: AK7set+1EiDO00nPNSNEHEePrh5MXUBTUQrUraWOmxHs6vl0P5YSkm6sWL8edAaL6YbBC6SSFXy9 X-Received: by 2002:a17:903:441:b0:19b:fa9:678b with SMTP id iw1-20020a170903044100b0019b0fa9678bmr560074plb.40.1677813489634; Thu, 02 Mar 2023 19:18:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677813489; cv=pass; d=google.com; s=arc-20160816; b=W4we54NMu5qsWMvJMlu3MZfZAeUXQkLjBEBbsLyOs46P5BB0DrYP1uiVwgKNz3XKA5 7rl3ZcCevKhGoIBdPwEv/2Y43BkR7DRgS/u4R/enbMvD7ft7Tn6Na3pzC1eqlQ/EtSk6 WfmQ4aXHYDot7W9yUPNyjWZ/CS0fu3e8ezdNJmTfTcDJ/NdkwdDmqMI0QrkrOfEovCu7 kLTt6GSMY3+oEtYIqmp0TPLMizL0OwaxsAd5BRAseX2Cd8Dt9sZTgGdNyi7975vNMux9 7Ybmd0r0Fjf4g1VoyEPa7YWYb8FsB4tKoeUVDcLS2xsf8sjLBwZosSRhJviDyawpUODG 5mOA== 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=htIaonteASquIZopdEAhRBYIskX7U4t2h/T935emIBM=; b=qee25eLDBYSpoZvi59ySk63xuJ/GddpsAzUm4YGDHzshzNByzG0fBizXTkqmQaIJ93 Nep39z7I0Sa8CI4ipewlrDEw9+M8m/B4iz+/pljlBoE8geBotx0HKJEKp1Q8eVb6EZ7I JMa0Sr3nqi/ULJgIiT5ngVwxRLonBfen6RjvpViXn2MD/DrReHTizCjYlrUe1UTyWK49 qF7LX7cCaCSiJk5gIYUraDUJIwiW3HD8QrTYA71woCNfks70LTi94JTopRhIUxyeFZVH ezzG68UeYGtftEKkc7EletguPZ2eSzzXkn22w4B7nhuEpIflFeFNXGoAH6Cqzabxw75p eF7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=HKFr+bJw; 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 kn13-20020a170903078d00b0019a59c52fd3si940362plb.508.2023.03.02.19.17.56; Thu, 02 Mar 2023 19:18:09 -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=HKFr+bJw; 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 S229811AbjCCDOm (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Thu, 2 Mar 2023 22:14:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjCCDOk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Mar 2023 22:14:40 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2138.outbound.protection.outlook.com [40.107.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 122E917156 for <linux-kernel@vger.kernel.org>; Thu, 2 Mar 2023 19:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QW9OB7PpYassP/qQFvFRR7ZYR9oueODpgixj3k4eqO4aqUfNTPR3ujpJeezzTYn4YW0CYH9OXxkDsMIY+rH3R+VqtuONfGQl8eiJAPmRk3EIq0F76YoPfb7647RGwC3KMEqq3lPPlWynyxbeaAF3J4M5jGD4vO908g5WgeO6fSahLSNbcJtkEoeeX8XjTh3PeaS4CLeoZpnlbHsHCCBGy6vPxjjkmzgUs92H7vQIf0XIHn5fzKGCe70mqV2Iy28X6tLwEJvxTd24TqYkWtMV6LLX0S4s25TMc5KAFI7e5zOF7nTHD+9ZsQxWIv4BAPUelqacg726UR3aVs86m+ivNg== 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=htIaonteASquIZopdEAhRBYIskX7U4t2h/T935emIBM=; b=I0vYCqaRHdiDGrf9XdjXqcvBDmKn2GBqwfK9G5ERL7w0o3Eks57LHx7tuDOT2Ew2sJlR1ACBbWtGO5tJsYzg5Jx5b7M3EyIAAtwWiMv0piQ+5rSA6TY4UUdHklqe+xBThkU1zcFeJvO8t0yzJafuFqKClrN226M3Ayl0nWOTIAa+qtpL4409R7bJ5bz2TxCVAICmXPKEKQmWuroiihx2syeHPfWF1aug00IP7RV2fD+6ytRMd4mjZbAo1z3tvksC+enskgoFJP9cN9UaGUyFCDVZYN1z4KHmKDIZTXBenVGWN9ALP5eKaLZrjN8r6vIOO+zRXPte655Ot6dMQHLnEg== 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=htIaonteASquIZopdEAhRBYIskX7U4t2h/T935emIBM=; b=HKFr+bJwHFtsptu8r1oD0oFOZJ68s+TakZFao4B2vujJxLMUJ/NH9WJTRMPzkgkKMZjCupNnnIfWYpEiuch8zueIht3icW/5HEWeA+tL/01xyuJSCr+zFq3bCLETLUay05cuq5B6uMsAOwN/vGRXkb+4i3Ved9I3GYw6agegzugXMHhrTogpPANDCVhki3nhfotN7b/0NRA2l58ORFLNmd7COqQCeac+AR8mMv479CucanGgeziTwUg0gZ7Er407v/JB4g/+MUf+BqiZDCoLOWX0YpavvV/6q+v+LUR7mMFr2uwSK374P8kmKl+8chA9oOIDHq+aBCbyKwV3vbaAtA== 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 PSAPR06MB4038.apcprd06.prod.outlook.com (2603:1096:301:2a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.17; Fri, 3 Mar 2023 03:14:29 +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 03:14:29 +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] erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init Date: Fri, 3 Mar 2023 11:14:18 +0800 Message-Id: <20230303031418.64553-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0012.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::24) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PSAPR06MB4038:EE_ X-MS-Office365-Filtering-Correlation-Id: db02a2e6-9da2-40e5-a80e-08db1b9566f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fVZ+ZVjPNH0fzvht+K/yjia9J5kJJzl9Imtvu+gtuvpDOhSLaakBlDEjQ7vRts1U+jmnsVJUS6RE2wMoQlzLy9ux9/zjiYrYTgfgZx6IbWmVA33CQrnenAIhslRGH/wt0HcMCB1OKCqRIFk4twf0Os1X9h0xYKh8bXPuylOy3Hn2seEtinpPOKR9gCB8/qKQn8BvK08LCJZUHKbwQ5PgDxLHmqOOHGxmq1tJxCNP4OObbOqKWgJ9j7oz+g7G2UTI4ZeySmCZqw4y9okFccgxp+L2FZYF9rigpwja447yy/tXTjKPDmVFSmdLxaX/EwzGo2X8C8JOK2sEkW8cmgLXjlEEgXlO7bmWKs1O+wu9C6g6AOtV/dqTftyM/lvc0QJRDuvqGwmzJpIrM5jDt74nK7iXcKnbPIq/UOeCJ8l9yRtFq5su/A2bWb+cIaUV1OwSgVK99nju+AHkN6FCYfvPmOkfmmbuf3zafMG/PaODbJClrVKmI3/mzlY/TKyfMRjnIaulovjYEtJKdcuagUk54CqQSdVwIXQKz96dOR8nEV6CNLypONdMk69fmvxn5AZxdOzFvqnY2G8aRlVSwS8pFzNZ2CpwgfP2nbd8C3hZFPQXTNrkLazcEZKU15dkRPImPxfJaNgWCNRkAQKE7F+b91520hltgoxhfvP1U4bSerlF14EQ66ebU2/YfuPFN9t8qn4Zarf8wDP3WTl0PjjzAw== 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)(366004)(136003)(39860400002)(376002)(451199018)(5660300002)(38350700002)(36756003)(86362001)(8936002)(66946007)(41300700001)(8676002)(66556008)(2906002)(4326008)(38100700002)(4744005)(66476007)(6506007)(6512007)(26005)(2616005)(1076003)(186003)(83380400001)(52116002)(6666004)(107886003)(6486002)(478600001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7ehR4egpONoH221Vzaro2CI54vzoYW3c5dFf3GxZ03XcLVuHwO77l9Ei/o3AXIFAqKY8y9NiuNuuq6QFUnI2niMZifnfekMm0REIb50uHz9B6um1xoyhLq9s9OqGIyPOTJdTw4FmcyELGk3b0r+VRNPwL0NZvgbUPz2jiXcGEwsKgGMjY1rdexLMUmgWckzy6vFzq2aY2P8DDqqeuBWvTP4wlBkJtzdtW/bKd19P6Dfp6l46yT0aAj7a1uXC3ZRzXo/44nfvrxk0VdAVtqjtQAidVjL7JN7qRC0hIdADrrRYDmkekV4uNmC6d3P9hK6N2XFyc8Nkw7cY4E4OP/ST+BJ5jqvd7txbsShWzIuquzO6bq5D/g6yTpGaW9gLXoyfilPOQjjbs3yrL+7FnM8U7Nui3EnpHgjGUCgTLKfT3cwMjwQpDqNOScOb8JlgR60TwugKD3pts/WhvL6CaShECnjzc6/RlQ0TB32QOSaXqQrNqwvwOg5HtqWmq5UVdq3U+uCgO6jvJ3CBwAOAZrPHFmxEDLvraJmR7SeQkXEDQ6I6sSnCjXS+I+YE0L8L92MX/g0qmxt4jZBQFP5bf+oVhtO0Yqfc/Z+OIim0Sa/SWAVdZOyUqYgFK+l0zCX32MAN/ru9wG/Ib67V9TktjbBRWvBz9D1y9ucS8/V4UAd239edRQZ7izJ9x5YUuZW//NTk7ePuuA8gtWYO61OCemi665cmSVaMW1ixOw60KElQ8MuY8Z2uAUi/8pd/y+XnOt/w9iTlucXPfym6XBonQiYBthz+YPfJzHEcmowKaJrKBZQuYHcdmbaE5RLgFqM9QheeHXwYy2nrSkR6Kd51gt79HO4g67fX6AfbNNw8jP1cHk4BD/0RMp/iGv1F+l7/MbWGyt2UDlmDKst+mVc1CewIhVtslJ3BdTT9EtmqFlYptfwz2veEgYuWapuDo3Kv6mWwvqDsbiXjL6yJW51LZ9gvj12ltBuxXc+UAWhU1y9nlwUYgYeNBmD9aICK3n6JptvREF5ej5sCXQMO7nzqUiYqTd20hO+24c1CODMmvIbXsjS2Sen05X1lmDHFKD5eJCc25PiGxasee3stpKgEIF0fICHyS1l+esrnn46m6qNumlwSflBpXVUoOi3Sbk4YwPRwQLaROu1CVpdWUtGWR9Z1litw2LkyzuTfrRNl63P0XwE/MEn2ken30HY0q2SDoImDafdDf5oRpWuG9Y8El0aLtreAUw6paOYGIvBEArRAD8IaaQEnhwp/ruEONz19hfklHy68LUg0EVcO0PUdVmQkoplGBnzM9byDL0+hjh8rOcd3zDA1VlI5CpMrcf9VeBSe2BjUe4iNfSHO3YBxgbTJWeU1gTkcwv72BdrlzREQYV+r1lQssCWqk4kxE8ZVGjmwsRdNkG/8nPXcASnSlFUmkoLdeIwv7DU0w50XjAtMt86mG2DBlfybpmF1bH64fGxzM/xoDRe0/Omj9B4utoqpZMqjCWoazNjM5VvOkdjnV7hAll5LUX2asD9uY9pUs/2lHtxeNRnvsnBq3dfuqJML50oIPJpJS2CABrMelCDT33GHZoLkSx6kw3nmPF/ubS+l X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: db02a2e6-9da2-40e5-a80e-08db1b9566f5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2023 03:14:29.7022 (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: aYc3At/dFuW0QU4zbjKUoIOHXvSfSqEFzBtxxwPb+2gDVQ2sjeY++cFzCz89USP3yurh+3fbc1ZvkLAHijXBNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4038 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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?1759314957477233379?= X-GMAIL-MSGID: =?utf-8?q?1759314957477233379?= |
Series |
erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init
|
|
Commit Message
李扬韬
March 3, 2023, 3:14 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>
---
fs/erofs/decompressor_lzma.c | 2 +-
fs/erofs/pcpubuf.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
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 <frank.li@vivo.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> 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; >
On Fri, 3 Mar 2023 11:14:18 +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> > --- > 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; > Update them in internal.h as well?
On 2023/3/3 14:04, Yue Hu wrote: > On Fri, 3 Mar 2023 11:14:18 +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> >> --- >> 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; >> > > Update them in internal.h as well? Yeah, please help revise, thanks! Thanks, Gao Xiang
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;