Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4134329rwb; Tue, 6 Sep 2022 03:08:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR7s8i0Pj/hhrF8ZsdIRjaHwjKBJYUgmY0EWVzn0i+e/4A9QR5OX0EgHwFBSkeNY5UD0VZm7 X-Received: by 2002:a17:907:2724:b0:741:4a1f:6159 with SMTP id d4-20020a170907272400b007414a1f6159mr31115843ejl.542.1662458909113; Tue, 06 Sep 2022 03:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662458909; cv=none; d=google.com; s=arc-20160816; b=w8986vwrGZt7yCSsH/s6Z6+ajuz1jLhb0X/OxTLzqlK57B9tgJype0XpIDdbOnJeav U6zGag/nxC4fky6gxmieQMF4im00H4GLHcpLjMsJoLs4g9KzTELBECdTupUcdphwFyQ4 4BoB8tLN34FZRGCZHUdO5OL6q/VE328ptmqmuh69BHBw5/zwJgO8Ub04AcjWFKTwf/hw wOiVeBdVr70GBaHLsz7WKl5+vrnOdbkRy+Tc+Ga3vdKqt6LolTwWIazZK8nIRphvq5xP pYNa5h6AsHSHE1oGgKbJeDO4rJUesmWtWrqsjEgqiYCFVzOVd5rbX88jICF8s67PQusM Um6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=N6g4QFG2J4sckmiTmOG5eH6P18qWh5ozhqQlvK9/h58=; b=kZGdhwB6SCsR2MwfxZFXq3GUsklHsGgF0n1TUIMpUHhLDwwwW3g+ictCdtdktD1pPh PzAqe1JPPtEmdivooI8+T43DMURpyFAkjWIGycUWCY1UnxSrL51NLeLYSn4bQ/Y9KpVe SoKJ4xeknQpD5KGp/qBR5gGOJxT++kPHiyqjSsNePlMWgg44RUxKsG0JFfXm942z9N1u AGSBULJrdUeqKy+csnV9SsUwU8mNjwMXm01YK5hnZjxvpS5bCKy+YOzxJLv4Y1YYCYUM JtyZdBAHBqQ4tcDmLCt3vt4ahBkCOlQxwt/SxiXIlfANxqymiH9GpVPQuS2ba2wYQjXk aILw== 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 r11-20020aa7da0b000000b0044ecdf950fcsi1212611eds.572.2022.09.06.03.08.04; Tue, 06 Sep 2022 03:08:29 -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 S233356AbiIFJi6 (ORCPT + 99 others); Tue, 6 Sep 2022 05:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiIFJi5 (ORCPT ); Tue, 6 Sep 2022 05:38:57 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FA316581F for ; Tue, 6 Sep 2022 02:38:56 -0700 (PDT) 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 Content-Type: text/plain 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng --- 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); -- 2.17.1