Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5125135rwb; Tue, 6 Sep 2022 19:38:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6hH6D608H+C47dPAxB3L4FZcdv6Dk5Z2EkY6H/Uk5r0apPDSRGMMpX0CBPGozHPqgoXVsf X-Received: by 2002:a17:90b:1d88:b0:1fd:e032:78bb with SMTP id pf8-20020a17090b1d8800b001fde03278bbmr27639612pjb.126.1662518314127; Tue, 06 Sep 2022 19:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662518314; cv=none; d=google.com; s=arc-20160816; b=y3+2b8PVg2dSqclomeT9r95UbOcCDZFiwp5wLe9PxEGDFfhEDkpin35ooZa/zPn2uU qppc38ykb1E33kt9ujszkXWBa4GBl/U1Us7qFuhYz81MoiTBUJ47FNkqx/BviURpZcAl tiJlg7w+FqZtIRrOolrWJFB9rJ2xIbXmzntEV7cnCnAMO5CPjqP0qsHh8RJxnzF/Yx9X RlVJ+DjCIW15BB+08BPCCNZyf3XI2nqTLaCAkQLJL+AauybQzgZMbGaUTmcYd9xvluIm S43HRP+T8OxyKLPKNAI3vq+Ni12pd8yksriRp9yhNDUXnf548c9wPQ4INwlea7wvskYe RDpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Z+j2336WzceenNmGDabzmF61VMsQR+YKwzderuWDfWE=; b=trKm6duZKdu+FzYV8lFmEVGFOiDTwDHoGbpt3pFAhmwWRLDdSPtf/t/MrAjRICRV9W 9hZzmDnnYkgQ9T44KmKlcXhgppGBvlScAbXjzeEXVuRA0C9jaon/Tz3u64rj5wUeAatf wxolyFgpm6piMoi6Dy/cBOIlV4uzCBXgWLsBUcJMfWDVN3S0ygcGrxI8gdtFDQR0ei/o rjvr5F6PUL1C5dac86gXDaI02Eq/pm8IfWqKXa4j94BEuMiO6c0eJUPTFoUhZVBpNpr/ UcWrWaJq9omjOlhtKtZXzQLpSJ5k1jqp9XVJ0I2ic+GQg6noXFZS1/dtxwtmVs3P6ruX 9M0g== ARC-Authentication-Results: i=1; mx.google.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f28-20020a63555c000000b0042b92e552a6si15491151pgm.831.2022.09.06.19.38.22; Tue, 06 Sep 2022 19:38:34 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbiIGCAB (ORCPT + 99 others); Tue, 6 Sep 2022 22:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbiIGB7u (ORCPT ); Tue, 6 Sep 2022 21:59:50 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D128340BF2 for ; Tue, 6 Sep 2022 18:59:49 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MMlht6bQvz1P702; Wed, 7 Sep 2022 09:55:58 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 7 Sep 2022 09:59:46 +0800 Subject: Re: [PATCH -next] mm/hwpoison: add __init/__exit annotations to module init/exit funcs To: Xiu Jianfeng CC: , , , References: <20220906093530.243262-1-xiujianfeng@huawei.com> From: Miaohe Lin Message-ID: Date: Wed, 7 Sep 2022 09:59:46 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20220906093530.243262-1-xiujianfeng@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/6 17:35, Xiu Jianfeng wrote: > Add missing __init/__exit annotations to module init/exit funcs. > > Signed-off-by: Xiu Jianfeng LGTM. Thanks. Reviewed-by: Miaohe Lin Thanks, Miaohe Lin > --- > 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); > >