From patchwork Thu Sep 15 01:16:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiu Jianfeng X-Patchwork-Id: 12976742 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4894ECAAD3 for ; Thu, 15 Sep 2022 01:19:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F288D6B0073; Wed, 14 Sep 2022 21:19:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED9206B0074; Wed, 14 Sep 2022 21:19:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC6B18D0001; Wed, 14 Sep 2022 21:19:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CC56A6B0073 for ; Wed, 14 Sep 2022 21:19:39 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id A5AE21605F9 for ; Thu, 15 Sep 2022 01:19:39 +0000 (UTC) X-FDA: 79912562478.14.9922D7F Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf02.hostedemail.com (Postfix) with ESMTP id DAA0B800AF for ; Thu, 15 Sep 2022 01:19:38 +0000 (UTC) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MSfPv0yqvzNm6s; Thu, 15 Sep 2022 09:14:59 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 15 Sep 2022 09:19:35 +0800 From: Xiu Jianfeng To: CC: , Subject: [PATCH] mm/secretmem: add __init annotation to secretmem_init() Date: Thu, 15 Sep 2022 09:16:02 +0800 Message-ID: <20220915011602.176967-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663204779; a=rsa-sha256; cv=none; b=cc4Xw7naWEkmYwTJTs0uxZdbfACogbtEOXxlM0X6dBO0i3mj1Z76Lqj8kd7hDS9MPK5UoT zqyN5YxcmQHs/cZa4CL5ZNVL5oU5+m56wUQdAvxUe6ebAkHQ6Vakj+bA0BB//Iec6JB6/M L98WrGj6hrA2Y6VjpXZ2VFzyAZYzZMQ= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; spf=pass (imf02.hostedemail.com: domain of xiujianfeng@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=xiujianfeng@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663204779; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=Ij/8z9VtxbcihdO8wJxpeeVsnIJqmU/VCSN8rTxKXOI=; b=xq+Q8Wb7lg7mXq5h8k61nKuFwm9q2PdJ+RGo8twa4N7cypjs6yUBOZFoa5n1TxNgoWF5WS sBrh/5Jx0Meo/Q5gis21+222zPt6i0sKnz46mlSvjkewjmL4Y5SBhk8VS2PNb8HVlVOG0Z x7NyMheXsi7P/kkx4DzBVE6Ljl7yc8o= Authentication-Results: imf02.hostedemail.com; dkim=none; spf=pass (imf02.hostedemail.com: domain of xiujianfeng@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=xiujianfeng@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: xr7z5thxfydpksh5jne1hyxs7cqufoeb X-Rspamd-Queue-Id: DAA0B800AF X-HE-Tag: 1663204778-761936 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: It's a fs_initcall entry, add __init annotation to it. Signed-off-by: Xiu Jianfeng --- mm/secretmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/secretmem.c b/mm/secretmem.c index 3f7154099795..6a44efb673b2 100644 --- a/mm/secretmem.c +++ b/mm/secretmem.c @@ -276,7 +276,7 @@ static struct file_system_type secretmem_fs = { .kill_sb = kill_anon_super, }; -static int secretmem_init(void) +static int __init secretmem_init(void) { int ret = 0;