Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp626714rwb; Thu, 22 Sep 2022 04:35:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7t7GfFLoB5Rx5UgzbAojHKv6risKY8+dH0v3NbMN1bZ2K3KjFJ+2Sh5py1HdC8shKypSXH X-Received: by 2002:a17:907:7f9e:b0:781:5752:4f36 with SMTP id qk30-20020a1709077f9e00b0078157524f36mr2387270ejc.760.1663846514200; Thu, 22 Sep 2022 04:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663846514; cv=none; d=google.com; s=arc-20160816; b=vN6CmVGLEUZqhBtHcHUep5tAx5r07MYBWrdr6t/9z3qZA4CS/lt2e1nc6YQ8pmRnIu kzgXH9mWKUqCqyfBOdCe1+y5gQ287F9YqMFWQCKwTtHUO21PPRoNt3OFlhZfDUvEVtwN SLQPEkV0zo1Wm+Ae2kif00I/c6CJ1WOA3TDQit0fbHJNMug5lGwKMPGVNRLLziQOyltf B3KQNQRKJm7ijMJwy79uq0R0i36NzFo2/UPtPB4/XN4uInylUXS4DDZ0YFqB5aMeH1aQ N4HmJNmAgYGxHdngcwYIL1cd6oXDckvVvtn5WYh6ox3d6hutkNpWHXLOwYrSgBJsKUNF xZ3Q== 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=7aRKbYACRs3sS/4MiIwF6zrdLoorQvRyqiiLiftlyBg=; b=PsSvm6EtJdxRy6f/61+yUZZjGvQ1ubgQYflLTMTi+obocsjNSops9mjCWGGhiloi2t VAVis2M+bT8EKNz8zQHN9GDdpoOTAk65KN/iX/766LPdOae0aeWyLL2K3eT8FS7To99o A0y0xmUZLSflJzG3HrVGr98NZYYN4BP978/F2loy8xSyxAA4F/zbfQndFLo2kbeRTy8C 3qRdZ5ZiDXAPm9ZP89LdUhn3Wc8s/CePcLetn8bt8NqrmQGAyHMUcaOfiZB9FGN9CkQG msAtmr2HLFHIc7STJPMGvg39055SvlwenjibNT66us260XskNzvNtjFQ7D96z1N+RCjH h0wA== 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 ho36-20020a1709070ea400b0077f6158823fsi4307232ejc.533.2022.09.22.04.34.38; Thu, 22 Sep 2022 04:35:14 -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 S231443AbiIVLXL (ORCPT + 99 others); Thu, 22 Sep 2022 07:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231473AbiIVLXJ (ORCPT ); Thu, 22 Sep 2022 07:23:09 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E318E05FE for ; Thu, 22 Sep 2022 04:23:06 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MYCSt1Y9zzMpQD; Thu, 22 Sep 2022 19:18:22 +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, 22 Sep 2022 19:23:04 +0800 From: Xiu Jianfeng To: CC: , Subject: [PATCH] ipmi: Add __init/__exit annotations to module init/exit funcs Date: Thu, 22 Sep 2022 19:19:24 +0800 Message-ID: <20220922111924.36044-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: dggems702-chm.china.huawei.com (10.3.19.179) 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 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 --- drivers/char/ipmi/ipmi_ssif.c | 4 ++-- drivers/char/ipmi/kcs_bmc_cdev_ipmi.c | 4 ++-- drivers/char/ipmi/kcs_bmc_serio.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 13da021e7c6b..e1072809fe31 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -2098,7 +2098,7 @@ static struct platform_driver ipmi_driver = { .id_table = ssif_plat_ids }; -static int init_ipmi_ssif(void) +static int __init init_ipmi_ssif(void) { int i; int rv; @@ -2140,7 +2140,7 @@ static int init_ipmi_ssif(void) } module_init(init_ipmi_ssif); -static void cleanup_ipmi_ssif(void) +static void __exit cleanup_ipmi_ssif(void) { if (!initialized) return; diff --git a/drivers/char/ipmi/kcs_bmc_cdev_ipmi.c b/drivers/char/ipmi/kcs_bmc_cdev_ipmi.c index 486834a962c3..cf670e891966 100644 --- a/drivers/char/ipmi/kcs_bmc_cdev_ipmi.c +++ b/drivers/char/ipmi/kcs_bmc_cdev_ipmi.c @@ -548,7 +548,7 @@ static struct kcs_bmc_driver kcs_bmc_ipmi_driver = { .ops = &kcs_bmc_ipmi_driver_ops, }; -static int kcs_bmc_ipmi_init(void) +static int __init kcs_bmc_ipmi_init(void) { kcs_bmc_register_driver(&kcs_bmc_ipmi_driver); @@ -556,7 +556,7 @@ static int kcs_bmc_ipmi_init(void) } module_init(kcs_bmc_ipmi_init); -static void kcs_bmc_ipmi_exit(void) +static void __exit kcs_bmc_ipmi_exit(void) { kcs_bmc_unregister_driver(&kcs_bmc_ipmi_driver); } diff --git a/drivers/char/ipmi/kcs_bmc_serio.c b/drivers/char/ipmi/kcs_bmc_serio.c index 7e2067628a6c..1793358be782 100644 --- a/drivers/char/ipmi/kcs_bmc_serio.c +++ b/drivers/char/ipmi/kcs_bmc_serio.c @@ -140,7 +140,7 @@ static struct kcs_bmc_driver kcs_bmc_serio_driver = { .ops = &kcs_bmc_serio_driver_ops, }; -static int kcs_bmc_serio_init(void) +static int __init kcs_bmc_serio_init(void) { kcs_bmc_register_driver(&kcs_bmc_serio_driver); @@ -148,7 +148,7 @@ static int kcs_bmc_serio_init(void) } module_init(kcs_bmc_serio_init); -static void kcs_bmc_serio_exit(void) +static void __exit kcs_bmc_serio_exit(void) { kcs_bmc_unregister_driver(&kcs_bmc_serio_driver); } -- 2.17.1