From patchwork Tue Sep 6 09:35:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiu Jianfeng X-Patchwork-Id: 12967178 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 110D4ECAAA1 for ; Tue, 6 Sep 2022 09:38:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 266B480271; Tue, 6 Sep 2022 05:38:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2163D80224; Tue, 6 Sep 2022 05:38:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 105CB80271; Tue, 6 Sep 2022 05:38:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 01B0B80224 for ; Tue, 6 Sep 2022 05:38:58 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C3690ABC0B for ; Tue, 6 Sep 2022 09:38:58 +0000 (UTC) X-FDA: 79881161556.28.9DAF27C Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf27.hostedemail.com (Postfix) with ESMTP id E80E1400B0 for ; Tue, 6 Sep 2022 09:38:57 +0000 (UTC) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MMKyY32zdznVDv; Tue, 6 Sep 2022 17:36:21 +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.24; Tue, 6 Sep 2022 17:38:54 +0800 From: Xiu Jianfeng To: , , CC: , Subject: [PATCH -next] mm/hwpoison: add __init/__exit annotations to module init/exit funcs Date: Tue, 6 Sep 2022 17:35:30 +0800 Message-ID: <20220906093530.243262-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: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662457138; a=rsa-sha256; cv=none; b=py0QZzLhmU5/fRlbylu3YnOXErEqXZ4aPLzSWNQW9ZPjkLiEhc6bsK4LTRd0AGwNcbU7/L eE7b+3MFYAbmQ4udxmXPoNqQMtqRXQeBP5VHn1KCTJYjSOh9DyaFG8df46mx3lQlYS9haV AP7lA54VYF1sHkP9LkHIby3RT1wPmLo= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of xiujianfeng@huawei.com designates 45.249.212.187 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=1662457138; 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=N6g4QFG2J4sckmiTmOG5eH6P18qWh5ozhqQlvK9/h58=; b=NcJt2gBdBfzsl2CH8lHocAhIpjsRstH7SMiFhm7OLMmp+wVBiMrvn7MPiYevXoJ0SBFi/L qnh2xj10kAnGzOMf8ct4V/oVoaVZCougWc+PCJgoUgDmdGnmarS9jpxCRivb8TBWdvgQX7 BfsuEsYtAFcsEP4yqmhznTkYIPhB1RY= X-Stat-Signature: xurrqycwstgj9u4x47yiu89dhk59btcg X-Rspamd-Queue-Id: E80E1400B0 Authentication-Results: imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of xiujianfeng@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=xiujianfeng@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam11 X-Rspam-User: X-HE-Tag: 1662457137-952207 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: Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng Reviewed-by: Miaohe Lin Acked-by: Naoya Horiguchi --- mm/hwpoison-inject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c index 65e242b5a432..d0548e382b6b 100644 --- a/mm/hwpoison-inject.c +++ b/mm/hwpoison-inject.c @@ -63,13 +63,13 @@ static int hwpoison_unpoison(void *data, u64 val) DEFINE_DEBUGFS_ATTRIBUTE(hwpoison_fops, NULL, hwpoison_inject, "%lli\n"); DEFINE_DEBUGFS_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n"); -static void pfn_inject_exit(void) +static void __exit pfn_inject_exit(void) { hwpoison_filter_enable = 0; debugfs_remove_recursive(hwpoison_dir); } -static int pfn_inject_init(void) +static int __init pfn_inject_init(void) { hwpoison_dir = debugfs_create_dir("hwpoison", NULL);