Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3764681rwn; Sat, 10 Sep 2022 20:24:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6u1dFEhDElDFvUPyBdN1/O7mI2cAAkf2MdqM34EXRnkBBUJOuaGwlAuPJpBBrVrCswe5WN X-Received: by 2002:a17:906:5a45:b0:77a:406c:6867 with SMTP id my5-20020a1709065a4500b0077a406c6867mr5880458ejc.437.1662866672827; Sat, 10 Sep 2022 20:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662866672; cv=none; d=google.com; s=arc-20160816; b=INaaD0Bzccx0nOTnhVkhNSQ/qFbHy5n3oZOuH8WovxbmNs7gF0ffLNGxOrRNDoBzD8 5l7+siYEs0KjE50nSzNeZocaAJSiOOp4mgfqy2wfSHLXZq/DUzyqf6SDT+QazEdICKiy fiv0xa6oq9D4XSV0ZQ8LljHCRuKUHbXqPwkMejs35sVCqjXXUDk6rJAkv+YYa4P7uHvm Od5cZ4fMOzcLNvQc8gHkwRAOtMRqSdw5daCZ+ggkrPYAtqGzCwDrtET2nb1iRbIrSIqP mIfrKccNuUUYd74KqhUocH+edTbVX8zWdct9kerBxbZAVRiitQsCfcd3nQSsAuTVXOFe 17ZQ== 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=tJg6CCpMs4siUa5Qc6Fz7OWdXMcImVkYR05S4QYjeaU=; b=iCbDPlV+e6WNCNcCwDxY5XBNrBupEdkaOhpE2uW8xSirzdLDXZRAEjFXZikC45YKkU pnPF2xQ0mxBH5k0J07PVHu5vC4XcP/FAuAM3+prWCs93CNdZKY5HbaM2rDsBCWwaRvP7 U/mL4t6RGOoMbZPc1b3sf7G5L24OG7O36ARF4jtNKuLcMyro6cjBGHiSW1FtDhGrHKs7 K0FwsGtVdlDQaD+41Xzfcz5rA5KHmQWnEToj/E8mf700N/XgsFhbnkALXQ0z/T1HCVpX qmfAEOhEUDTiM+SwI+9P6mENyiYKPX+cpH+oadicCvLuZm9BGKxDUkvrnKOXIWfvtuql Xf9w== 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 cq6-20020a056402220600b0044f1473be33si3837342edb.128.2022.09.10.20.24.07; Sat, 10 Sep 2022 20:24:32 -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 S229792AbiIKDHw (ORCPT + 99 others); Sat, 10 Sep 2022 23:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiIKDHu (ORCPT ); Sat, 10 Sep 2022 23:07:50 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2094F356FB for ; Sat, 10 Sep 2022 20:07:48 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MQF1N5DrGzlVj5; Sun, 11 Sep 2022 11:03:52 +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; Sun, 11 Sep 2022 11:07:46 +0800 From: Xiu Jianfeng To: , , CC: Subject: [PATCH] rv/monitor: add __init/__exit annotations to module init/exit funcs Date: Sun, 11 Sep 2022 11:04:17 +0800 Message-ID: <20220911030418.94609-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: dggems701-chm.china.huawei.com (10.3.19.178) 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. Fixes: 8812d21219b9 ("rv/monitor: Add the wip monitor skeleton created by dot2k") Fixes: ccc319dcb450 ("rv/monitor: Add the wwnr monitor") Signed-off-by: Xiu Jianfeng --- kernel/trace/rv/monitors/wip/wip.c | 4 ++-- kernel/trace/rv/monitors/wwnr/wwnr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trace/rv/monitors/wip/wip.c b/kernel/trace/rv/monitors/wip/wip.c index 83cace53b9fa..6be876e2f405 100644 --- a/kernel/trace/rv/monitors/wip/wip.c +++ b/kernel/trace/rv/monitors/wip/wip.c @@ -69,13 +69,13 @@ struct rv_monitor rv_wip = { .enabled = 0, }; -static int register_wip(void) +static int __init register_wip(void) { rv_register_monitor(&rv_wip); return 0; } -static void unregister_wip(void) +static void __exit unregister_wip(void) { rv_unregister_monitor(&rv_wip); } diff --git a/kernel/trace/rv/monitors/wwnr/wwnr.c b/kernel/trace/rv/monitors/wwnr/wwnr.c index 599225d9cf38..c1fac4808b02 100644 --- a/kernel/trace/rv/monitors/wwnr/wwnr.c +++ b/kernel/trace/rv/monitors/wwnr/wwnr.c @@ -68,13 +68,13 @@ struct rv_monitor rv_wwnr = { .enabled = 0, }; -static int register_wwnr(void) +static int __init register_wwnr(void) { rv_register_monitor(&rv_wwnr); return 0; } -static void unregister_wwnr(void) +static void __exit unregister_wwnr(void) { rv_unregister_monitor(&rv_wwnr); } -- 2.17.1